diff options
| author | Glenn Morris | 2019-05-14 17:18:18 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-05-14 17:18:18 -0700 |
| commit | 5fe9375a5164960c3ecb65a7ef6d742069b8a7d7 (patch) | |
| tree | 315715009d9fe5af40be38cb0dfccecfaf4c5528 /doc | |
| parent | 0f63e17663f99742425c9ec4f282f5e7e3194b1b (diff) | |
| parent | 02bee7860f7e650ef13e00fe1a7f9a362e3eb001 (diff) | |
| download | emacs-5fe9375a5164960c3ecb65a7ef6d742069b8a7d7.tar.gz emacs-5fe9375a5164960c3ecb65a7ef6d742069b8a7d7.zip | |
Merge from origin/emacs-26
02bee78 Let dir locals for more specific modes override those from less
b1235f9 Improve documentation of Hexl mode
32d1813 Fix description of (move-to-column <n> t) when column <n> is ...
0397b7c ; Fix smtpmail-stream-type docstring
7dab3ee Recognize single quote attribute values in nxml and sgml (Bug...
e4cde42 Disable extra display of in nxml-mode (Bug#32897)
ca14dd1 Fix nxml-get-inside (Bug#32003)
e7ab351 Fix positioning client buffer as instructed by emacsclient
# Conflicts:
# lisp/files.el
# lisp/textmodes/sgml-mode.el
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/custom.texi | 22 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 8 |
3 files changed, 39 insertions, 6 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 22e352ef9f9..8a8ac5d0464 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1377,6 +1377,28 @@ be applied in the current directory, not in any subdirectories. | |||
| 1377 | Finally, it specifies a different @file{ChangeLog} file name for any | 1377 | Finally, it specifies a different @file{ChangeLog} file name for any |
| 1378 | file in the @file{src/imported} subdirectory. | 1378 | file in the @file{src/imported} subdirectory. |
| 1379 | 1379 | ||
| 1380 | If the @file{.dir-locals.el} file contains multiple different values | ||
| 1381 | for a variable using different mode names or directories, the values | ||
| 1382 | will be applied in an order such that the values for more specific | ||
| 1383 | modes take priority over more generic modes. Values specified under a | ||
| 1384 | directory have even more priority. For example: | ||
| 1385 | |||
| 1386 | @example | ||
| 1387 | ((nil . ((fill-column . 40))) | ||
| 1388 | (c-mode . ((fill-column . 50))) | ||
| 1389 | (prog-mode . ((fill-column . 60))) | ||
| 1390 | ("narrow-files" . ((nil . ((fill-column . 20)))))) | ||
| 1391 | @end example | ||
| 1392 | |||
| 1393 | Files that use @code{c-mode} also match @code{prog-mode} because the | ||
| 1394 | former inherits from the latter. The value used for | ||
| 1395 | @code{fill-column} in C files will however be @code{50} because the | ||
| 1396 | mode name is more specific than @code{prog-mode}. Files using other | ||
| 1397 | modes inheriting from @code{prog-mode} will use @code{60}. Any file | ||
| 1398 | under the directory @file{narrow-files} will use the value @code{20} | ||
| 1399 | even if they use @code{c-mode} because directory entries have priority | ||
| 1400 | over mode entries. | ||
| 1401 | |||
| 1380 | You can specify the variables @code{mode}, @code{eval}, and | 1402 | You can specify the variables @code{mode}, @code{eval}, and |
| 1381 | @code{unibyte} in your @file{.dir-locals.el}, and they have the same | 1403 | @code{unibyte} in your @file{.dir-locals.el}, and they have the same |
| 1382 | meanings as they would have in file local variables. @code{coding} | 1404 | meanings as they would have in file local variables. @code{coding} |
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 8bb603f49fa..cfc50d33b5f 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -2485,10 +2485,13 @@ automatically back to binary. | |||
| 2485 | into hex. This is useful if you visit a file normally and then discover | 2485 | into hex. This is useful if you visit a file normally and then discover |
| 2486 | it is a binary file. | 2486 | it is a binary file. |
| 2487 | 2487 | ||
| 2488 | Ordinary text characters overwrite in Hexl mode. This is to reduce | 2488 | Inserting text always overwrites in Hexl mode. This is to reduce |
| 2489 | the risk of accidentally spoiling the alignment of data in the file. | 2489 | the risk of accidentally spoiling the alignment of data in the file. |
| 2490 | There are special commands for insertion. Here is a list of the | 2490 | Ordinary text characters insert themselves (i.e., overwrite with |
| 2491 | commands of Hexl mode: | 2491 | themselves). There are commands for insertion of special characters |
| 2492 | by their code. Most cursor motion keys, as well as @kbd{C-x C-s}, are | ||
| 2493 | bound in Hexl mode to commands that produce the same effect. Here is | ||
| 2494 | a list of other important commands special to Hexl mode: | ||
| 2492 | 2495 | ||
| 2493 | @c I don't think individual index entries for these commands are useful--RMS. | 2496 | @c I don't think individual index entries for these commands are useful--RMS. |
| 2494 | @table @kbd | 2497 | @table @kbd |
| @@ -2501,6 +2504,12 @@ Insert a byte with a code typed in octal. | |||
| 2501 | @item C-M-x | 2504 | @item C-M-x |
| 2502 | Insert a byte with a code typed in hex. | 2505 | Insert a byte with a code typed in hex. |
| 2503 | 2506 | ||
| 2507 | @item C-M-a | ||
| 2508 | Move to the beginning of a 512-byte page. | ||
| 2509 | |||
| 2510 | @item C-M-e | ||
| 2511 | Move to the end of a 512-byte page. | ||
| 2512 | |||
| 2504 | @item C-x [ | 2513 | @item C-x [ |
| 2505 | Move to the beginning of a 1k-byte page. | 2514 | Move to the beginning of a 1k-byte page. |
| 2506 | 2515 | ||
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 500df1f8f0d..278bc3c2680 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -2252,9 +2252,11 @@ If it is impossible to move to column @var{column} because that is in | |||
| 2252 | the middle of a multicolumn character such as a tab, point moves to the | 2252 | the middle of a multicolumn character such as a tab, point moves to the |
| 2253 | end of that character. However, if @var{force} is non-@code{nil}, and | 2253 | end of that character. However, if @var{force} is non-@code{nil}, and |
| 2254 | @var{column} is in the middle of a tab, then @code{move-to-column} | 2254 | @var{column} is in the middle of a tab, then @code{move-to-column} |
| 2255 | converts the tab into spaces so that it can move precisely to column | 2255 | either converts the tab into spaces (when @code{indent-tabs-mode} is |
| 2256 | @var{column}. Other multicolumn characters can cause anomalies despite | 2256 | @code{nil}), or inserts enough spaces before it (otherwise), so that |
| 2257 | @var{force}, since there is no way to split them. | 2257 | point can move precisely to column @var{column}. Other multicolumn |
| 2258 | characters can cause anomalies despite @var{force}, since there is no | ||
| 2259 | way to split them. | ||
| 2258 | 2260 | ||
| 2259 | The argument @var{force} also has an effect if the line isn't long | 2261 | The argument @var{force} also has an effect if the line isn't long |
| 2260 | enough to reach column @var{column}; if it is @code{t}, that means to | 2262 | enough to reach column @var{column}; if it is @code{t}, that means to |