From: Stefan Monnier Date: Sat, 19 Jan 2008 05:27:20 +0000 (+0000) Subject: (list_processes_1): Don't use SCHARS on a nil buffer name. X-Git-Tag: emacs-pretest-23.0.90~8501 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e69c4cae1801f1578819d72dd6c798c4e0b09dde;p=emacs.git (list_processes_1): Don't use SCHARS on a nil buffer name. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3e11968fb58..0667c484acb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2008-01-19 Stefan Monnier + * process.c (list_processes_1): Don't use SCHARS on a nil buffer name. + * xdisp.c (Qauto_hscroll_mode): New var. (syms_of_xdisp): Initialize it. (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each diff --git a/src/process.c b/src/process.c index 8e932be7b0c..c7ca36a847f 100644 --- a/src/process.c +++ b/src/process.c @@ -1359,8 +1359,11 @@ list_processes_1 (query_only) w_proc = i; if (!NILP (p->buffer)) { - if (NILP (XBUFFER (p->buffer)->name) && w_buffer < 8) - w_buffer = 8; /* (Killed) */ + if (NILP (XBUFFER (p->buffer)->name)) + { + if (w_buffer < 8) + w_buffer = 8; /* (Killed) */ + } else if ((i = SCHARS (XBUFFER (p->buffer)->name), (i > w_buffer))) w_buffer = i; }