diff options
| author | Glenn Morris | 2011-02-19 11:40:59 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-19 11:40:59 -0800 |
| commit | 67ab0163d67fbfeb41c37c8a259f27eeef965520 (patch) | |
| tree | 0baa678a486744cc30719841ab745fe690f5bc9d /doc/lispref | |
| parent | d6e96966e86d8eadec446788d19144bd69b1e798 (diff) | |
| parent | 27ac6e7908c1d7b503ac5dca42a34ab9068d0864 (diff) | |
| download | emacs-67ab0163d67fbfeb41c37c8a259f27eeef965520.tar.gz emacs-67ab0163d67fbfeb41c37c8a259f27eeef965520.zip | |
Merge from emacs-23; up to 2010-06-01T01:49:15Z!monnier@iro.umontreal.ca
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 20 | ||||
| -rw-r--r-- | doc/lispref/elisp.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 30 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 2 |
5 files changed, 59 insertions, 1 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 0f1f0425478..90eed004d39 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-02-19 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * elisp.texi: Sync @dircategory with ../../info/dir. | ||
| 4 | |||
| 5 | * files.texi (Visiting Functions): Document find-file-literally, | ||
| 6 | both the command and the variable. | ||
| 7 | |||
| 8 | * variables.texi (Creating Buffer-Local): Explain the meaning of | ||
| 9 | permanent local variables. | ||
| 10 | |||
| 11 | * files.texi (Visiting Functions): Document find-file-literally, | ||
| 12 | both the command and the variable. | ||
| 13 | |||
| 14 | * variables.texi (Creating Buffer-Local): Explain the meaning of | ||
| 15 | permanent local variables. | ||
| 16 | |||
| 17 | 2011-02-19 Glenn Morris <rgm@gnu.org> | ||
| 18 | |||
| 19 | * keymaps.texi (Remapping Commands): Mention how to undo it. | ||
| 20 | |||
| 1 | 2011-02-09 Reuben Thomas <rrt@sc3d.org> | 21 | 2011-02-09 Reuben Thomas <rrt@sc3d.org> |
| 2 | 22 | ||
| 3 | * loading.texi (Hooks for Loading): Remove unnecessary advice | 23 | * loading.texi (Hooks for Loading): Remove unnecessary advice |
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi index ad7931d45b4..cc3ceb8003c 100644 --- a/doc/lispref/elisp.texi +++ b/doc/lispref/elisp.texi | |||
| @@ -62,7 +62,7 @@ developing GNU and promoting software freedom.'' | |||
| 62 | @end quotation | 62 | @end quotation |
| 63 | @end copying | 63 | @end copying |
| 64 | 64 | ||
| 65 | @dircategory Emacs | 65 | @dircategory GNU Emacs Lisp |
| 66 | @direntry | 66 | @direntry |
| 67 | * Elisp: (elisp). The Emacs Lisp Reference Manual. | 67 | * Elisp: (elisp). The Emacs Lisp Reference Manual. |
| 68 | @end direntry | 68 | @end direntry |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 46ebced7a32..3697f18badd 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -113,6 +113,26 @@ When @code{find-file} is called interactively, it prompts for | |||
| 113 | @var{filename} in the minibuffer. | 113 | @var{filename} in the minibuffer. |
| 114 | @end deffn | 114 | @end deffn |
| 115 | 115 | ||
| 116 | @deffn Command find-file-literally filename | ||
| 117 | This command visits @var{filename}, like @code{find-file} does, but it | ||
| 118 | does not perform any format conversions (@pxref{Format Conversion}), | ||
| 119 | character code conversions (@pxref{Coding Systems}), or end-of-line | ||
| 120 | conversions (@pxref{Coding System Basics, End of line conversion}). | ||
| 121 | The buffer visiting the file is made unibyte, and its major mode is | ||
| 122 | Fundamental mode, regardless of the file name. File local variable | ||
| 123 | specifications in the file (@pxref{File Local Variables}) are | ||
| 124 | ignored, and automatic decompression and adding a newline at the end | ||
| 125 | of the file due to @code{require-final-newline} (@pxref{Saving | ||
| 126 | Buffers, require-final-newline}) are also disabled. | ||
| 127 | |||
| 128 | Note that if Emacs already has a buffer visiting the same file | ||
| 129 | non-literally, it will not visit the same file literally, but instead | ||
| 130 | just switch to the existing buffer. If you want to be sure of | ||
| 131 | accessing a file's contents literally, you should create a temporary | ||
| 132 | buffer and then read the file contents into it using | ||
| 133 | @code{insert-file-contents-literally} (@pxref{Reading from Files}). | ||
| 134 | @end deffn | ||
| 135 | |||
| 116 | @defun find-file-noselect filename &optional nowarn rawfile wildcards | 136 | @defun find-file-noselect filename &optional nowarn rawfile wildcards |
| 117 | This function is the guts of all the file-visiting functions. It | 137 | This function is the guts of all the file-visiting functions. It |
| 118 | returns a buffer visiting the file @var{filename}. You may make the | 138 | returns a buffer visiting the file @var{filename}. You may make the |
| @@ -224,6 +244,16 @@ This is not a normal hook because the values of the functions are | |||
| 224 | used, and in many cases only some of the functions are called. | 244 | used, and in many cases only some of the functions are called. |
| 225 | @end defvar | 245 | @end defvar |
| 226 | 246 | ||
| 247 | @defvar find-file-literally | ||
| 248 | This buffer-local variable, if set to a non-@code{nil} value, makes | ||
| 249 | @code{save-buffer} behave as if the buffer were visiting its file | ||
| 250 | literally, i.e. without conversions of any kind. The command | ||
| 251 | @code{find-file-literally} sets this variable's local value, but other | ||
| 252 | equivalent functions and commands can do that as well, e.g.@: to avoid | ||
| 253 | automatic addition of a newline at the end of the file. This variable | ||
| 254 | us permanent local, so it is unaffected by changes of major modes. | ||
| 255 | @end defvar | ||
| 256 | |||
| 227 | @node Subroutines of Visiting | 257 | @node Subroutines of Visiting |
| 228 | @comment node-name, next, previous, up | 258 | @comment node-name, next, previous, up |
| 229 | @subsection Subroutines of Visiting | 259 | @subsection Subroutines of Visiting |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 4a2964b9b6c..af24ff5aa43 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -1508,6 +1508,12 @@ does not have the effect of remapping @code{kill-line} into | |||
| 1508 | if an ordinary binding specifies @code{my-kill-line}, this keymap will | 1508 | if an ordinary binding specifies @code{my-kill-line}, this keymap will |
| 1509 | remap it to @code{my-other-kill-line}. | 1509 | remap it to @code{my-other-kill-line}. |
| 1510 | 1510 | ||
| 1511 | To undo the remapping of a command, remap it to @code{nil}; e.g. | ||
| 1512 | |||
| 1513 | @smallexample | ||
| 1514 | (define-key my-mode-map [remap kill-line] nil) | ||
| 1515 | @end smallexample | ||
| 1516 | |||
| 1511 | @defun command-remapping command &optional position keymaps | 1517 | @defun command-remapping command &optional position keymaps |
| 1512 | This function returns the remapping for @var{command} (a symbol), | 1518 | This function returns the remapping for @var{command} (a symbol), |
| 1513 | given the current active keymaps. If @var{command} is not remapped | 1519 | given the current active keymaps. If @var{command} is not remapped |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 5b5f3365978..0cdcaa84d58 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1407,6 +1407,8 @@ subsequent major mode. @xref{Hooks}. | |||
| 1407 | @cindex permanent local variable | 1407 | @cindex permanent local variable |
| 1408 | A buffer-local variable is @dfn{permanent} if the variable name (a | 1408 | A buffer-local variable is @dfn{permanent} if the variable name (a |
| 1409 | symbol) has a @code{permanent-local} property that is non-@code{nil}. | 1409 | symbol) has a @code{permanent-local} property that is non-@code{nil}. |
| 1410 | Such variables are unaffected by @code{kill-all-local-variables}, and | ||
| 1411 | their local bindings are therefore not cleared by changing major modes. | ||
| 1410 | Permanent locals are appropriate for data pertaining to where the file | 1412 | Permanent locals are appropriate for data pertaining to where the file |
| 1411 | came from or how to save it, rather than with how to edit the contents. | 1413 | came from or how to save it, rather than with how to edit the contents. |
| 1412 | 1414 | ||