summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Clarify what counts as whitespace in `string-blank-p'Mattias Engdegård2019-09-011-1/+3
| | | | * lisp/emacs-lisp/subr-x.el (string-blank-p): Expand doc string.
* package.el: Allow Package-Requires to span multiple lines (Bug#36301)Thomas Fitzsimmons2019-08-311-5/+5
| | | | | | | | | | * lisp/emacs-lisp/package.el (lm-header-multiline): Declare function. (package-buffer-info): Parse Package-Requires with lm-header-multiline instead of lm-header. (Bug#36301) Co-authored-by: Noam Postavsky <npostavs@gmail.com>
* Fix completion in `read-library-name'Lars Ingebrigtsen2019-08-271-4/+13
| | | | | * lisp/emacs-lisp/find-func.el (read-library-name): Only list .el/.el.gz files when completing (bug#36945).
* ; * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Doc fix.Eli Zaretskii2019-08-231-3/+3
|
* Clarify doc string of cl-pushnewLars Ingebrigtsen2019-08-231-3/+6
| | | | | * lisp/emacs-lisp/cl-lib.el (cl-pushnew): Clarify doc string (bug#37016).
* Fix minor checkdoc errors in package.elStefan Kangas2019-08-221-3/+3
| | | | | * lisp/emacs-lisp/package.el (package-all-keywords) (package-menu--generate, package-archive-priority): Doc fixes.
* Signal user-error on duplicate package refreshStefan Kangas2019-08-221-3/+6
| | | | | | * lisp/emacs-lisp/package.el (package-menu-refresh): Signal a user-error if there is already a refresh running in the background. Doc fix. (Bug#36707)
* Respect global-eldoc-mode in minibuffers (Bug#36886)Noam Postavsky2019-08-202-17/+40
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Accept a BODY parameter. * doc/lispref/modes.texi (Defining Minor Modes): Document new parameter. * etc/NEWS: Announce it. * lisp/simple.el (read--expression): Move eldoc-mode setup to... * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): ... here, new function. (global-eldoc-mode): Add or remove it to eval-expression-minibuffer-setup-hook when enabling or disabling global-eldoc-mode. This enables eldoc in the minibuffer (solving Bug#27202), only when global-eldoc-mode is enabled.
* Merge from origin/emacs-26Glenn Morris2019-08-201-5/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b810eb Fix a typo in char-width-table 3f00db7 Minor update in admin/notes/unicode bcd0115 Fix lisp indent infloop on unfinished strings (Bug#37045) 5f992d1 Improve commentary in composite.el 3a04be2 ; Improve commentary in xdisp.c 15de1d1 Fix markup in dired-x.texi bda7fc7 ; Fix typo in a doc string of speedbar.el 6f57ef9 * src/callproc.c (Fcall_process): Doc fix. # Conflicts: # doc/misc/dired-x.texi # lisp/international/characters.el # src/callproc.c
| * Fix lisp indent infloop on unfinished strings (Bug#37045)Noam Postavsky2019-08-171-5/+10
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-indent-calc-next): Stop trying to skip over strings if we've hit the end of buffer. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-unfinished-string): New test.
* | Make checkdoc check cl-lib function docstringsAlex Branham2019-08-161-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Remove calls to delete-region to avoid deleting final " (bug#26328). * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring) (checkdoc-defun-info): Include cl-defun, cl-defgeneric, cl-defmethod. (checkdoc-this-string-valid-engine): Add cl-lib supported keywords. (checkdoc-defun-info): Ensure function parameters are a "flat" list (bug#37034).
* | Avoid deleting closing quotation mark in checkdocAlex Branham2019-08-161-10/+5
| | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Remove calls to delete-region to avoid deleting final " (bug#26328).
* | Revert "package.el: Allow Package-Requires to span multiple lines (Bug#36301)"Thomas Fitzsimmons2019-08-161-3/+1
| | | | | | | | | | | | This reverts commit 19c1e4c81c7442dea48253e5961b6e54d78b6f0a. This commit broke some package tests, reverting for now.
* | package.el: Allow Package-Requires to span multiple lines (Bug#36301)Thomas Fitzsimmons2019-08-161-1/+3
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (lm-header-multiline): Declare function. (package-buffer-info): Parse Package-Requires with lm-header-multiline instead of lm-header. (Bug#36301)
* | Rename variables and functions with "auto-load" in their namesLars Ingebrigtsen2019-08-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/building.texi (Lisp Libraries): Adjust documentation. * lisp/help-fns.el (help--symbol-completion-table): Adjust usage. * lisp/help-fns.el (help-enable-completion-autoload): Change name from auto-load and declare an obsolete alias (bug#13418). * lisp/help.el (help-enable-autoload): Ditto. * lisp/progmodes/vhdl-mode.el: Ditto. (vhdl-create-mode-menu, vhdl-mode): Adjust usage. (vhdl-autoload-project): Rename from auto-load and declare an obsolete alias.
* | Output the maintainer and author(s) in the package description bufferLars Ingebrigtsen2019-08-141-1/+31
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (describe-package-1): Output maintainer and author(s) (bug#17573). (package--print-email-button): New function.
* | Support bool-vectors in cl-extra.elPhilippe Schnoebelen2019-08-101-0/+2
| | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-coerce): Support bool-vector. Copyright-paperwork-exempt: yes
* | Move cl.el to lisp/obsoleteStefan Monnier2019-08-061-703/+0
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl.el: Move from here... * lisp/obsolete/cl.el: ...to here. * lisp/subr.el (do-after-load-evaluation): Use "deprecated" in the message when loading packages from lisp/obsolete.
* | New function time-convertPaul Eggert2019-08-054-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the awkward reuse of encode-time to both convert calendrical timestamps to Lisp timestamps, and to convert Lisp timestamps to other forms. Now, encode-time does just the former and the new function does just the latter. The new function builds on a suggestion by Lars Ingebrigtsen in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00801.html and refined by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00803.html * doc/lispref/os.texi (Time of Day, Time Conversion): * doc/misc/emacs-mime.texi (time-date): * etc/NEWS: Update documentation. * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition): * lisp/calendar/time-date.el (seconds-to-time, days-to-time): * lisp/calendar/timeclock.el (timeclock-seconds-to-time): * lisp/cedet/ede/detect.el (ede-detect-qtest): * lisp/completion.el (cmpl-hours-since-origin): * lisp/ecomplete.el (ecomplete-add-item): * lisp/emacs-lisp/cl-extra.el (cl--random-time): * lisp/emacs-lisp/timer.el (timer--time-setter) (timer-next-integral-multiple-of-time): * lisp/find-lisp.el (find-lisp-format-time): * lisp/gnus/gnus-diary.el (gnus-user-format-function-d): * lisp/gnus/gnus-group.el (gnus-group-set-timestamp): * lisp/gnus/gnus-icalendar.el (gnus-icalendar-show-org-agenda): * lisp/gnus/nnrss.el (nnrss-normalize-date): * lisp/gnus/nnspool.el (nnspool-request-newgroups): * lisp/net/ntlm.el (ntlm-compute-timestamp): * lisp/net/pop3.el (pop3-uidl-dele): * lisp/obsolete/vc-arch.el (vc-arch-add-tagline): * lisp/org/org-clock.el (org-clock-get-clocked-time) (org-clock-resolve, org-resolve-clocks, org-clock-in) (org-clock-out, org-clock-sum): * lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36): * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src): * lisp/proced.el (proced-format-time): * lisp/progmodes/cc-cmds.el (c-progress-init) (c-progress-update): * lisp/progmodes/cperl-mode.el (cperl-time-fontification): * lisp/progmodes/flymake.el (flymake--schedule-timer-maybe): * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info) (vhdl-fix-case-region-1): * lisp/tar-mode.el (tar-octal-time): * lisp/time.el (emacs-uptime): * lisp/url/url-auth.el (url-digest-auth-make-cnonce): * lisp/url/url-util.el (url-lazy-message): * lisp/vc/vc-cvs.el (vc-cvs-parse-entry): * lisp/vc/vc-hg.el (vc-hg-state-fast): * lisp/xt-mouse.el (xterm-mouse-event): * test/lisp/emacs-lisp/timer-tests.el: (timer-next-integral-multiple-of-time-2): Use time-convert, not encode-time. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): Don’t use now-removed FORM argument for encode-time. It wasn’t crucial anyway. * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add time-convert. * lisp/emacs-lisp/elint.el (elint-unknown-builtin-args): Update encode-time signature to match current arg set. * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time): Use timer-convert with t rather than doing it by hand. * src/timefns.c (time_hz_ticks, time_form_stamp, lisp_time_form_stamp): Remove; no longer needed. (decode_lisp_time): Rturn the form instead of having a *PFORM arg. All uses changed. (time_arith): Just return TICKS if HZ is 1. (Fencode_time): Remove argument FORM. All callers changed. Do not attempt to encode time values; just encode decoded (calendrical) times. Unless CURRENT_TIME_LIST, just return VALUE since HZ is 1. (Ftime_convert): New function, which does the time value conversion that bleeding-edge encode-time formerly did. Return TIME if it is easy to see that it is already of the correct form. (Fcurrent_time): Mention in doc that the form is planned to change. * test/src/timefns-tests.el (decode-then-encode-time): Don’t use (encode-time nil).
* | Clarify macroexp-let* doc stringMichael Heerdegen2019-08-041-1/+4
| | | | | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp-let2*): Clarify doc string (bug#19371).
* | easy-menu-define doc string fixKevin Ryde2019-08-031-0/+11
| | | | | | | | | | * emacs-lisp/easymenu.el (easy-menu-define): Docstring :label and :help of the menu itself.
* | Tweak tq queue processingAndreas Politz2019-08-031-8/+11
| | | | | | | | | | | | * lisp/emacs-lisp/tq.el (tq-process-buffer): Pop the queue before calling the function because the function may add new entries to the queue (bug#19016). Also report errors.
* | Fix previous macroexp-progn doc string fixLars Ingebrigtsen2019-08-031-2/+3
| | | | | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp-progn): Fix previous doc string clarification.
* | macroexp doc fixesLars Ingebrigtsen2019-08-021-2/+3
| | | | | | | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp-progn): Doc clarification (bug#19371). (macroexp-let*): Doc fix.
* | macroexp--cons doc fixLars Ingebrigtsen2019-08-021-1/+2
| | | | | | | | * lisp/emacs-lisp/macroexp.el (macroexp--cons): Doc fix (bug#19371).
* | Document batch-byte-compile directory behaviorLars Ingebrigtsen2019-08-011-1/+8
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (batch-byte-compile): Document the behaviour with directories (bug#20867).
* | Fix usage of remove-text-propertiesBasil L. Contovounesios2019-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-decorate-item-icon): * lisp/emacs-lisp/chart.el (chart-goto-xy): * lisp/forms.el (forms--make-format) (forms--make-format-elt-using-text-properties): * lisp/htmlfontify.el (hfy-unmark-trailing-whitespace): * lisp/net/newst-plainview.el (newsticker-hide-entry) (newsticker-show-entry): * lisp/nxml/nxml-mode.el (nxml-cleanup): * lisp/obsolete/longlines.el (longlines-unshow-hard-newlines) (longlines-encode-region): * lisp/org/ob-exp.el (org-babel-exp-process-buffer): * lisp/org/org-agenda.el (org-agenda-show-new-time): * lisp/progmodes/cc-defs.el (c-clear-char-property-with-value-function) (c-clear-char-property-with-value-on-char-function): * lisp/progmodes/ebrowse.el (ebrowse--hide): * lisp/progmodes/gdb-mi.el (gdb-send): * lisp/progmodes/idlw-shell.el (idlwave-retrieve-expression-from-level): * lisp/progmodes/make-mode.el (makefile-fill-paragraph): * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook): * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): * lisp/tmm.el (tmm-remove-inactive-mouse-face): Always pass an explicit plist to remove-text-properties. * lisp/dired.el (dired--unhide): * lisp/facemenu.el (facemenu-add-face): * lisp/htmlfontify.el (hfy-fontify-buffer): * lisp/iimage.el (iimage-mode-buffer): * lisp/image-file.el (image-file-yank-handler): * lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol): * lisp/textmodes/tex-mode.el (latex-env-before-change): * test/src/undo-tests.el (undo-test0): Use remove-list-of-text-properties in place of remove-text-properties where appropriate.
* | Merge from origin/emacs-26Glenn Morris2019-07-301-2/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8fbe462 (origin/emacs-26) ; * doc/lispref/positions.texi (List Motion... 1d9efc0 Add index for "\( in strings" (Bug#25195) 304e96f Fix doc-string of 'fit-window-to-buffer' (Bug#36848) d4c4987 Update view-mode docstring d6ca1fc ; * lisp/term.el: Add missing / to esc seq commentary. b3e2073 Fix subproc listening when setting filter to non-t (Bug#36591) f671950 * etc/NEWS.25: Belatedly announce rcirc-reconnect-delay. 7f42277 Mention term.el's \032 dir tracking in commentary (Bug#19524) 16a529e Remove upload functionality of package-x from the elisp manual 78e6c2a * etc/AUTHORS: Update. 086a56e Clarify Gravatar docs 0592467 * doc/lispref/display.texi (Defining Faces): Say a face can't... # Conflicts: # doc/emacs/programs.texi # etc/AUTHORS # lisp/term.el
| * Remove upload functionality of package-x from the elisp manualStefan Kangas2019-07-251-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Stefan Monnier. Ref: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19537#8 * doc/lispref/package.texi (Package Archives): Don't document package-x upload functions in the elisp manual, since they are not very commonly used. (Bug#19537) * lisp/emacs-lisp/package-x.el (package-archive-upload-base) (package-upload-buffer, package-upload-file): Add to the doc strings any details removed from the elisp manual that would otherwise be missing.
* | * lisp/emacs-lisp/let-alist.el: Bump version to 1.0.6 (Bug#23244).Noam Postavsky2019-07-301-1/+1
| |
* | Merge commit '9b480db6732c6d2e886838f112d9bd46fc8989bf'Stephen Leake2019-07-3012-114/+161
|\ \
| * | Use decoded time accessors in timerLars Ingebrigtsen2019-07-301-2/+5
| | | | | | | | | | | | | | | * lisp/emacs-lisp/timer.el (run-at-time): Use decoded time accessors.
| * | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add slot option :documentationStefan Monnier2019-07-291-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | Use it to improve the docstring of the accessor functions. * doc/misc/cl.texi: Rename menu entry to "CL-Lib". (Structures): Add ':documentation' and mention ':type' as well, which we don't completely ignore any more.
| * | Make let-alist work with vectorsLars Ingebrigtsen2019-07-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/let-alist.el (let-alist--deep-dot-search): Descend into vectors, too, looking for dotted variables (bug#23244). Test case: (let-alist '((a . 1) (b . 2)) `[,(+ .a) ,(+ .a .b .b)])
| * | ; * lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix.Eli Zaretskii2019-07-281-19/+22
| | |
| * | Make URLs in package descriptions into linksLars Ingebrigtsen2019-07-281-37/+41
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (describe-package-1): Make the URLs in package descriptions into links (bug#23480).
| * | Make cl-values-list signal an error if its argument isn't a listLars Ingebrigtsen2019-07-281-5/+9
| | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-values-list): Signal an error if LIST isn't a list (bug#23597).
| * | Fix testcover.el usage of edebug.el symbolsLars Ingebrigtsen2019-07-281-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/testcover.el (testcover-before) (testcover-after, testcover-mark) (testcover-analyze-coverage-edebug-after): Adjust usage of `unknown' to `edebug-unknown' in testcover.el in addition to edebug.el (bug#25471).
| * | * lisp/emacs-lisp/autoload.el: Make progress info more informative.Stefan Monnier2019-07-271-1/+4
| | | | | | | | | | | | (update-directory-autoloads): Include the name of the target file.
| * | * lisp/emacs-lisp/bytecomp.el (byte-compile-out-toplevel): Fix bug#34757Stefan Monnier2019-07-271-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix was provided by Pip Cet <pipcet@gmail.com>. It tightens the code that tries to recognize a bytecode sequence as being a simple function call (to then decompile it), which occasionally misfired. I added some minor changes found while investigating this issue. (byte-compile): Handle corner case where byte-compile-top-level returns a non-self-evaluating expression. (byte-compile-out-toplevel): Remove support for `progn` and `t` values of output-type which aren't used anywhere.
| * | Doc fix for package-menu-filterLars Ingebrigtsen2019-07-271-0/+6
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter): Document the use of arc:ARCHIVE and status:STATUS (bug#24883).
| * | edebug.el comment fixLars Ingebrigtsen2019-07-271-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el: Fix comment referring to non-existent variable (bug#25188).
| * | Rename coverage symbols in edebug to avoid collisionsLars Ingebrigtsen2019-07-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-clear-coverage): Use edebug-unknown and edebug-ok-coverage instead of unknown and ok-coverage to avoid naming collisions with packages that use those two symbols (bug#25471). (edebug--update-coverage, edebug-display-freq-count): Ditto.
| * | define-derived-mode doc string clarificationLars Ingebrigtsen2019-07-271-3/+5
| | | | | | | | | | | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Doc string clarification about the keywords (bug#26301).
| * | Fix ‘make check’ failurePaul Eggert2019-07-261-3/+4
| | | | | | | | | | | | | | | | | | Problem introduced in 2019-07-26T07:08:40!larsi@gnus.org. * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Don’t count "0 unexpected" as unexpected.
| * | Minor rewording of a couple of sentences in define-derived-mode docLars Ingebrigtsen2019-07-261-3/+4
| | | | | | | | | | | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Reword documentation to be less whimsical (bug#26301).
| * | Add an autoload cookie to package-upload-fileLars Ingebrigtsen2019-07-261-0/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-x.el (package-upload-file): Add an autoload cookie (bug#26724).
| * | Always include the number of unexpected results here tooLars Ingebrigtsen2019-07-261-4/+2
| | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the number of unexpected results here as well.
| * | Don't run gpg when loading package.elLars Ingebrigtsen2019-07-261-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-check-signature): Don't run gpg on startup, but just default to `allow-unsigned'. (package-check-signature): New function to check whether a OpenPGP configuration is found when `allow-unsigned'. (package--check-signature-content, package--check-signature) (package--download-one-archive, package-refresh-contents) (package-install-from-archive): Use function instead of variable throughout. * doc/emacs/package.texi (Package Installation): Document this.
| * | Make cl-destructuring-bind errors a bit more understandableLars Ingebrigtsen2019-07-251-2/+5
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Make errors when giving the wrong number of arguments to the bindings form more informational (bug#29345).