From: Noah Friedman Date: Fri, 10 Jun 2005 22:39:45 +0000 (+0000) Subject: (ybuffer-list): Don't use $filename; can't use char as placeholder when X-Git-Tag: emacs-pretest-22.0.90~9061 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58f498fede30897ab0808f758a6c1db1b9f06da9;p=emacs.git (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. --- diff --git a/etc/ChangeLog b/etc/ChangeLog index 796d2db3190..3f1b93d30f4 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,9 @@ +2005-06-10 Noah Friedman + + * emacs-buffer.gdb (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. + 2005-06-08 Kim F. Storm * PROBLEMS: Linux kernel 2.6.10 may corrupt process output. 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++