diff options
| author | Glenn Morris | 2012-09-28 09:02:31 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-09-28 09:02:31 -0700 |
| commit | e61d39cddfd015032a6419ce75c36ecdf1e9fe9f (patch) | |
| tree | f1f941a206a079e9a7b2813dc2f7479c2ba05495 | |
| parent | 3df749b0f8a97c8b8f18a34bce494fd9d4fe987f (diff) | |
| parent | 147c0425024ce9c1dbb7301300867d8563a6730a (diff) | |
| download | emacs-e61d39cddfd015032a6419ce75c36ecdf1e9fe9f.tar.gz emacs-e61d39cddfd015032a6419ce75c36ecdf1e9fe9f.zip | |
Merge from emacs-24; up to 2012-05-07T21:26:08Z!rgm@gnu.org
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ido.el | 8 | ||||
| -rw-r--r-- | lisp/pcomplete.el | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/eval.c | 45 |
7 files changed, 41 insertions, 32 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 82fb5eb4975..76f06edaacb 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-28 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * files.texi (Files): Fix typo. | ||
| 4 | |||
| 1 | 2012-09-23 Chong Yidong <cyd@gnu.org> | 5 | 2012-09-23 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * buffers.texi (Read Only Buffers): Document read-only-mode. | 7 | * buffers.texi (Read Only Buffers): Document read-only-mode. |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 56971bf0ff0..9424a661236 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -29,7 +29,7 @@ arguments, except where noted. @xref{Magic File Names}, for details. | |||
| 29 | When file I/O functions signal Lisp errors, they usually use the | 29 | When file I/O functions signal Lisp errors, they usually use the |
| 30 | condition @code{file-error} (@pxref{Handling Errors}). The error | 30 | condition @code{file-error} (@pxref{Handling Errors}). The error |
| 31 | message is in most cases obtained from the operating system, according | 31 | message is in most cases obtained from the operating system, according |
| 32 | to locale @code{system-message-locale}, and decoded using coding system | 32 | to locale @code{system-messages-locale}, and decoded using coding system |
| 33 | @code{locale-coding-system} (@pxref{Locales}). | 33 | @code{locale-coding-system} (@pxref{Locales}). |
| 34 | 34 | ||
| 35 | @menu | 35 | @menu |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b25a921219e..4946fe5dd86 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-09-28 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * pcomplete.el (pcomplete-show-completions): Use | ||
| 4 | minibuffer-message to make pcomplete usable in minibuffer. | ||
| 5 | |||
| 6 | * ido.el (ido-set-matches-1): Fix 2012-09-11 change. | ||
| 7 | |||
| 1 | 2012-09-28 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2012-09-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * type-break.el: Use lexical-binding. | 10 | * type-break.el: Use lexical-binding. |
diff --git a/lisp/ido.el b/lisp/ido.el index d48e7ba858b..f511dbbf8ac 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -3701,14 +3701,14 @@ This is to make them appear as if they were \"virtual buffers\"." | |||
| 3701 | (rexq (concat rex0 (if slash ".*/" ""))) | 3701 | (rexq (concat rex0 (if slash ".*/" ""))) |
| 3702 | (re (if ido-enable-prefix (concat "\\`" rexq) rexq)) | 3702 | (re (if ido-enable-prefix (concat "\\`" rexq) rexq)) |
| 3703 | (full-re (and do-full | 3703 | (full-re (and do-full |
| 3704 | (and (eq ido-cur-item 'buffer) | 3704 | (not (and (eq ido-cur-item 'buffer) |
| 3705 | (not ido-buffer-disable-smart-matches)) | 3705 | ido-buffer-disable-smart-matches)) |
| 3706 | (not ido-enable-regexp) | 3706 | (not ido-enable-regexp) |
| 3707 | (not (string-match "\$\\'" rex0)) | 3707 | (not (string-match "\$\\'" rex0)) |
| 3708 | (concat "\\`" rex0 (if slash "/" "") "\\'"))) | 3708 | (concat "\\`" rex0 (if slash "/" "") "\\'"))) |
| 3709 | (suffix-re (and do-full slash | 3709 | (suffix-re (and do-full slash |
| 3710 | (and (eq ido-cur-item 'buffer) | 3710 | (not (and (eq ido-cur-item 'buffer) |
| 3711 | (not ido-buffer-disable-smart-matches)) | 3711 | ido-buffer-disable-smart-matches)) |
| 3712 | (not ido-enable-regexp) | 3712 | (not ido-enable-regexp) |
| 3713 | (not (string-match "\$\\'" rex0)) | 3713 | (not (string-match "\$\\'" rex0)) |
| 3714 | (concat rex0 "/\\'"))) | 3714 | (concat rex0 "/\\'"))) |
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index fc05af8c7f5..9e55976a8bd 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el | |||
| @@ -1089,7 +1089,7 @@ Typing SPC flushes the help buffer." | |||
| 1089 | (setq pcomplete-last-window-config (current-window-configuration))) | 1089 | (setq pcomplete-last-window-config (current-window-configuration))) |
| 1090 | (with-output-to-temp-buffer "*Completions*" | 1090 | (with-output-to-temp-buffer "*Completions*" |
| 1091 | (display-completion-list completions)) | 1091 | (display-completion-list completions)) |
| 1092 | (message "Hit space to flush") | 1092 | (minibuffer-message "Hit space to flush") |
| 1093 | (let (event) | 1093 | (let (event) |
| 1094 | (prog1 | 1094 | (prog1 |
| 1095 | (catch 'done | 1095 | (catch 'done |
diff --git a/src/ChangeLog b/src/ChangeLog index 92ab8080c9d..c30c4ed955b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-28 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * eval.c (Frun_hook_with_args, Frun_hook_with_args_until_success) | ||
| 4 | (Frun_hook_with_args_until_failure): Doc fixes. | ||
| 5 | |||
| 1 | 2012-09-28 Eli Zaretskii <eliz@gnu.org> | 6 | 2012-09-28 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from | 8 | * xdisp.c (syms_of_xdisp) <Qredisplay_internal>: Rename from |
diff --git a/src/eval.c b/src/eval.c index d984331ec41..851b2bb1129 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2351,14 +2351,10 @@ usage: (run-hooks &rest HOOKS) */) | |||
| 2351 | DEFUN ("run-hook-with-args", Frun_hook_with_args, | 2351 | DEFUN ("run-hook-with-args", Frun_hook_with_args, |
| 2352 | Srun_hook_with_args, 1, MANY, 0, | 2352 | Srun_hook_with_args, 1, MANY, 0, |
| 2353 | doc: /* Run HOOK with the specified arguments ARGS. | 2353 | doc: /* Run HOOK with the specified arguments ARGS. |
| 2354 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil | 2354 | HOOK should be a symbol, a hook variable. The value of HOOK |
| 2355 | value, that value may be a function or a list of functions to be | 2355 | may be nil, a function, or a list of functions. Call each |
| 2356 | called to run the hook. If the value is a function, it is called with | 2356 | function in order with arguments ARGS. The final return value |
| 2357 | the given arguments and its return value is returned. If it is a list | 2357 | is unspecified. |
| 2358 | of functions, those functions are called, in order, | ||
| 2359 | with the given arguments ARGS. | ||
| 2360 | It is best not to depend on the value returned by `run-hook-with-args', | ||
| 2361 | as that may change. | ||
| 2362 | 2358 | ||
| 2363 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2359 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2364 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2360 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| @@ -2368,18 +2364,18 @@ usage: (run-hook-with-args HOOK &rest ARGS) */) | |||
| 2368 | return run_hook_with_args (nargs, args, funcall_nil); | 2364 | return run_hook_with_args (nargs, args, funcall_nil); |
| 2369 | } | 2365 | } |
| 2370 | 2366 | ||
| 2367 | /* NB this one still documents a specific non-nil return value. | ||
| 2368 | (As did run-hook-with-args and run-hook-with-args-until-failure | ||
| 2369 | until they were changed in 24.1.) */ | ||
| 2371 | DEFUN ("run-hook-with-args-until-success", Frun_hook_with_args_until_success, | 2370 | DEFUN ("run-hook-with-args-until-success", Frun_hook_with_args_until_success, |
| 2372 | Srun_hook_with_args_until_success, 1, MANY, 0, | 2371 | Srun_hook_with_args_until_success, 1, MANY, 0, |
| 2373 | doc: /* Run HOOK with the specified arguments ARGS. | 2372 | doc: /* Run HOOK with the specified arguments ARGS. |
| 2374 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil | 2373 | HOOK should be a symbol, a hook variable. The value of HOOK |
| 2375 | value, that value may be a function or a list of functions to be | 2374 | may be nil, a function, or a list of functions. Call each |
| 2376 | called to run the hook. If the value is a function, it is called with | 2375 | function in order with arguments ARGS, stopping at the first |
| 2377 | the given arguments and its return value is returned. | 2376 | one that returns non-nil, and return that value. Otherwise (if |
| 2378 | If it is a list of functions, those functions are called, in order, | 2377 | all functions return nil, or if there are no functions to call), |
| 2379 | with the given arguments ARGS, until one of them | 2378 | return nil. |
| 2380 | returns a non-nil value. Then we return that value. | ||
| 2381 | However, if they all return nil, we return nil. | ||
| 2382 | If the value of HOOK is nil, this function returns nil. | ||
| 2383 | 2379 | ||
| 2384 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2380 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2385 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2381 | Instead, use `add-hook' and specify t for the LOCAL argument. |
| @@ -2398,15 +2394,12 @@ funcall_not (ptrdiff_t nargs, Lisp_Object *args) | |||
| 2398 | DEFUN ("run-hook-with-args-until-failure", Frun_hook_with_args_until_failure, | 2394 | DEFUN ("run-hook-with-args-until-failure", Frun_hook_with_args_until_failure, |
| 2399 | Srun_hook_with_args_until_failure, 1, MANY, 0, | 2395 | Srun_hook_with_args_until_failure, 1, MANY, 0, |
| 2400 | doc: /* Run HOOK with the specified arguments ARGS. | 2396 | doc: /* Run HOOK with the specified arguments ARGS. |
| 2401 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil | 2397 | HOOK should be a symbol, a hook variable. The value of HOOK |
| 2402 | value, that value may be a function or a list of functions to be | 2398 | may be nil, a function, or a list of functions. Call each |
| 2403 | called to run the hook. If the value is a function, it is called with | 2399 | function in order with arguments ARGS, stopping at the first |
| 2404 | the given arguments. Then we return nil if the function returns nil, | 2400 | one that returns nil, and return nil. Otherwise (if all functions |
| 2405 | and t if it returns non-nil. | 2401 | return non-nil, or if there are no functions to call), return non-nil |
| 2406 | If it is a list of functions, those functions are called, in order, | 2402 | \(do not rely on the precise return value in this case). |
| 2407 | with the given arguments ARGS, until one of them returns nil. | ||
| 2408 | Then we return nil. However, if they all return non-nil, we return t. | ||
| 2409 | If the value of HOOK is nil, this function returns t. | ||
| 2410 | 2403 | ||
| 2411 | Do not use `make-local-variable' to make a hook variable buffer-local. | 2404 | Do not use `make-local-variable' to make a hook variable buffer-local. |
| 2412 | Instead, use `add-hook' and specify t for the LOCAL argument. | 2405 | Instead, use `add-hook' and specify t for the LOCAL argument. |