aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2011-02-19 11:40:59 -0800
committerGlenn Morris2011-02-19 11:40:59 -0800
commit67ab0163d67fbfeb41c37c8a259f27eeef965520 (patch)
tree0baa678a486744cc30719841ab745fe690f5bc9d /doc/lispref
parentd6e96966e86d8eadec446788d19144bd69b1e798 (diff)
parent27ac6e7908c1d7b503ac5dca42a34ab9068d0864 (diff)
downloademacs-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/ChangeLog20
-rw-r--r--doc/lispref/elisp.texi2
-rw-r--r--doc/lispref/files.texi30
-rw-r--r--doc/lispref/keymaps.texi6
-rw-r--r--doc/lispref/variables.texi2
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 @@
12011-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
172011-02-19 Glenn Morris <rgm@gnu.org>
18
19 * keymaps.texi (Remapping Commands): Mention how to undo it.
20
12011-02-09 Reuben Thomas <rrt@sc3d.org> 212011-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
117This command visits @var{filename}, like @code{find-file} does, but it
118does not perform any format conversions (@pxref{Format Conversion}),
119character code conversions (@pxref{Coding Systems}), or end-of-line
120conversions (@pxref{Coding System Basics, End of line conversion}).
121The buffer visiting the file is made unibyte, and its major mode is
122Fundamental mode, regardless of the file name. File local variable
123specifications in the file (@pxref{File Local Variables}) are
124ignored, and automatic decompression and adding a newline at the end
125of the file due to @code{require-final-newline} (@pxref{Saving
126Buffers, require-final-newline}) are also disabled.
127
128Note that if Emacs already has a buffer visiting the same file
129non-literally, it will not visit the same file literally, but instead
130just switch to the existing buffer. If you want to be sure of
131accessing a file's contents literally, you should create a temporary
132buffer 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
117This function is the guts of all the file-visiting functions. It 137This function is the guts of all the file-visiting functions. It
118returns a buffer visiting the file @var{filename}. You may make the 138returns 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
224used, and in many cases only some of the functions are called. 244used, and in many cases only some of the functions are called.
225@end defvar 245@end defvar
226 246
247@defvar find-file-literally
248This 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
250literally, i.e. without conversions of any kind. The command
251@code{find-file-literally} sets this variable's local value, but other
252equivalent functions and commands can do that as well, e.g.@: to avoid
253automatic addition of a newline at the end of the file. This variable
254us 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
1508if an ordinary binding specifies @code{my-kill-line}, this keymap will 1508if an ordinary binding specifies @code{my-kill-line}, this keymap will
1509remap it to @code{my-other-kill-line}. 1509remap it to @code{my-other-kill-line}.
1510 1510
1511To 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
1512This function returns the remapping for @var{command} (a symbol), 1518This function returns the remapping for @var{command} (a symbol),
1513given the current active keymaps. If @var{command} is not remapped 1519given 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
1408A buffer-local variable is @dfn{permanent} if the variable name (a 1408A buffer-local variable is @dfn{permanent} if the variable name (a
1409symbol) has a @code{permanent-local} property that is non-@code{nil}. 1409symbol) has a @code{permanent-local} property that is non-@code{nil}.
1410Such variables are unaffected by @code{kill-all-local-variables}, and
1411their local bindings are therefore not cleared by changing major modes.
1410Permanent locals are appropriate for data pertaining to where the file 1412Permanent locals are appropriate for data pertaining to where the file
1411came from or how to save it, rather than with how to edit the contents. 1413came from or how to save it, rather than with how to edit the contents.
1412 1414