diff options
author | Noah Friedman <friedman@splode.com> | 2005-06-10 22:39:45 +0000 |
---|---|---|
committer | Noah Friedman <friedman@splode.com> | 2005-06-10 22:39:45 +0000 |
commit | 58f498fede30897ab0808f758a6c1db1b9f06da9 (patch) | |
tree | 3dff4dc1748cfba83d9698121028a1d027326e2b /etc/emacs-buffer.gdb | |
parent | b5305167d412a51265145d230c3b495b5d7c02bd (diff) | |
download | emacs-58f498fede30897ab0808f758a6c1db1b9f06da9.tar.gz |
(ybuffer-list): Don't use $filename; can't use char as placeholder when
buffer has no file name and process is still live. Use different printf
cases instead.
Diffstat (limited to 'etc/emacs-buffer.gdb')
-rw-r--r-- | etc/emacs-buffer.gdb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb index cd0bf0dd59d..c4f8eef481d 100644 --- a/etc/emacs-buffer.gdb +++ b/etc/emacs-buffer.gdb @@ -116,13 +116,13 @@ define ybuffer-list if $buf->filename != Qnil ygetptr $buf->filename - set $filename = ((struct Lisp_String *) $ptr)->data + printf "%2d %c %9d %-20s %-10s %s\n", \ + $i, $modp, ($buf->text->z_byte - 1), $name, $mode, \ + ((struct Lisp_String *) $ptr)->data else - set $filename = ' ' + printf "%2d %c %9d %-20s %-10s\n", \ + $i, $modp, ($buf->text->z_byte - 1), $name, $mode end - - printf "%2d %c %9d %-20s %-10s %s\n", \ - $i, $modp, ($buf->text->z_byte - 1), $name, $mode, $filename end set $i++ |