aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2019-05-14 17:18:18 -0700
committerGlenn Morris2019-05-14 17:18:18 -0700
commit5fe9375a5164960c3ecb65a7ef6d742069b8a7d7 (patch)
tree315715009d9fe5af40be38cb0dfccecfaf4c5528 /doc
parent0f63e17663f99742425c9ec4f282f5e7e3194b1b (diff)
parent02bee7860f7e650ef13e00fe1a7f9a362e3eb001 (diff)
downloademacs-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 &#10; 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.texi22
-rw-r--r--doc/emacs/misc.texi15
-rw-r--r--doc/lispref/text.texi8
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.
1377Finally, it specifies a different @file{ChangeLog} file name for any 1377Finally, it specifies a different @file{ChangeLog} file name for any
1378file in the @file{src/imported} subdirectory. 1378file in the @file{src/imported} subdirectory.
1379 1379
1380If the @file{.dir-locals.el} file contains multiple different values
1381for a variable using different mode names or directories, the values
1382will be applied in an order such that the values for more specific
1383modes take priority over more generic modes. Values specified under a
1384directory 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
1393Files that use @code{c-mode} also match @code{prog-mode} because the
1394former inherits from the latter. The value used for
1395@code{fill-column} in C files will however be @code{50} because the
1396mode name is more specific than @code{prog-mode}. Files using other
1397modes inheriting from @code{prog-mode} will use @code{60}. Any file
1398under the directory @file{narrow-files} will use the value @code{20}
1399even if they use @code{c-mode} because directory entries have priority
1400over mode entries.
1401
1380You can specify the variables @code{mode}, @code{eval}, and 1402You 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
1382meanings as they would have in file local variables. @code{coding} 1404meanings 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.
2485into hex. This is useful if you visit a file normally and then discover 2485into hex. This is useful if you visit a file normally and then discover
2486it is a binary file. 2486it 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
2489the risk of accidentally spoiling the alignment of data in the file. 2489the risk of accidentally spoiling the alignment of data in the file.
2490There are special commands for insertion. Here is a list of the 2490Ordinary text characters insert themselves (i.e., overwrite with
2491commands of Hexl mode: 2491themselves). There are commands for insertion of special characters
2492by their code. Most cursor motion keys, as well as @kbd{C-x C-s}, are
2493bound in Hexl mode to commands that produce the same effect. Here is
2494a 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
2502Insert a byte with a code typed in hex. 2505Insert a byte with a code typed in hex.
2503 2506
2507@item C-M-a
2508Move to the beginning of a 512-byte page.
2509
2510@item C-M-e
2511Move to the end of a 512-byte page.
2512
2504@item C-x [ 2513@item C-x [
2505Move to the beginning of a 1k-byte page. 2514Move 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
2252the middle of a multicolumn character such as a tab, point moves to the 2252the middle of a multicolumn character such as a tab, point moves to the
2253end of that character. However, if @var{force} is non-@code{nil}, and 2253end 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}
2255converts the tab into spaces so that it can move precisely to column 2255either 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. 2257point can move precisely to column @var{column}. Other multicolumn
2258characters can cause anomalies despite @var{force}, since there is no
2259way to split them.
2258 2260
2259The argument @var{force} also has an effect if the line isn't long 2261The argument @var{force} also has an effect if the line isn't long
2260enough to reach column @var{column}; if it is @code{t}, that means to 2262enough to reach column @var{column}; if it is @code{t}, that means to