Commit f7165034 authored by Nick Roberts's avatar Nick Roberts
Browse files

* xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for

	remote default-directory.

* buffer.c (mode-line-format): Update doc string.
parent a10421a1
2007-07-28 Nick Roberts <nickrob@snap.net.nz>
* bindings.el (mode-line-remote): Use updated %@ construct.
2007-07-27 Stefan Monnier <monnier@iro.umontreal.ca>
* calendar/cal-bahai.el (calendar-bahai-month-name-array)
......
......@@ -5501,12 +5501,12 @@ A string is printed verbatim in the mode line except for %-constructs:
%P -- print percent of buffer above bottom of window, perhaps plus Top,
or print Bottom or All.
%n -- print Narrow if appropriate.
%R -- print R or hyphen. R means that default-directory is on a
remote machine.
%t -- visited file is text or binary (if OS supports this distinction).
%z -- print mnemonics of keyboard, terminal, and buffer coding systems.
%Z -- like %z, but including the end-of-line format.
%e -- print error message about full memory.
%@ -- print @ or hyphen. @ means that default-directory is on a
remote machine.
%[ -- print one [ for each recursive editing level. %] similar.
%% -- print %. %- -- print infinitely many dashes.
Decimal digits after the % specify field width to which to pad. */);
......
......@@ -17994,7 +17994,7 @@ decode_mode_spec (w, c, field_width, precision, multibyte)
#endif
break;
 
case 'R':
case '@':
{
Lisp_Object val;
val = call1 (intern ("file-remote-p"), current_buffer->directory);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment