aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2007-07-28 01:16:18 +0000
committerNick Roberts2007-07-28 01:16:18 +0000
commitf716503448936e55acf3f32d0e8ddd8d407ca4e1 (patch)
tree87ab486ef9f728b55d624db42be3837cab0c304e
parenta10421a1e110940c7cba6c3d48313c65f451401c (diff)
downloademacs-f716503448936e55acf3f32d0e8ddd8d407ca4e1.tar.gz
emacs-f716503448936e55acf3f32d0e8ddd8d407ca4e1.zip
* xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
remote default-directory. * buffer.c (mode-line-format): Update doc string.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--src/buffer.c4
-rw-r--r--src/xdisp.c2
3 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f233d629670..cc48a350dec 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-07-28 Nick Roberts <nickrob@snap.net.nz>
2
3 * bindings.el (mode-line-remote): Use updated %@ construct.
4
12007-07-27 Stefan Monnier <monnier@iro.umontreal.ca> 52007-07-27 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * calendar/cal-bahai.el (calendar-bahai-month-name-array) 7 * calendar/cal-bahai.el (calendar-bahai-month-name-array)
diff --git a/src/buffer.c b/src/buffer.c
index 2ded9857455..127bfba44e0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5501,12 +5501,12 @@ A string is printed verbatim in the mode line except for %-constructs:
5501 %P -- print percent of buffer above bottom of window, perhaps plus Top, 5501 %P -- print percent of buffer above bottom of window, perhaps plus Top,
5502 or print Bottom or All. 5502 or print Bottom or All.
5503 %n -- print Narrow if appropriate. 5503 %n -- print Narrow if appropriate.
5504 %R -- print R or hyphen. R means that default-directory is on a
5505 remote machine.
5506 %t -- visited file is text or binary (if OS supports this distinction). 5504 %t -- visited file is text or binary (if OS supports this distinction).
5507 %z -- print mnemonics of keyboard, terminal, and buffer coding systems. 5505 %z -- print mnemonics of keyboard, terminal, and buffer coding systems.
5508 %Z -- like %z, but including the end-of-line format. 5506 %Z -- like %z, but including the end-of-line format.
5509 %e -- print error message about full memory. 5507 %e -- print error message about full memory.
5508 %@ -- print @ or hyphen. @ means that default-directory is on a
5509 remote machine.
5510 %[ -- print one [ for each recursive editing level. %] similar. 5510 %[ -- print one [ for each recursive editing level. %] similar.
5511 %% -- print %. %- -- print infinitely many dashes. 5511 %% -- print %. %- -- print infinitely many dashes.
5512Decimal digits after the % specify field width to which to pad. */); 5512Decimal digits after the % specify field width to which to pad. */);
diff --git a/src/xdisp.c b/src/xdisp.c
index 41105456d95..14a55720877 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17994,7 +17994,7 @@ decode_mode_spec (w, c, field_width, precision, multibyte)
17994#endif 17994#endif
17995 break; 17995 break;
17996 17996
17997 case 'R': 17997 case '@':
17998 { 17998 {
17999 Lisp_Object val; 17999 Lisp_Object val;
18000 val = call1 (intern ("file-remote-p"), current_buffer->directory); 18000 val = call1 (intern ("file-remote-p"), current_buffer->directory);