diff options
| author | Po Lu | 2023-03-27 16:43:07 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-27 16:43:07 +0800 |
| commit | 54d79f37ae59fbda0b40d3be66d0c9b3887734a7 (patch) | |
| tree | de2932d317b24e11d1a858e4e4cf6c142b98df60 /src/buffer.c | |
| parent | dd4924ca90a8ada26bb10e5df4557ae32c0d6403 (diff) | |
| parent | e8790f42935762f34297400b09a00236b94ed6f0 (diff) | |
| download | emacs-54d79f37ae59fbda0b40d3be66d0c9b3887734a7.tar.gz emacs-54d79f37ae59fbda0b40d3be66d0c9b3887734a7.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1c3168d2b13..84301c86a7f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5128,33 +5128,38 @@ A list whose car is an integer is processed by processing the cadr of | |||
| 5128 | negative) to the width specified by that number. | 5128 | negative) to the width specified by that number. |
| 5129 | 5129 | ||
| 5130 | A string is printed verbatim in the mode line except for %-constructs: | 5130 | A string is printed verbatim in the mode line except for %-constructs: |
| 5131 | %b -- print buffer name. %f -- print visited file name. | 5131 | %b -- print buffer name. |
| 5132 | %F -- print frame name. | ||
| 5133 | %* -- print %, * or hyphen. %+ -- print *, % or hyphen. | ||
| 5134 | %& is like %*, but ignore read-only-ness. | ||
| 5135 | % means buffer is read-only and * means it is modified. | ||
| 5136 | For a modified read-only buffer, %* gives % and %+ gives *. | ||
| 5137 | %s -- print process status. %l -- print the current line number. | ||
| 5138 | %c -- print the current column number (this makes editing slower). | 5132 | %c -- print the current column number (this makes editing slower). |
| 5139 | Columns are numbered starting from the left margin, and the | 5133 | Columns are numbered starting from the left margin, and the |
| 5140 | leftmost column is displayed as zero. | 5134 | leftmost column is displayed as zero. |
| 5141 | To make the column number update correctly in all cases, | 5135 | To make the column number update correctly in all cases, |
| 5142 | `column-number-mode' must be non-nil. | 5136 | `column-number-mode' must be non-nil. |
| 5143 | %C -- Like %c, but the leftmost column is displayed as one. | 5137 | %C -- Like %c, but the leftmost column is displayed as one. |
| 5138 | %e -- print error message about full memory. | ||
| 5139 | %f -- print visited file name. | ||
| 5140 | %F -- print frame name. | ||
| 5144 | %i -- print the size of the buffer. | 5141 | %i -- print the size of the buffer. |
| 5145 | %I -- like %i, but use k, M, G, etc., to abbreviate. | 5142 | %I -- like %i, but use k, M, G, etc., to abbreviate. |
| 5143 | %l -- print the current line number. | ||
| 5144 | %n -- print Narrow if appropriate. | ||
| 5145 | %o -- print percent of window travel through buffer, or Top, Bot or All. | ||
| 5146 | %p -- print percent of buffer above top of window, or Top, Bot or All. | 5146 | %p -- print percent of buffer above top of window, or Top, Bot or All. |
| 5147 | %P -- print percent of buffer above bottom of window, perhaps plus Top, | 5147 | %P -- print percent of buffer above bottom of window, perhaps plus Top, |
| 5148 | or print Bottom or All. | 5148 | or print Bottom or All. |
| 5149 | %n -- print Narrow if appropriate. | 5149 | %q -- print percent of buffer above both the top and the bottom of the |
| 5150 | %t -- visited file is text or binary (if OS supports this distinction). | 5150 | window, separated by β-β, or βAllβ. |
| 5151 | %s -- print process status. | ||
| 5151 | %z -- print mnemonics of keyboard, terminal, and buffer coding systems. | 5152 | %z -- print mnemonics of keyboard, terminal, and buffer coding systems. |
| 5152 | %Z -- like %z, but including the end-of-line format. | 5153 | %Z -- like %z, but including the end-of-line format. |
| 5153 | %e -- print error message about full memory. | 5154 | %& -- print * if the buffer is modified, otherwise hyphen. |
| 5154 | %@ -- print @ or hyphen. @ means that default-directory is on a | 5155 | %+ -- print *, % or hyphen (modified, read-only, neither). |
| 5155 | remote machine. | 5156 | %* -- print %, * or hyphen (read-only, modified, neither). |
| 5156 | %[ -- print one [ for each recursive editing level. %] similar. | 5157 | For a modified read-only buffer, %+ prints * and %* prints %. |
| 5157 | %% -- print %. %- -- print infinitely many dashes. | 5158 | %@ -- print @ if default-directory is on a remote machine, else hyphen. |
| 5159 | %[ -- print one [ for each recursive editing level. | ||
| 5160 | %] -- print one ] for each recursive editing level. | ||
| 5161 | %- -- print enough dashes to fill the mode line. | ||
| 5162 | %% -- print %. | ||
| 5158 | Decimal digits after the % specify field width to which to pad. */); | 5163 | Decimal digits after the % specify field width to which to pad. */); |
| 5159 | 5164 | ||
| 5160 | DEFVAR_PER_BUFFER ("major-mode", &BVAR (current_buffer, major_mode), | 5165 | DEFVAR_PER_BUFFER ("major-mode", &BVAR (current_buffer, major_mode), |