summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/eieio-core.el (eieio--class-v): RemoveStefan Monnier2015-07-024-30/+26
| | | | | | * lisp/emacs-lisp/eieio-core.el, lisp/emacs-lisp/eieio.el, lisp/emacs-lisp/eieio-opt.el, lisp/emacs-lisp/eieio-compat.el: Use cl--find-class instead.
* * lisp/emacs-lisp/seq.el (seq-difference): Fix typo in docstringNicolas Richard2015-07-021-1/+1
|
* (cl--copy-slot-descriptor): Copy the `props' alist as wellStefan Monnier2015-07-011-1/+6
| | | | | | * lisp/emacs-lisp/cl-preloaded.el (cl--copy-slot-descriptor-1): Rename from cl--copy-slot-descriptor. (cl--copy-slot-descriptor): New function. Copy the alist (bug#20914).
* Spelling fixesPaul Eggert2015-06-301-1/+1
|
* In strings, prefer plain ` and ' to \` and \'Paul Eggert2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout.el (allout-insert-listified): * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): * lisp/ls-lisp.el (ls-lisp-UCA-like-collation) (ls-lisp-string-lessp): * lisp/menu-bar.el (menu-bar-open): * lisp/obsolete/otodo-mode.el (todo-top-priorities): * lisp/progmodes/compile.el (compile): * lisp/progmodes/etags.el (tags-loop-scan): * lisp/progmodes/make-mode.el (makefile-browser-insert-continuation): * lisp/subr.el (posn-actual-col-row): * lisp/term/pc-win.el (x-list-fonts): * lisp/textmodes/texinfmt.el (texinfmt-version): * lisp/textmodes/texnfo-upd.el (texinfo-master-menu): * lisp/time.el (display-time-world-list): * lisp/tmm.el (tmm-menubar): * src/buffer.c (syms_of_buffer): * src/fileio.c (syms_of_fileio): Omit unnecessary and confusing backslash before quote. * lisp/erc/erc.el (erc-cmd-LASTLOG): * lisp/progmodes/flymake.el (flymake-fix-file-name): * lisp/progmodes/vhdl-mode.el (vhdl-in-extended-identifier-p): Fix string that was intended to escape a backslash and not a quote.
* Improve reproducibility of generated loaddefs file.Glenn Morris2015-06-301-137/+144
| | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Make the return value the modtime of the input file (if no autoloads). (update-directory-autoloads): In the "no autoloads" section, use "most recent modtime" rather than "current time". ; http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00688.html
* * lisp/emacs-lisp/package.el (package--remove-hidden): Fix logicArtur Malabarba2015-06-301-2/+4
| | | | (Bug#20930)
* Add seq-min and seq-maxNicolas Petton2015-06-301-1/+11
| | | | | | | Bump version number. * lisp/emacs-lisp/seq.el (seq-min, seq-max): New functions. * test/automated/seq-tests.el: Add tests for seq-min and seq-max.
* * lisp/emacs-lisp/package.el (package-compute-transaction):Artur Malabarba2015-06-301-11/+15
| | | | Don't assume version sorting.
* * lisp/emacs-lisp/package.el (package--save-selected-packages):Artur Malabarba2015-06-301-5/+7
| | | | | Don't save before init time, to avoid overwriting configurations. (Bug#20855)
* * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):Artur Malabarba2015-06-291-3/+3
| | | | Don't block remember-pos if buffer isn't displayed. (Bug#20921)
* * package.el (describe-package): Use symbol-at-point as additional guessNicolas Richard2015-06-291-1/+2
|
* * package.el (describe-package): Convert the guess to a stringNicolas Richard2015-06-291-1/+2
|
* cl-extra fixes for most-negative-fixnumPaul Eggert2015-06-271-11/+10
| | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-gcd, cl-lcm, cl-random): Don't mishandle an argument equal to most-negative-fixnum, whose absolute value equals itself. (cl-gcd, cl-lcm): Use dolist rather than doing it by hand.
* Initialize cl--gensym-counter to 0Paul Eggert2015-06-272-11/+6
| | | | | | | | | | | | Previously it was initialized to a random value, which made it harder to reproduce earlier Emacs runs. The need for a random value went away when Emacs introduced and used the #: syntax for uninterned symbols (Bug#20862). * doc/misc/cl.texi (Creating Symbols, Common Lisp Compatibility): Document that cl--gensym-counter now starts with 0. * lisp/emacs-lisp/cl-lib.el (cl--gensym-counter): Remove. (cl--random-time): Move to near only remaining use. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Initialize to 0.
* Improve docstring for macroexp-let2Paul Eggert2015-06-271-11/+34
| | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp-let2): Improve as per suggestion by RMS in: http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00621.html Also, rename args to match new doc string.
* Fix indentation for with-output-to-stringLeo Liu2015-06-261-1/+2
| | | | | | | | * lisp/emacs-lisp/cl-indent.el: Fix indentation for `with-output-to-string' in elisp. Revert "lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string" This reverts commit 659199f2ca5f283fb246faa78a244e5ca25f53dd.
* lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-stringOleh Krehel2015-06-251-1/+1
| | | | | | * lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function): `with-output-to-string' should have the same indent as `progn'. This is in line with the declaration of `with-output-to-string'.
* * lisp/emacs-lisp/package.el: Exclude packages by nameArtur Malabarba2015-06-221-4/+44
| | | | | | (package-hidden-regexps): New variable. (package-menu--refresh): Use it. (package-menu-hide-package): New command.
* * lisp/emacs-lisp/package.el: Rename hide-obsolete to toggle-hidingArtur Malabarba2015-06-221-11/+11
|
* Make find-function-on-key use the current windowDmitry Gutov2015-06-221-5/+28
| | | | | | | | * lisp/emacs-lisp/find-func.el (find-function-on-key-do-it): Extract from `find-function-on-key', add a second argument. (find-function-on-key): Use it (bug#19679). (find-function-on-key-other-window) (find-function-on-key-other-frame): New commands.
* Revert "Define `map-elt' as a generalized variable"Nicolas Petton2015-06-211-28/+24
| | | | This reverts commit 8b6d82d3ca86f76ed964063b3941a7c6ab0bf1c6.
* Fix some “nested” quoting confusion in doc stringsPaul Eggert2015-06-211-5/+5
| | | | | | | | | * lisp/emacs-lisp/advice.el (ad-map-arglists): * lisp/kermit.el (kermit-clean-on): * lisp/mh-e/mh-comp.el (mh-repl-group-formfile): * src/keyboard.c (Frecursive_edit): Use curved quotes when quoting text containing apostrophe, so that the apostrophe isn't curved in the output.
* Define `map-elt' as a generalized variableNicolas Petton2015-06-211-24/+28
| | | | | | | | | | | * lisp/emacs-lisp/map.el (map-elt): Define a gv-expander. * lisp/emacs-lisp/map.el (map--dispatch): Tighten the code. * lisp/emacs-lisp/map.el (map-put): Redefine it as a function using a `setf' with `map-elt'. * test/automated/map-tests.el: Comment out `test-map-put-literal'.
* Reuse `alist-get' in map.elNicolas Petton2015-06-211-10/+2
| | | | | * lisp/emacs-lisp/map.el (map-elt): Use `alist-get' to retrieve alist elements.
* ; Auto-commit of loaddefs files.Glenn Morris2015-06-191-1/+1
|
* Improve the optional translation of quotesPaul Eggert2015-06-194-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several problems with the recently-added custom variable help-quote-translation where the code would quote inconsistently in help buffers. Add support for quoting 'like this', which is common in other GNU programs in ASCII environments. Change help-quote-translation to use more mnemonic values: values are now the initial quoting char, e.g., (setq help-quote-translation ?`) gets the traditional Emacs help-buffer quoting style `like this'. Change the default behavior of substitute-command-keys to match what's done in set-locale-environment, i.e., quote ‘like this’ if displayable, 'like this' otherwise. * doc/lispref/help.texi (Keys in Documentation): Document new behavior of substitute-command-keys, and document help-quote-translation. * doc/lispref/tips.texi (Documentation Tips): Mention the effect of help-quote-translation. * etc/NEWS: Mention new behavior of substitute-command-keys, and merge help-quote-translation news into it. When talking about doc strings, mention new ways to type quotes. * lisp/cedet/mode-local.el (overload-docstring-extension): Revert my recent change to this function, which shouldn't be needed as the result is a doc string. * lisp/cedet/mode-local.el (mode-local-print-binding) (mode-local-describe-bindings-2): * lisp/cedet/srecode/srt-mode.el (srecode-macro-help): * lisp/cus-theme.el (describe-theme-1): * lisp/descr-text.el (describe-text-properties-1, describe-char): * 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): Use substitute-command-keys to ensure a more-consistent quoting style in help buffers. * lisp/cus-start.el (standard): Document new help-quote-translation behavior. * lisp/emacs-lisp/lisp-mode.el (lisp-fdefs): * lisp/help-mode.el (help-xref-symbol-regexp, help-xref-info-regexp) (help-xref-url-regexp): * lisp/international/mule-cmds.el (help-xref-mule-regexp-template): * lisp/wid-edit.el (widget-documentation-link-regexp): Also match 'foo', in case we're in a help buffer generated when help-quote-translation is ?'. * src/doc.c: Include disptab.h, for DISP_CHAR_VECTOR. (LEFT_SINGLE_QUOTATION_MARK, uLSQM0, uLSQM1, uLSQM2, uRSQM0) (uRSQM1, uRSQM2, LSQM, RSQM): New constants. (Fsubstitute_command_keys): Document and implement new behavior. (Vhelp_quote_translation): Document new behavior.
* * lisp/emacs-lisp/package.el: Don't always propagate async errorsArtur Malabarba2015-06-181-6/+15
| | | | | | | | | (package--with-work-buffer-async): Only propagate the error if the callback returns non-nil. (package--download-one-archive): Return nil on the signature checking callback if we accept unsigned. (package--download-and-read-archives): Return non-nil on the archive download callback.
* * lisp/emacs-lisp/package.el (package-menu--perform-transaction):Artur Malabarba2015-06-181-13/+11
| | | | Properly delete packages. (Bug#20836)
* * lisp/emacs-lisp/package.el: Slightly better error reporting.Artur Malabarba2015-06-171-6/+6
|
* (define-minor-mode): Use setq-default for :global minor modesStefan Monnier2015-06-171-31/+29
| | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Use setq-default for :global minor modes (bug#20712).
* * lisp/emacs-lisp/package.el (package--with-work-buffer-async):Artur Malabarba2015-06-171-2/+2
| | | | Fix error reporting.
* * lisp/let-alist.el: move to lisp/emacs-lisp/let-alist.elArtur Malabarba2015-06-171-0/+142
|
* * lisp/emacs-lisp/package.el: Revert buffer after any operationArtur Malabarba2015-06-171-8/+25
| | | | | | | | | | | | | | Call `package-menu--post-refresh' after any operation that changes the package database (`package-install' and `package-delete'). To avoid performance issues in large transactions, these functions add `post-refresh' to `post-command-hook' instead of calling it immediately. (package-menu--mark-or-notify-upgrades): New function. (list-packages): Add it to `package--post-download-archives-hook'. (package-menu--post-refresh): Lose the upgrade-checking code, add code to remove itself from `post-command-hook'. (package-install, package-delete): Add it to `post-command-hook'. (package-menu-execute): Don't call `package-menu--post-refresh'.
* * lisp/emacs-lisp/check-declare.el (check-declare-warn):Glenn Morris2015-06-161-4/+2
| | | | Don't print filename twice (it's in the prefix now).
* * lisp/emacs-lisp/pcase.el (pcase--u1): Revert earlier workaround.Glenn Morris2015-06-161-3/+3
| | | | No longer needed.
* Address a compilation warning.Glenn Morris2015-06-161-1/+1
| | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defalias): Replace 't' with '_' in pcase.
* 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.