summaryrefslogtreecommitdiff
path: root/lisp/subr.el
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes.Paul Eggert2011-11-221-1/+1
|
* Add a coding cookie to subr.el.Eli Zaretskii2011-11-191-1/+1
|
* eval-after-load fix for bug#10009Glenn Morris2011-11-101-22/+21
| | | | | * lisp/subr.el (eval-after-load): If FILE is already loaded, evaluate FORM before it gets wrapped in more stuff.
* * lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not aAndreas Schwab2011-10-311-0/+1
| | | | menu-item.
* * lisp/subr.el (y-or-n-p): Add code for batch mode.Chong Yidong2011-10-291-6/+20
| | | | Fixes: debbugs:9818
* Replace fundamental-mode-hook with change-major-mode-after-body-hook.Chong Yidong2011-10-271-1/+4
| | | | | | | | | | | | * lisp/simple.el (fundamental-mode): * lisp/emacs-lisp/derived.el (define-derived-mode): Revert 2010-04-28 change introducing fundamental-mode-hook. * lisp/subr.el (change-major-mode-after-body-hook): New hook. (run-mode-hooks): Run it. * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use change-major-mode-before-body-hook.
* Document with-wrapper-hook.Chong Yidong2011-10-261-16/+24
| | | | | | * doc/emacs/modes.texi (Running Hooks): Document with-wrapper-hook. * lisp/subr.el (with-wrapper-hook): Rewrite doc.
* * subr.el (apply-partially): Remove redundant comment.Stefan Monnier2011-10-231-2/+0
|
* (define-key-after): Clarify that the function is not useful for non-menu ↵Lars Magne Ingebrigtsen2011-10-061-1/+2
| | | | keymaps.
* Fix argument to buffer-live-p in read-char-choiceLeo Liu2011-10-051-1/+1
|
* Fix typos.Juanma Barranquero2011-09-281-1/+1
|
* * lisp/subr.el (with-wrapper-hook): Fix edebug spec.Stefan Monnier2011-09-231-1/+1
|
* (process-kill-buffer-query-function): Mention the buffer name in the query.Lars Magne Ingebrigtsen2011-09-111-1/+3
|
* * subr.el (eval-after-load): Doc string clarificationLars Magne Ingebrigtsen2011-09-111-1/+1
| | | | Fixes: debbugs:9125
* Doc string clarification.Lars Magne Ingebrigtsen2011-09-111-2/+6
| | | | | | | * subr.el (match-string): Mention that the current buffer should be the same as the search was done in. Fixes: debbugs:9282
* * lisp/subr.el (y-or-n-p): Capitalize "yes".Juri Linkov2011-09-051-1/+1
|
* * lisp/subr.el (event-modifiers): Fix "missing modifier" part of docstring.Stefan Monnier2011-08-301-2/+2
| | | | Fixes: debbugs:9356
* Add L and R categories to standard category table, and use them.Chong Yidong2011-08-181-19/+12
| | | | | | | | | * lisp/international/characters.el: Add L and R categories. * lisp/subr.el (bidi-string-mark-left-to-right): Rename from string-mark-left-to-right. Use category search. * lisp/buff-menu.el (Buffer-menu-buffer+size): Callers changed.
* Fix behavior of string-mark-left-to-right.Chong Yidong2011-08-121-10/+21
| | | | | * lisp/subr.el (string-mark-left-to-right): Search the entire string for RTL script, not just the terminating character. Doc fix.
* New function `string-mark-left-to-right' for handling LRMs.Chong Yidong2011-08-101-0/+14
| | | | | | | | | | | | * lisp/subr.el (string-mark-left-to-right): New function. * lisp/buff-menu.el (Buffer-menu-buffer+size): Remove LRM argument. Use string-mark-left-to-right. (list-buffers-noselect): Caller changed. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Use string-mark-left-to-right. (tabulated-list-print): Recenter after moving point.
* * src/keymap.c (Fmake_composed_keymap): Move to subr.el.Stefan Monnier2011-08-031-0/+14
| | | | | | * lisp/subr.el (make-composed-keymap): Move from C. Change calling convention, and improve docstring to bring attention to a subtle point. * lisp/minibuffer.el (completing-read-default): Adjust accordingly.
* * lisp/subr.el (read-char-choice): Respect help-form. (Bug#9001)Glenn Morris2011-07-151-17/+26
|
* * lisp/subr.el (read-char-choice): Allow quitting. (Bug#9001)Glenn Morris2011-07-151-1/+3
|
* lisp/subr.el (version-*): Doc fix.Eli Zaretskii2011-07-141-3/+6
| | | | | lisp/subr.el (version<, version<=, version=): Mention "-CVS" and "-12345" alpha version numbers.
* Doc fix for with-silent-modificationsLars Magne Ingebrigtsen2011-07-141-2/+9
| | | | | | | * subr.el (with-silent-modifications): Clarify somewhat what the macro inhibits. Fixes: debbugs:6525
* Clarify manual and `add-hook' doc string about buffer-local hooksLars Magne Ingebrigtsen2011-07-131-4/+4
|
* Remove `remove-duplicates', since `delete-dups' is sufficient.Lars Magne Ingebrigtsen2011-07-121-10/+1
|
* Add a new, simple definition of `remove-duplicates'Lars Magne Ingebrigtsen2011-07-111-1/+10
|
* * lisp/subr.el (remq): Handle the empty list. (Bug#9024)Glenn Morris2011-07-081-1/+1
|
* Add multiple inheritance to keymaps.Stefan Monnier2011-07-021-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/keymap.c (Fmake_composed_keymap): New function. (Fset_keymap_parent): Simplify. (fix_submap_inheritance): Remove. (access_keymap_1): New function extracted from access_keymap to handle embedded parents and handle lists of maps. (access_keymap): Use it. (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap) (Fcopy_keymap): Handle embedded parents. (Fcommand_remapping, define_as_prefix): Simplify. (Fkey_binding): Simplify. (syms_of_keymap): Move minibuffer-local-completion-map, minibuffer-local-filename-completion-map, minibuffer-local-must-match-map, and minibuffer-local-filename-must-match-map to Elisp. (syms_of_keymap): Defsubr make-composed-keymap. * src/keyboard.c (menu_bar_items): Use map_keymap_canonical. (parse_menu_item): Trivial simplification. * lisp/subr.el (remq): Don't allocate if it's not needed. (keymap--menu-item-binding, keymap--menu-item-with-binding) (keymap--merge-bindings): New functions. (keymap-canonicalize): Use them to refine the canonicalization. * lisp/minibuffer.el (minibuffer-local-completion-map) (minibuffer-local-must-match-map): Move initialization from C. (minibuffer-local-filename-completion-map): Move initialization from C; don't inherit from anything here. (minibuffer-local-filename-must-match-map): Make obsolete. (completing-read-default): Use make-composed-keymap to combine minibuffer-local-filename-completion-map with either minibuffer-local-must-match-map or minibuffer-local-filename-completion-map.
* New primitive secure-hash supporting md5, sha-1 and sha-2Leo Liu2011-06-211-0/+8
|
* Renamed `process-alive-p' to `process-live-p' for consistency with other ↵Lars Magne Ingebrigtsen2011-06-151-1/+1
| | | | `-live-p' functions.
* * lisp/subr.el (make-progress-reporter): Add "..." by default.Stefan Monnier2011-06-021-0/+2
| | | | Fixes: debbugs:8785
* Miscellaneous tweaks.Stefan Monnier2011-06-011-0/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for lexical scoping as in subr.el's dolist and dotimes. * lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf): Silence compiler warning. * lisp/thingatpt.el (forward-whitespace): Trivial coding style fix. * lisp/subr.el (with-output-to-temp-buffer): Provide an edebug spec. * lisp/international/ccl.el (ccl-compile): Trivial simplification. * lisp/help-fns.el (help-do-arg-highlight): Silence compiler warning. * lisp/emacs-lisp/testcover.el (testcover-end): Remove spurious `printflag' argument. * lisp/emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable): Purecopy the whole obsolescence data.
* Add the tiny convenience function `process-alive-p'.Lars Magne Ingebrigtsen2011-05-311-0/+7
|
* * lisp/subr.el (def-edebug-spec): Doc fix (Bug#8430).Kevin Ryde2011-05-281-1/+1
|
* Add delayed warnings support.Juanma Barranquero2011-04-281-1/+14
| | | | | | | | | | | | | * etc/NEWS: Document `delayed-warnings-list' and `delayed-warnings-hook'. * lisp/subr.el (display-delayed-warnings): New function. (delayed-warnings-hook): New variable. * src/keyboard.c (Qdelayed_warnings_hook): Define. (command_loop_1): Run `delayed-warnings-hook' if Vdelayed_warnings_list is non-nil. (syms_of_keyboard) <delayed-warnings-hook>: DEFSYM it. (syms_of_keyboard) <delayed-warnings-list>: DEFVAR_LISP it.
* * subr.el (shell-quote-argument): Use alternate escaping strategyDaniel Colascione2011-04-271-1/+1
| | | | when we spot a variable reference in a string.
* Improve Windows quoting robustnessDaniel Colascione2011-04-261-17/+53
|
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-4/+4
|
* Merge open-protocol-stream into open-network-stream.Chong Yidong2011-04-021-22/+0
| | | | | | | | | | | | | | | | | | | | * lisp/subr.el (open-network-stream): Move to net/network-stream.el. * lisp/gnus/proto-stream.el: Move to net/network-stream.el. * lisp/net/network-stream.el: Move from gnus/proto-stream.el. Change prefix to network-stream throughout. (open-protocol-stream): Merge into open-network-stream, leaving open-protocol-stream as an alias. Handle nil BUFFER args. * lisp/gnus/nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command parameter to open-protocol-stream. * lisp/emacs-lisp/package.el (package--with-work-buffer): Recognize https URLs. * lisp/url/url-gw.el (url-open-stream): Use new open-network-stream functionality to perform encryption.
* Merge from trunkStefan Monnier2011-03-311-0/+2
|\
| * * subr.el (deferred-action-list, deferred-action-function): Mark obsolete.Stefan Monnier2011-03-211-0/+2
| |
* | * lisp/subr.el (apply-partially): Use a non-nil static environment.Stefan Monnier2011-03-301-22/+43
| | | | | | | | | | | | | | | | (--dolist-tail--, --dotimes-limit--): Don't declare dynamically bound. (dolist): Use a more efficient form for lexical-binding. (dotimes): Use a cleaner semantics for lexical-binding. * lisp/emacs-lisp/edebug.el (edebug-eval-top-level-form): Use eval-sexp-add-defvars.
* | * lisp/subr.el (with-output-to-temp-buffer): Don't change current-buffer toStefan Monnier2011-03-291-16/+17
| | | | | | | | | | | | | | standard-output while running the body. * lisp/Makefile.in (COMPILE_FIRST): Remove pcase; it's not so important. * lisp/startup.el: Fix up warnings, move lambda expressions outside of quote.
* | Merge from trunkStefan Monnier2011-03-211-18/+18
|\ \ | |/
| * * lisp/subr.el (read-char-choice): Only show the cursor after the prompt,Stefan Monnier2011-03-141-18/+18
| | | | | | | | not after the answer.
| * undo 2011-02-01T18:15:18Z!sds@gnu.org (purecopy-cons, purecopy-car) at ↵Sam Steingold2011-02-011-7/+0
| | | | | | | | Stefan Monnier's request
| * fix docstrings of `purecopy-cons' & `purecopy-car' per Chong Yidong's requestSam Steingold2011-02-011-2/+2
| |
| * * lisp/subr.el (purecopy-cons, purecopy-car): Add shortcuts.Sam Steingold2011-02-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/faces.el (face-x-resources): Use `purecopy-cons'. * lisp/files.el (auto-mode-alist, interpreter-mode-alist): Use `purecopy-car'. * lisp/international/fontset.el (font-encoding-alist): Ditto. * lisp/international/mule-conf.el (file-coding-system-alist): Ditto. * lisp/international/mule.el (auto-coding-alist) (auto-coding-regexp-alist): Ditto. * lisp/mouse.el (mouse-buffer-menu-mode-groups): Use `purecopy-cons'. * lisp/term/x-win.el (x-gtk-stock-map): Ditto.