summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Address some compilation warnings.Glenn Morris2015-06-164-4/+4
| | | | | | | | | | | | | * lisp/face-remap.el (text-scale-adjust): * lisp/menu-bar.el (popup-menu-normalize-position): * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn): * lisp/emacs-lisp/generator.el (cps--transform-1): * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): * lisp/obsolete/vc-arch.el (vc-arch-mode-line-string): * lisp/progmodes/octave.el (octave-goto-function-definition) (octave-find-definition-default-filename): Replace 't' with '_' in pcase.
* * lisp/emacs-lisp/pcase.el (pcase--u1):Glenn Morris2015-06-161-3/+3
| | | | Paper-over today's bootstrap failure.
* * lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase.Nicolas Petton2015-06-161-4/+4
|
* * lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning.Nicolas Petton2015-06-161-2/+2
|
* * lisp/emacs-lisp/pcase.el: Improve docs and error handlingStefan Monnier2015-06-161-9/+16
| | | | | | | | | | (pcase--self-quoting-p): Floats aren't self-quoting. (pcase): Tweak docstring. (pcase--u1): Deprecate the t pattern. Improve error detection for the nil pattern. (\`): Tweak docstring. Signal an error for unrecognized cases. (bug#20784)
* ; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):Glenn Morris2015-06-151-1/+2
| | | | Fix recent change.
* Fix quoting when making derived mode docstringPaul Eggert2015-06-151-3/+4
| | | | | | | * lisp/emacs-lisp/derived.el (derived-mode-make-docstring): Nest regexp-quote inside format, not the reverse. Problem reported by Artur Malabarba in: http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00206.html
* * lisp/emacs-lisp/map.el (map-let): Better docstring.Nicolas Petton2015-06-151-3/+6
|
* * lisp/emacs-lisp/package.el (package--with-work-buffer-async):Artur Malabarba2015-06-141-18/+25
| | | | Catch errors that happen before going async. (Bug#20809)
* * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):Artur Malabarba2015-06-141-1/+1
| | | | | Don't assume that `tabulated-list-printer' will leave point at the end of the buffer. (Bug#20810)
* Ensure early startup warnings are visible at the end. (Bug#20792)Glenn Morris2015-06-121-81/+85
| | | | | | | | | * lisp/emacs-lisp/warnings.el (display-warning): If startup isn't complete, delay the warning. * lisp/startup.el (normal-top-level, command-line): Let display-warning automatically handle the needed delays. Run delayed-warnings-hook.
* Fix quoting of help for functions with odd namesPaul Eggert2015-06-112-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While investigating Bug#20759, I discovered other quoting problems: C-h f mishandled characters like backslash and quote in function names. This fix changes the behavior so that 'C-h f pcase RET' now generates "... (\` QPAT) ..." instead of "... (` QPAT) ...", because '(format "%S" '(` FOO))' returns "(\\` FOO)". A comment in src/lread.c's read1 function says that the backslash will be needed starting in Emacs 25, which implies that 'format' is correct and the old pcase documention was wrong to omit the backslash. * lisp/emacs-lisp/nadvice.el (advice--make-docstring): * lisp/help-fns.el (help-fns--signature): * lisp/help.el (help-add-fundoc-usage): * lisp/progmodes/elisp-mode.el (elisp-function-argstring): Use help--make-usage-docstring rather than formatting help-make-usage. * lisp/emacs-lisp/pcase.el (pcase--make-docstring): Return raw docstring. * lisp/help-fns.el (help-fns--signature): New arg RAW, to return raw docstring. Take more care to distinguish raw from cooked dstrings. (describe-function-1): Let help-fns--signature substitute command keys. * lisp/help.el (help--docstring-quote): New function. (help-split-fundoc): Use it, to quote funny characters more systematically. (help--make-usage): Rename from help-make-usage, since this should be private. Leave an obsolete alias for the old name. (help--make-usage-docstring): New function. * test/automated/help-fns.el (help-fns-test-funny-names): New test.
* * lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):Glenn Morris2015-06-101-1/+1
| | | | | Move requiring of finder from here... (checkdoc-package-keywords): ... to here.
* * lisp/emacs-lisp/checkdoc.el: Use lexical-bindingStefan Monnier2015-06-101-1/+3
| | | | (finder-known-keywords): Silence byte-compiler.
* Add new command checkdoc-package-keywordsOleh Krehel2015-06-081-0/+39
| | | | | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): New defcustom. (checkdoc-list-of-strings-p): Add doc. (checkdoc-current-buffer): When `checkdoc-package-keywords-flag' is non-nil, call `checkdoc-package-keywords'. (checkdoc-get-keywords): New defun. (checkdoc-package-keywords): New command. Warns if the current file has package.el-style keywords that aren't in `finder-known-keywords'. * etc/NEWS: Add entry.
* * lisp/emacs-lisp/package.el (package-delete): Make interactiveArtur Malabarba2015-06-081-2/+21
|
* checkdoc.el (checkdoc-file): New functionOleh Krehel2015-06-081-10/+17
| | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-error): When `checkdoc-diagnostic-buffer' is set to "*warn*", print the warning to the standard output. (bug#20754)
* * lisp/emacs-lisp/map.el (map-let): Better docstring.Nicolas Petton2015-06-061-8/+13
|
* Better syntax for the map pcase patternNicolas Petton2015-06-061-1/+1
| | | | | * lisp/emacs-lisp/map.el: Improves the map pcase pattern to take bindings of the form (KEY PAT) or SYMBOL. KEY is not quoted.
* * lisp/emacs-lisp/map.el (map--dispatch): Better docstring.Nicolas Petton2015-06-061-2/+2
|
* ; * lisp/emacs-lisp/map.el: Fix formatting.Nicolas Petton2015-06-061-7/+7
|
* Fix a byte-compiler error in map-put and map-deleteNicolas Petton2015-06-061-10/+16
| | | | | * lisp/emacs-lisp/map.el (map-put, map-delete): Ensure that `setq' is called with a symbol.
* * lisp/emacs-lisp/map.el (map--dispatch): Move before use.Glenn Morris2015-06-051-32/+32
| | | | (map--delete-array): Fix typo.
* Fix curved quotes in a few placesPaul Eggert2015-06-041-1/+2
| | | | | | | | | | | * lisp/calc/calc-misc.el (calc-help): Fix quoting. The strings in question are not doc strings, so this partially undoes the recent change that assumed they were doc strings. * lisp/cedet/srecode/srt-mode.el (srecode-macro-help): * lisp/info.el (Info-finder-find-node): Use curved quotes. * lisp/emacs-lisp/derived.el (derived-mode-make-docstring): Also allow curved quotes in doc strings.
* Handle new-style advice in find-functDmitry Gutov2015-06-051-8/+11
| | | | | | | * lisp/emacs-lisp/find-func.el (find-function-advised-original): Handle new-style advice. Return the symbol's function definition. (Bug#20718) (find-function-library): Update accordingly.
* Merge branch 'map'Nicolas Petton2015-06-041-0/+371
|\
| * * lisp/emacs-lisp/map.el: Better docstring for the map pcase macro.Nicolas Petton2015-06-041-1/+2
| |
| * Add a pcase pattern for maps and `map-let' based on itNicolas Petton2015-06-021-0/+35
| | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-let): New macro. (map--make-pcase-bindings, map--make-pcase-patterns): New functions. * test/automated/map-tests.el: New test for `map-let'.
| * Improve the docstring of functions in map.elNicolas Petton2015-05-161-19/+58
| | | | | | | | | | | | | | | | Since a map is not a data structure but a concept, adding information about the possible types of maps can be useful information. * lisp/emacs-lisp/map.el: Add documentation about the type of MAP to each public function.
| * Faster implementation of map-empty-pNicolas Petton2015-04-291-1/+5
| | | | | | | | | | * lisp/emacs-lisp/map.el (map-empty-p): Faster implementation using specific tests depending on the type of the map.
| * * lisp/emacs-lisp/map.el: Better docstrings.Nicolas Petton2015-04-291-9/+6
| |
| * * lisp/emacs-lisp/map.el (map-pairs): Dump redundant lambdaArtur Malabarba2015-04-251-3/+1
| |
| * * lisp/emacs-lisp/map.el (map--elt-list): Better docstring.Nicolas Petton2015-04-251-1/+1
| |
| * * lisp/emacs-lisp/map.el (map--elt-list): Minor refactoring.Nicolas Petton2015-04-251-1/+1
| |
| * Fix a false negative in `map-elt' with alists and values being nilNicolas Petton2015-04-251-2/+11
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): If map is an alist and key is found but its associated value is nil, do not return the default value. * test/automated/map-tests.el: Add a regression test.
| * * lisp/emacs-lisp/map.el (map--dispatch): Improve the docstring.Nicolas Petton2015-04-241-1/+1
| |
| * Do not signal an error when trying to delete a key from an arrayNicolas Petton2015-04-241-2/+9
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-delete): When map is an array, check if the key is present to avoid signaling an error. * test/automated/map-tests.el: Add a test for deleting non-existing keys from maps.
| * * lisp/emacs-lisp/map.el: Better docstring.Nicolas Petton2015-04-241-1/+2
| |
| * Minor improvement in map-elt.Nicolas Petton2015-04-241-2/+11
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Do not use `ignore-errors' when doing a lookup in arrays, but check the boundaries of the array instead. * test/automated/map-tests.el: Adds a test for `map-elt' with arrays and a negative integer as key.
| * * lisp/emacs-lisp/map.el (map-into): Better error message.Nicolas Petton2015-04-181-1/+1
| |
| * * lisp/emacs-lisp/map.el: Removes byte-compilation warnings.Nicolas Petton2015-04-181-4/+4
| |
| * Throw an error when converting a map into an unknown map typeNicolas Petton2015-04-181-1/+2
| | | | | | | | | | * lisp/emacs-lisp/map.el (map-into): Throw an error if type is not valid. * test/automated/map-test.el: Add a regression test.
| * New library map.el similar to seq.el but for mapping data structures.Nicolas Petton2015-04-181-0/+270
| | | | | | | | | | * test/automated/map-test.el: New file. * lisp/emacs-lisp/map.el: New file.
* | Generate curved quotes in ert docPaul Eggert2015-06-021-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert--print-test-for-ewoc) (ert-results-mode-menu) (ert-results-pop-to-backtrace-for-test-at-point) (ert-results-pop-to-messages-for-test-at-point) (ert-results-pop-to-should-forms-for-test-at-point) (ert-describe-test): Quote ‘like this’, not `like this', when generating doc strings and the like. * test/automated/ert-x-tests.el (ert-test-describe-test): Allow quoting ‘like this’.
* | * lisp/emacs-lisp/package.el: Don't load from parent dirArtur Malabarba2015-05-291-3/+4
| | | | | | | | | | (package-load-all-descriptors): Don't load descriptors from directories above the package directories.
* | ; Auto-commit of loaddefs files.Glenn Morris2015-05-281-1/+1
| |
* | A few more doc string fixes (Bug#20385)Paul Eggert2015-05-282-5/+5
| |
* | Fix minor quoting problems in doc stringsPaul Eggert2015-05-281-1/+1
| | | | | | | | | | | | Most of these fixes involve escaping grave accents that are actually intended to be grave accents, not left quotes. (Bug#20385)
* | Support curved quotes in doc stringsPaul Eggert2015-05-285-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs's traditional doc string style has been to quote symbols `like this'. This worked well on now-obsolete terminals where ` and ' were symmetric quotes, but nowadays curved quotes ‘like this’ look better. Support quoting the new way too. (Bug#20385) * doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted ‘like-this’ as well as `like-this'. * etc/NEWS: Mention this. * lisp/cedet/mode-local.el (overload-docstring-extension) (mode-local-print-binding, mode-local-describe-bindings-2): * lisp/cus-theme.el (describe-theme-1): * lisp/descr-text.el (describe-text-properties-1, describe-char): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * lisp/emacs-lisp/cl-generic.el (cl--generic-describe): * lisp/emacs-lisp/eieio-opt.el (eieio-help-class) (eieio-help-constructor): * lisp/emacs-lisp/package.el (describe-package-1): * lisp/faces.el (describe-face): * lisp/help-fns.el (help-fns--key-bindings) (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete): (help-fns--interactive-only, describe-function-1): (describe-variable): * lisp/help.el (describe-mode): * lisp/international/mule-cmds.el (describe-input-method) (describe-language-environment): * lisp/international/mule-diag.el (describe-character-set) (print-coding-system-briefly, list-input-methods) (list-input-methods-1): Insert curved quotes rather than grave accent and apostrophe. * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine) (checkdoc-proper-noun-region-engine): * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2) (lisp-cl-font-lock-keywords-2): * lisp/finder.el (finder-font-lock-keywords): * lisp/gnus/gnus-art.el (gnus-button-alist): * lisp/help-fns.el (help-do-arg-highlight) (describe-function-1, describe-variable): * lisp/help-mode.el (help-xref-symbol-regexp) (help-xref-info-regexp, help-xref-url-regexp): * lisp/help.el (describe-mode): * lisp/international/mule-cmds.el (help-xref-mule-regexp-template): * lisp/wid-edit.el (widget-documentation-link-regexp): Parse symbols quoted ‘like-this’ as well as `like-this'. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add "‘" and "’" to electric-pair-text-pairs. (elisp--form-quoted-p): Also allow "‘" as a quoting char. (elisp-completion-at-point, elisp--preceding-sexp): Also treat "‘" and "’" as quoting chars.
* | * lisp/emacs-lisp/package.el: Don't erase tags on refreshArtur Malabarba2015-05-271-11/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | (package-menu--post-refresh): Call `tabulated-list-print' with the UPDATE argument. This only affects the refresh action, the revert action still erases tags. (package-menu-get-status): Change `assq' to `assoc'. (package-menu--mark-upgrades-1): New function. (package-menu--mark-upgrades-pending): New variable. (package-menu-mark-upgrades): Use them to delay marking until after refresh is done. (package-menu--post-refresh): Call mark-upgrades-1 if mark-upgrades-pending is non-nil.