[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el,v |
Date: |
Fri, 14 Nov 2008 13:05:37 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 08/11/14 13:05:35
Index: lisp/files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.1010
retrieving revision 1.1011
diff -u -b -r1.1010 -r1.1011
--- lisp/files.el 13 Nov 2008 17:04:53 -0000 1.1010
+++ lisp/files.el 14 Nov 2008 13:05:31 -0000 1.1011
@@ -487,7 +487,7 @@
(defcustom enable-local-eval 'maybe
"Control processing of the \"variable\" `eval' in a file's local variables.
The value can be t, nil or something else.
-A value of t means obey `eval' variables;
+A value of t means obey `eval' variables.
A value of nil means ignore them; anything else means query."
:type '(choice (const :tag "Obey" t)
(const :tag "Ignore" nil)
@@ -1116,8 +1116,8 @@
When called from Lisp, BUFFER can be a buffer, a string \(a buffer name),
or nil. If BUFFER is nil, then this function chooses a buffer
using `other-buffer'.
-Optional second arg NORECORD non-nil means
-do not put this buffer at the front of the list of recently selected ones.
+Optional second arg NORECORD non-nil means do not put this
+buffer at the front of the list of recently selected ones.
This function returns the buffer it switched to.
This uses the function `display-buffer' as a subroutine; see its
@@ -3167,11 +3167,11 @@
(error "No such project class `%s'" (symbol-name class)))
(push (cons directory class) project-directory-alist))
-(defun define-project-bindings (class list)
+(defun define-project-bindings (class settings)
"Map the project type CLASS to a list of variable settings.
CLASS is the project class, a symbol.
-LIST is a list that declares variable settings for the class.
-An element in LIST is either of the form:
+SETTINGS is a list that declares variable settings for the class.
+An element in SETTINGS is either of the form:
(MAJOR-MODE . ALIST)
or
(DIRECTORY . LIST)
@@ -3199,8 +3199,8 @@
applied by recursively following these rules."
(let ((elt (assq class project-class-alist)))
(if elt
- (setcdr elt list)
- (push (cons class list) project-class-alist))))
+ (setcdr elt settings)
+ (push (cons class settings) project-class-alist))))
(defcustom project-settings-file ".dir-settings.el"
"Settings file for per-project settings.
@@ -3219,10 +3219,10 @@
Otherwise this returns nil."
(when project-settings-file
(setq file (expand-file-name file))
- (let* ((settings (locate-dominating-file file project-settings-file))
+ (let ((settings (locate-dominating-file file project-settings-file))
(pda nil))
;; `locate-dominating-file' may have abbreviated the name.
- (if settings
+ (when settings
(setq settings (expand-file-name project-settings-file settings)))
(dolist (x project-directory-alist)
(when (and (eq t (compare-strings file nil (length (car x))
@@ -4331,7 +4331,7 @@
(defun not-modified (&optional arg)
"Mark current buffer as unmodified, not needing to be saved.
-With prefix arg, mark buffer as modified, so \\[save-buffer] will save.
+With prefix ARG, mark buffer as modified, so \\[save-buffer] will save.
It is not a good idea to use this function in Lisp programs, because it
prints a message in the minibuffer. Instead, use `set-buffer-modified-p'."
@@ -4514,9 +4514,9 @@
This command also implements an interface for special buffers
that contain text which doesn't come from a file, but reflects
some other data instead (e.g. Dired buffers, `buffer-list'
-buffers). This is done via the variable
-`revert-buffer-function'. In these cases, it should reconstruct
-the buffer contents from the appropriate data.
+buffers). This is done via the variable `revert-buffer-function'.
+In these cases, it should reconstruct the buffer contents from the
+appropriate data.
When called from Lisp, the first argument is IGNORE-AUTO; only offer
to revert from the auto-save file when this is nil. Note that the
@@ -4524,8 +4524,8 @@
sake of backward compatibility. IGNORE-AUTO is optional, defaulting
to nil.
-Optional second argument NOCONFIRM means don't ask for confirmation at
-all. \(The variable `revert-without-query' offers another way to
+Optional second argument NOCONFIRM means don't ask for confirmation
+at all. \(The variable `revert-without-query' offers another way to
revert buffers without querying for confirmation.)
Optional third argument PRESERVE-MODES non-nil means don't alter
@@ -4804,7 +4804,7 @@
(kill-buffer buffer))))
(defun kill-buffer-ask (buffer)
- "Kill buffer if confirmed."
+ "Kill BUFFER if confirmed."
(when (yes-or-no-p
(format "Buffer %s %s. Kill? " (buffer-name buffer)
(if (buffer-modified-p buffer)
@@ -4829,7 +4829,7 @@
(setq list (cdr list))))
(defun kill-matching-buffers (regexp &optional internal-too)
- "Kill buffers whose name matches the specified regexp.
+ "Kill buffers whose name matches the specified REGEXP.
The optional second argument indicates whether to kill internal buffers too."
(interactive "sKill buffers matching this regular expression: \nP")
(dolist (buffer (buffer-list))
@@ -5623,7 +5623,7 @@
(defun save-buffers-kill-emacs (&optional arg)
"Offer to save each buffer, then kill this Emacs process.
-With prefix arg, silently save all file-visiting buffers, then kill."
+With prefix ARG, silently save all file-visiting buffers, then kill."
(interactive "P")
(save-some-buffers arg t)
(and (or (not (memq t (mapcar (function
@@ -5653,7 +5653,7 @@
"Offer to save each buffer, then kill the current connection.
If the current frame has no client, kill Emacs itself.
-With prefix arg, silently save all file-visiting buffers, then kill.
+With prefix ARG, silently save all file-visiting buffers, then kill.
If emacsclient was started with a list of filenames to edit, then
only these files will be asked to be saved."
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Chong Yidong, 2008/11/13
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Juanma Barranquero, 2008/11/13
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Chong Yidong, 2008/11/13
- [Emacs-diffs] Changes to emacs/lisp/files.el,v,
Juanma Barranquero <=
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Karl Fogel, 2008/11/14
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Stefan Monnier, 2008/11/18
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Dan Nicolaescu, 2008/11/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Glenn Morris, 2008/11/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Chong Yidong, 2008/11/21