aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2012-11-17 17:52:36 -0800
committerGlenn Morris2012-11-17 17:52:36 -0800
commit2ac9538d674ab0aa937d22b68fef9136ddd904b9 (patch)
tree81cf8c6762c0443ca2debe490ecfa7c1e55d2da0 /lisp
parentc9ed8e3d2ba6c7d6eda82a39cbfa87729f1ca53e (diff)
parent291a654dad6d4604ed4db80885b3af04e64c944f (diff)
downloademacs-2ac9538d674ab0aa937d22b68fef9136ddd904b9.tar.gz
emacs-2ac9538d674ab0aa937d22b68fef9136ddd904b9.zip
Merge from emacs-24; up to 2012-11-15T23:31:37Z!dancol@dancol.org
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog28
-rw-r--r--lisp/emacs-lisp/cl-lib.el2
-rw-r--r--lisp/emacs-lisp/syntax.el20
-rw-r--r--lisp/filecache.el4
-rw-r--r--lisp/image.el6
-rw-r--r--lisp/subr.el5
-rw-r--r--lisp/url/url-parse.el2
-rw-r--r--lisp/vc/vc-svn.el2
-rw-r--r--lisp/window.el53
9 files changed, 83 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b1bd67fc47d..cd1cf014ef2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,31 @@
12012-11-18 Glenn Morris <rgm@gnu.org>
2
3 * image.el (insert-image, insert-sliced-image): Doc fix.
4
52012-11-18 Chong Yidong <cyd@gnu.org>
6
7 * emacs-lisp/syntax.el (syntax-propertize-function): Doc fix
8 (Bug#12810).
9
102012-11-18 OKAZAKI Tetsurou <okazaki.tetsurou@gmail.com> (tiny change)
11
12 * vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge
13 response when the target file is in a subdirectory (Bug#12757).
14
152012-11-18 Chong Yidong <cyd@gnu.org>
16
17 * filecache.el (file-cache-add-file-list): Doc fix (Bug#12694).
18
192012-11-18 Glenn Morris <rgm@gnu.org>
20
21 * woman.el (woman-non-underline-faces):
22 * emacs-lisp/cl-lib.el (face-underline-p):
23 Use set-face-underline rather than the alias set-face-underline-p.
24
25 * window.el (with-temp-buffer-window): Doc fix.
26 * subr.el (with-output-to-temp-buffer):
27 Add doc xref to with-temp-buffer-window.
28
12012-11-18 Juanma Barranquero <lekktu@gmail.com> 292012-11-18 Juanma Barranquero <lekktu@gmail.com>
2 30
3 * woman.el (woman-non-underline-faces): Use `set-face-underline'. 31 * woman.el (woman-non-underline-faces): Use `set-face-underline'.
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index bfc63134985..d5e5f4bbfbc 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -661,7 +661,7 @@ If ALIST is non-nil, the new pairs are prepended to it."
661(gv-define-setter face-foreground (x f &optional s) 661(gv-define-setter face-foreground (x f &optional s)
662 `(set-face-foreground ,f ,x ,s)) 662 `(set-face-foreground ,f ,x ,s))
663(gv-define-setter face-underline-p (x f &optional s) 663(gv-define-setter face-underline-p (x f &optional s)
664 `(set-face-underline-p ,f ,x ,s)) 664 `(set-face-underline ,f ,x ,s))
665(gv-define-simple-setter file-modes set-file-modes t) 665(gv-define-simple-setter file-modes set-file-modes t)
666(gv-define-simple-setter frame-height set-screen-height t) 666(gv-define-simple-setter frame-height set-screen-height t)
667(gv-define-simple-setter frame-parameters modify-frame-parameters t) 667(gv-define-simple-setter frame-parameters modify-frame-parameters t)
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index c3d78b3444b..592cb1b0174 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -55,12 +55,18 @@
55 ;; have to flush that cache between each function, and we couldn't use 55 ;; have to flush that cache between each function, and we couldn't use
56 ;; syntax-ppss-flush-cache since that would not only flush the cache but also 56 ;; syntax-ppss-flush-cache since that would not only flush the cache but also
57 ;; reset syntax-propertize--done which should not be done in this case). 57 ;; reset syntax-propertize--done which should not be done in this case).
58 "Mode-specific function to apply the syntax-table properties. 58 "Mode-specific function to apply `syntax-table' text properties.
59Called with two arguments: START and END. 59The value of this variable is a function to be called by Font
60This function can call `syntax-ppss' on any position before END, but it 60Lock mode, prior to performing syntactic fontification on a
61should not call `syntax-ppss-flush-cache', which means that it should not 61stretch of text. It is given two arguments, START and END: the
62call `syntax-ppss' on some position and later modify the buffer on some 62start and end of the text to be fontified. Major modes can
63earlier position.") 63specify a custom function to apply `syntax-table' properties to
64override the default syntax table in special cases.
65
66The specified function may call `syntax-ppss' on any position
67before END, but it should not call `syntax-ppss-flush-cache',
68which means that it should not call `syntax-ppss' on some
69position and later modify the buffer on some earlier position.")
64 70
65(defvar syntax-propertize-chunk-size 500) 71(defvar syntax-propertize-chunk-size 500)
66 72
@@ -118,7 +124,7 @@ The arg RULES can be of the same form as in `syntax-propertize-rules'.
118The return value is an object that can be passed as a rule to 124The return value is an object that can be passed as a rule to
119`syntax-propertize-rules'. 125`syntax-propertize-rules'.
120I.e. this is useful only when you want to share rules among several 126I.e. this is useful only when you want to share rules among several
121syntax-propertize-functions." 127`syntax-propertize-function's."
122 (declare (debug syntax-propertize-rules)) 128 (declare (debug syntax-propertize-rules))
123 ;; Precompile? Yeah, right! 129 ;; Precompile? Yeah, right!
124 ;; Seriously, tho, this is a macro for 2 reasons: 130 ;; Seriously, tho, this is a macro for 2 reasons:
diff --git a/lisp/filecache.el b/lisp/filecache.el
index 23246c24c45..f868ef5e275 100644
--- a/lisp/filecache.el
+++ b/lisp/filecache.el
@@ -300,7 +300,9 @@ files in each directory, not to the directory list itself."
300 directory-list)) 300 directory-list))
301 301
302(defun file-cache-add-file-list (file-list) 302(defun file-cache-add-file-list (file-list)
303 "Add FILE-LIST (a list of files names) to the file cache." 303 "Add FILE-LIST (a list of file names) to the file cache.
304Interactively, FILE-LIST is read as a Lisp expression, which
305should evaluate to the desired list of file names."
304 (interactive "XFile List: ") 306 (interactive "XFile List: ")
305 (mapcar 'file-cache-add-file file-list)) 307 (mapcar 'file-cache-add-file file-list))
306 308
diff --git a/lisp/image.el b/lisp/image.el
index bd2f5c3a3ca..27bbc2c08d6 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -429,7 +429,7 @@ means display it in the right marginal area."
429 "Insert IMAGE into current buffer at point. 429 "Insert IMAGE into current buffer at point.
430IMAGE is displayed by inserting STRING into the current buffer 430IMAGE is displayed by inserting STRING into the current buffer
431with a `display' property whose value is the image. STRING 431with a `display' property whose value is the image. STRING
432defaults to the empty string if you omit it. 432defaults to a single space if you omit it.
433AREA is where to display the image. AREA nil or omitted means 433AREA is where to display the image. AREA nil or omitted means
434display it in the text area, a value of `left-margin' means 434display it in the text area, a value of `left-margin' means
435display it in the left marginal area, a value of `right-margin' 435display it in the left marginal area, a value of `right-margin'
@@ -467,8 +467,8 @@ height of the image; integer values are taken as pixel values."
467(defun insert-sliced-image (image &optional string area rows cols) 467(defun insert-sliced-image (image &optional string area rows cols)
468 "Insert IMAGE into current buffer at point. 468 "Insert IMAGE into current buffer at point.
469IMAGE is displayed by inserting STRING into the current buffer 469IMAGE is displayed by inserting STRING into the current buffer
470with a `display' property whose value is the image. STRING is 470with a `display' property whose value is the image. The default
471defaulted if you omit it. 471STRING is a single space.
472AREA is where to display the image. AREA nil or omitted means 472AREA is where to display the image. AREA nil or omitted means
473display it in the text area, a value of `left-margin' means 473display it in the text area, a value of `left-margin' means
474display it in the left marginal area, a value of `right-margin' 474display it in the left marginal area, a value of `right-margin'
diff --git a/lisp/subr.el b/lisp/subr.el
index 0745ee71eb8..8410897fd6f 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3189,6 +3189,7 @@ in which case `save-window-excursion' cannot help."
3189 ;; Return nil. 3189 ;; Return nil.
3190 nil) 3190 nil)
3191 3191
3192;; Doc is very similar to with-temp-buffer-window.
3192(defmacro with-output-to-temp-buffer (bufname &rest body) 3193(defmacro with-output-to-temp-buffer (bufname &rest body)
3193 "Bind `standard-output' to buffer BUFNAME, eval BODY, then show that buffer. 3194 "Bind `standard-output' to buffer BUFNAME, eval BODY, then show that buffer.
3194 3195
@@ -3214,7 +3215,9 @@ with the buffer BUFNAME temporarily current. It runs the hook
3214`temp-buffer-show-hook' after displaying buffer BUFNAME, with that 3215`temp-buffer-show-hook' after displaying buffer BUFNAME, with that
3215buffer temporarily current, and the window that was used to display it 3216buffer temporarily current, and the window that was used to display it
3216temporarily selected. But it doesn't run `temp-buffer-show-hook' 3217temporarily selected. But it doesn't run `temp-buffer-show-hook'
3217if it uses `temp-buffer-show-function'." 3218if it uses `temp-buffer-show-function'.
3219
3220See the related form `with-temp-buffer-window'."
3218 (declare (debug t)) 3221 (declare (debug t))
3219 (let ((old-dir (make-symbol "old-dir")) 3222 (let ((old-dir (make-symbol "old-dir"))
3220 (buf (make-symbol "buf"))) 3223 (buf (make-symbol "buf")))
diff --git a/lisp/url/url-parse.el b/lisp/url/url-parse.el
index cb61a021251..2efabed5cd8 100644
--- a/lisp/url/url-parse.el
+++ b/lisp/url/url-parse.el
@@ -48,7 +48,7 @@
48 48
49(defun url-path-and-query (urlobj) 49(defun url-path-and-query (urlobj)
50 "Return the path and query components of URLOBJ. 50 "Return the path and query components of URLOBJ.
51These two components are store together in the FILENAME slot of 51These two components are stored together in the FILENAME slot of
52the object. The return value of this function is (PATH . QUERY), 52the object. The return value of this function is (PATH . QUERY),
53where each of PATH and QUERY are strings or nil." 53where each of PATH and QUERY are strings or nil."
54 (let ((name (url-filename urlobj)) 54 (let ((name (url-filename urlobj))
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index 3becd8950f1..370cd0a9dca 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -414,7 +414,7 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
414 ;; We also used to match the filename in column 0 without any 414 ;; We also used to match the filename in column 0 without any
415 ;; meta-info before it, but I believe this can never happen. 415 ;; meta-info before it, but I believe this can never happen.
416 (concat "^\\(\\([ACGDU]\\)\\(.[B ]\\)? \\)" 416 (concat "^\\(\\([ACGDU]\\)\\(.[B ]\\)? \\)"
417 (regexp-quote (file-name-nondirectory file))) 417 (regexp-quote (file-relative-name file)))
418 nil t) 418 nil t)
419 (cond 419 (cond
420 ;; Merge successful, we are in sync with repository now 420 ;; Merge successful, we are in sync with repository now
diff --git a/lisp/window.el b/lisp/window.el
index 9ac3a4ecda0..d378ea5ff14 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -142,41 +142,46 @@ to `display-buffer'."
142 ;; Return the window. 142 ;; Return the window.
143 window)))) 143 window))))
144 144
145;; Doc is very similar to with-output-to-temp-buffer.
145(defmacro with-temp-buffer-window (buffer-or-name action quit-function &rest body) 146(defmacro with-temp-buffer-window (buffer-or-name action quit-function &rest body)
146 "Evaluate BODY and display the buffer specified by BUFFER-OR-NAME. 147 "Bind `standard-output' to BUFFER-OR-NAME, eval BODY, show the buffer.
147BUFFER-OR-NAME must specify either a live buffer, or the name of a 148BUFFER-OR-NAME must specify either a live buffer, or the name of a
148buffer (if it does not exist, this macro creates it). 149buffer (if it does not exist, this macro creates it).
149 150
150Make sure the specified buffer is empty before evaluating BODY. 151This construct makes buffer BUFFER-OR-NAME empty before running BODY.
151Do not make that buffer current for BODY. Instead, bind 152It does not make the buffer current for BODY.
152`standard-output' to that buffer, so that output generated with 153Instead it binds `standard-output' to that buffer, so that output
153`prin1' and similar functions in BODY goes into that buffer. 154generated with `prin1' and similar functions in BODY goes into
155the buffer.
154 156
155After evaluating BODY, this marks the specified buffer unmodified and 157At the end of BODY, this marks the specified buffer unmodified and
156read-only, and displays it in a window via `display-buffer', passing 158read-only, and displays it in a window (but does not select it, or make
157ACTION as the action argument to `display-buffer'. It automatically 159the buffer current). The display happens by calling `display-buffer'
158shrinks the relevant window if `temp-buffer-resize-mode' is enabled. 160with the ACTION argument. If `temp-buffer-resize-mode' is enabled,
161the relevant window shrinks automatically.
159 162
160Returns the value returned by BODY, unless QUIT-FUNCTION specifies 163This returns the value returned by BODY, unless QUIT-FUNCTION specifies
161a function. In that case, runs the function with two arguments - 164a function. In that case, it runs the function with two arguments -
162the window showing the specified buffer and the value returned by 165the window showing the specified buffer and the value returned by
163BODY - and returns the value returned by that function. 166BODY - and returns the value returned by that function.
164 167
165If the buffer is displayed on a new frame, the window manager may 168If the buffer is displayed on a new frame, the window manager may
166decide to select that frame. In that case, it's usually a good 169decide to select that frame. In that case, it's usually a good
167strategy if the function specified by QUIT-FUNCTION selects the 170strategy if QUIT-FUNCTION selects the window showing the buffer
168window showing the buffer before reading a value from the 171before reading any value from the minibuffer; for example, when
169minibuffer; for example, when asking a `yes-or-no-p' question. 172asking a `yes-or-no-p' question.
170 173
171This construct is similar to `with-output-to-temp-buffer', but does 174This runs the hook `temp-buffer-window-setup-hook' before BODY,
172not put the buffer in help mode, or call `temp-buffer-show-function'. 175with the specified buffer temporarily current. It runs the
173It also runs different hooks, namely `temp-buffer-window-setup-hook' 176hook `temp-buffer-window-show-hook' after displaying the buffer,
174\(with the specified buffer current) and `temp-buffer-window-show-hook' 177with that buffer temporarily current, and the window that was used to
175\(with the specified buffer current and the window showing it selected). 178display it temporarily selected.
176 179
177Since this macro calls `display-buffer', the window displaying 180This construct is similar to `with-output-to-temp-buffer', but
178the buffer is usually not selected and the specified buffer 181runs different hooks. In particular, it does not run
179usually not made current. QUIT-FUNCTION can override that." 182`temp-buffer-setup-hook', which usually puts the buffer in Help mode.
183Also, it does not call `temp-buffer-show-function' (the ACTION
184argument replaces this)."
180 (declare (debug t)) 185 (declare (debug t))
181 (let ((buffer (make-symbol "buffer")) 186 (let ((buffer (make-symbol "buffer"))
182 (window (make-symbol "window")) 187 (window (make-symbol "window"))