Mercurial > emacs
changeset 87849:8f7e97005eef
(list_processes_1): Don't use SCHARS on a nil buffer name.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 19 Jan 2008 05:27:20 +0000 |
parents | 7471059517c8 |
children | dd673d4bceda |
files | src/ChangeLog src/process.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat Jan 19 05:22:33 2008 +0000 +++ b/src/ChangeLog Sat Jan 19 05:27:20 2008 +0000 @@ -1,5 +1,7 @@ 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca> + * 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
--- a/src/process.c Sat Jan 19 05:22:33 2008 +0000 +++ b/src/process.c Sat Jan 19 05:27:20 2008 +0000 @@ -1359,8 +1359,11 @@ 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; }