diff options
| author | Glenn Morris | 2012-11-17 17:52:36 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-17 17:52:36 -0800 |
| commit | 2ac9538d674ab0aa937d22b68fef9136ddd904b9 (patch) | |
| tree | 81cf8c6762c0443ca2debe490ecfa7c1e55d2da0 /lisp | |
| parent | c9ed8e3d2ba6c7d6eda82a39cbfa87729f1ca53e (diff) | |
| parent | 291a654dad6d4604ed4db80885b3af04e64c944f (diff) | |
| download | emacs-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/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-lib.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 20 | ||||
| -rw-r--r-- | lisp/filecache.el | 4 | ||||
| -rw-r--r-- | lisp/image.el | 6 | ||||
| -rw-r--r-- | lisp/subr.el | 5 | ||||
| -rw-r--r-- | lisp/url/url-parse.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc-svn.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 53 |
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 @@ | |||
| 1 | 2012-11-18 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * image.el (insert-image, insert-sliced-image): Doc fix. | ||
| 4 | |||
| 5 | 2012-11-18 Chong Yidong <cyd@gnu.org> | ||
| 6 | |||
| 7 | * emacs-lisp/syntax.el (syntax-propertize-function): Doc fix | ||
| 8 | (Bug#12810). | ||
| 9 | |||
| 10 | 2012-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 | |||
| 15 | 2012-11-18 Chong Yidong <cyd@gnu.org> | ||
| 16 | |||
| 17 | * filecache.el (file-cache-add-file-list): Doc fix (Bug#12694). | ||
| 18 | |||
| 19 | 2012-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 | |||
| 1 | 2012-11-18 Juanma Barranquero <lekktu@gmail.com> | 29 | 2012-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. |
| 59 | Called with two arguments: START and END. | 59 | The value of this variable is a function to be called by Font |
| 60 | This function can call `syntax-ppss' on any position before END, but it | 60 | Lock mode, prior to performing syntactic fontification on a |
| 61 | should not call `syntax-ppss-flush-cache', which means that it should not | 61 | stretch of text. It is given two arguments, START and END: the |
| 62 | call `syntax-ppss' on some position and later modify the buffer on some | 62 | start and end of the text to be fontified. Major modes can |
| 63 | earlier position.") | 63 | specify a custom function to apply `syntax-table' properties to |
| 64 | override the default syntax table in special cases. | ||
| 65 | |||
| 66 | The specified function may call `syntax-ppss' on any position | ||
| 67 | before END, but it should not call `syntax-ppss-flush-cache', | ||
| 68 | which means that it should not call `syntax-ppss' on some | ||
| 69 | position 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'. | |||
| 118 | The return value is an object that can be passed as a rule to | 124 | The return value is an object that can be passed as a rule to |
| 119 | `syntax-propertize-rules'. | 125 | `syntax-propertize-rules'. |
| 120 | I.e. this is useful only when you want to share rules among several | 126 | I.e. this is useful only when you want to share rules among several |
| 121 | syntax-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. |
| 304 | Interactively, FILE-LIST is read as a Lisp expression, which | ||
| 305 | should 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. |
| 430 | IMAGE is displayed by inserting STRING into the current buffer | 430 | IMAGE is displayed by inserting STRING into the current buffer |
| 431 | with a `display' property whose value is the image. STRING | 431 | with a `display' property whose value is the image. STRING |
| 432 | defaults to the empty string if you omit it. | 432 | defaults to a single space if you omit it. |
| 433 | AREA is where to display the image. AREA nil or omitted means | 433 | AREA is where to display the image. AREA nil or omitted means |
| 434 | display it in the text area, a value of `left-margin' means | 434 | display it in the text area, a value of `left-margin' means |
| 435 | display it in the left marginal area, a value of `right-margin' | 435 | display 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. |
| 469 | IMAGE is displayed by inserting STRING into the current buffer | 469 | IMAGE is displayed by inserting STRING into the current buffer |
| 470 | with a `display' property whose value is the image. STRING is | 470 | with a `display' property whose value is the image. The default |
| 471 | defaulted if you omit it. | 471 | STRING is a single space. |
| 472 | AREA is where to display the image. AREA nil or omitted means | 472 | AREA is where to display the image. AREA nil or omitted means |
| 473 | display it in the text area, a value of `left-margin' means | 473 | display it in the text area, a value of `left-margin' means |
| 474 | display it in the left marginal area, a value of `right-margin' | 474 | display 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 |
| 3215 | buffer temporarily current, and the window that was used to display it | 3216 | buffer temporarily current, and the window that was used to display it |
| 3216 | temporarily selected. But it doesn't run `temp-buffer-show-hook' | 3217 | temporarily selected. But it doesn't run `temp-buffer-show-hook' |
| 3217 | if it uses `temp-buffer-show-function'." | 3218 | if it uses `temp-buffer-show-function'. |
| 3219 | |||
| 3220 | See 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. |
| 51 | These two components are store together in the FILENAME slot of | 51 | These two components are stored together in the FILENAME slot of |
| 52 | the object. The return value of this function is (PATH . QUERY), | 52 | the object. The return value of this function is (PATH . QUERY), |
| 53 | where each of PATH and QUERY are strings or nil." | 53 | where 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. |
| 147 | BUFFER-OR-NAME must specify either a live buffer, or the name of a | 148 | BUFFER-OR-NAME must specify either a live buffer, or the name of a |
| 148 | buffer (if it does not exist, this macro creates it). | 149 | buffer (if it does not exist, this macro creates it). |
| 149 | 150 | ||
| 150 | Make sure the specified buffer is empty before evaluating BODY. | 151 | This construct makes buffer BUFFER-OR-NAME empty before running BODY. |
| 151 | Do not make that buffer current for BODY. Instead, bind | 152 | It does not make the buffer current for BODY. |
| 152 | `standard-output' to that buffer, so that output generated with | 153 | Instead it binds `standard-output' to that buffer, so that output |
| 153 | `prin1' and similar functions in BODY goes into that buffer. | 154 | generated with `prin1' and similar functions in BODY goes into |
| 155 | the buffer. | ||
| 154 | 156 | ||
| 155 | After evaluating BODY, this marks the specified buffer unmodified and | 157 | At the end of BODY, this marks the specified buffer unmodified and |
| 156 | read-only, and displays it in a window via `display-buffer', passing | 158 | read-only, and displays it in a window (but does not select it, or make |
| 157 | ACTION as the action argument to `display-buffer'. It automatically | 159 | the buffer current). The display happens by calling `display-buffer' |
| 158 | shrinks the relevant window if `temp-buffer-resize-mode' is enabled. | 160 | with the ACTION argument. If `temp-buffer-resize-mode' is enabled, |
| 161 | the relevant window shrinks automatically. | ||
| 159 | 162 | ||
| 160 | Returns the value returned by BODY, unless QUIT-FUNCTION specifies | 163 | This returns the value returned by BODY, unless QUIT-FUNCTION specifies |
| 161 | a function. In that case, runs the function with two arguments - | 164 | a function. In that case, it runs the function with two arguments - |
| 162 | the window showing the specified buffer and the value returned by | 165 | the window showing the specified buffer and the value returned by |
| 163 | BODY - and returns the value returned by that function. | 166 | BODY - and returns the value returned by that function. |
| 164 | 167 | ||
| 165 | If the buffer is displayed on a new frame, the window manager may | 168 | If the buffer is displayed on a new frame, the window manager may |
| 166 | decide to select that frame. In that case, it's usually a good | 169 | decide to select that frame. In that case, it's usually a good |
| 167 | strategy if the function specified by QUIT-FUNCTION selects the | 170 | strategy if QUIT-FUNCTION selects the window showing the buffer |
| 168 | window showing the buffer before reading a value from the | 171 | before reading any value from the minibuffer; for example, when |
| 169 | minibuffer; for example, when asking a `yes-or-no-p' question. | 172 | asking a `yes-or-no-p' question. |
| 170 | 173 | ||
| 171 | This construct is similar to `with-output-to-temp-buffer', but does | 174 | This runs the hook `temp-buffer-window-setup-hook' before BODY, |
| 172 | not put the buffer in help mode, or call `temp-buffer-show-function'. | 175 | with the specified buffer temporarily current. It runs the |
| 173 | It also runs different hooks, namely `temp-buffer-window-setup-hook' | 176 | hook `temp-buffer-window-show-hook' after displaying the buffer, |
| 174 | \(with the specified buffer current) and `temp-buffer-window-show-hook' | 177 | with that buffer temporarily current, and the window that was used to |
| 175 | \(with the specified buffer current and the window showing it selected). | 178 | display it temporarily selected. |
| 176 | 179 | ||
| 177 | Since this macro calls `display-buffer', the window displaying | 180 | This construct is similar to `with-output-to-temp-buffer', but |
| 178 | the buffer is usually not selected and the specified buffer | 181 | runs different hooks. In particular, it does not run |
| 179 | usually not made current. QUIT-FUNCTION can override that." | 182 | `temp-buffer-setup-hook', which usually puts the buffer in Help mode. |
| 183 | Also, it does not call `temp-buffer-show-function' (the ACTION | ||
| 184 | argument 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")) |