aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Implement tab-close-other bound to C-x 6 1 by analogy with C-x 5 1.Juri Linkov2019-10-071-0/+12
| | | | | | | | | | | | * lisp/tab-bar.el (tab-close-other): New command bound to C-x 6 1. * doc/emacs/frames.texi (Tab Bars): Document it.
* | Use tabs in EWW (bug#37592)Juri Linkov2019-10-072-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/eww.el (eww-open-in-new-buffer): Call tab-new when tab-bar-mode is enabled. (eww-browse-url): Add docstring. Call tab-new when tab-bar-mode is enabled. * lisp/net/shr.el (shr-map): Bind [C-down-mouse-1] to shr-mouse-browse-url-new-window. (shr-mouse-browse-url-new-window): New command. (shr-browse-url): Add optional arg new-window. * doc/misc/eww.texi (Basics): Mention opening tabs on M-RET.
* | * eieio-core.el (eieio--full-class-object): New function.Stefan Monnier2019-10-063-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Rather than explicitly call eieio-class-un-autoload, the autoloading is now performed on-demand if you use eieio--full-class-object. * lisp/emacs-lisp/eieio-core.el (eieio-class-un-autoload): Remove. (eieio--full-class-object): New function, to replace it. (eieio-oref, eieio--class-precedence-list): * lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object): Use it instead of eieio-class-un-autoload. * lisp/emacs-lisp/eieio.el (eieio-class-parents, child-of-class-p): Load the class if needed.
* | Support changing font size using mouse wheelStefan Kangas2019-10-061-22/+53
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-mode): Support changing font size (text scaling) using mouse wheel. (Bug#28182) (mouse-wheel-scroll-amount): Bind the Ctrl modifier to text scaling. (mwheel-installed-text-scale-bindings): New variable. (mouse-wheel--remove-bindings): New helper function for 'mouse-wheel-mode'. * doc/emacs/frames.texi (Mouse Commands): Document this feature. * etc/NEWS: Announce it.
* | Set alternate faces for some line numbers (bug#27734)Juanma Barranquero2019-10-063-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/faces.el (line-number-major-tick, line-number-minor-tick): New faces. * lisp/cus-start.el (display-line-numbers-major-tick) (display-line-numbers-minor-tick): Add customization info. * lisp/frame.el: Add `display-line-numbers-major-tick' and `display-line-numbers-minor-tick' to list of variables which should trigger redisplay of the current buffer. * src/xdisp.c (syms_of_xdisp) <display-line-numbers-major-tick> <display-line-numbers-major-tick>: Defvar new options. (syms_of_xdisp) <line-number-major-tick, line-number-minor-tick>: Defsym new faces. (maybe_produce_line_number): Use new faces for line numbers that are multiple of `display-line-numbers-major-tick' and `display-line-numbers-minor-tick'. * etc/NEWS (value): Announce new feature. * doc/emacs/display.texi (Display Custom): Describe it. Wording by Robert Pluim <rpluim@gmail.com>
* | Don't bind 'C-x 6' to '2C-mode-map' globally by default.Juri Linkov2019-10-062-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/two-column.el: Don't autoload global setting of "\C-x6" to 2C-command. * lisp/ldefs-boot.el: Update to remove setting "\C-x6" to 2C-command. * doc/emacs/commands.texi (Keys): * doc/emacs/text.texi (Two-Column): * doc/lispref/keymaps.texi (Prefix Keys): * doc/lispref/maps.texi (Standard Keymaps): Unbind 'C-x 6' from '2C-mode-map'.
* | * lisp/emacs-lisp/package.el (package--get-deps): Rewrite.Stefan Monnier2019-10-061-19/+12
| | | | | | | | | | | | Avoid inf-recursion with dependency cycles. Remove unused `only` arg. Prune duplicates early rather than late. (package--removable-packages): Simplify code accordingly.
* | Fix off-by-one bug in ISO 8601 BC yearsPaul Eggert2019-10-051-32/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/iso8601.el (iso8601--year-match) (iso8601--full-date-match, iso8601--without-day-match) (iso8601--week-date-match, iso8601--ordinal-date-match) (iso8601-parse-date): Don’t bother to separate the year’s sign from the year, as that distinction is not needed: ISO 8601 uses astronomical year numbering with a year zero, which is what the Emacs time functions use, so there’s no need to treat nonpositive years specially. (iso8601--adjust-year): Remove; no longer needed since callers can just use string-to-number. * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years): Adjust test case to match fixed behavior.
* | Improve documentation for year-zero issuesPaul Eggert2019-10-052-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/calendar.texi (Calendar Systems) * doc/lispref/os.texi (Time Conversion): Prefer "BC" to "B.C." since the documentation generally uses "BC". * doc/misc/emacs-mime.texi (time-date): * lisp/calendar/time-date.el (date-to-day, time-to-days): In the doc string, state the day origin more clearly, and more consistently with the rest of the documentation. * src/timefns.c (Fdecode_time): State the year origin in the doc string.
* | More tab bar related key bindings.Juri Linkov2019-10-063-5/+13
| | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix): Move here from tab-bar.el to make it available to other modes like dired for 'C-x 6 d'. * lisp/dired.el (dired-other-tab): New command bound to 'C-x 6 d'. * lisp/tab-bar.el: Bind 'C-x 6 o' to tab-next. * doc/emacs/frames.texi (Tab Bars): Describe C-x 6 prefix key bindings.
* | * lisp/tab-bar.el: In tab switching allow absolute and relative args.Juri Linkov2019-10-061-187/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-tab-hints): New defcustom. (tab-bar-make-keymap-1): Use tab-bar-tab-hints. (tab-bar--tab, tab-bar--current-tab, tab-bar--current-tab-index) (tab-bar--tab-index, tab-bar--tab-index-by-name): New internal functions. (tab-bar-select-tab): Use arg as absolute position of tab to select. (tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab): Use arg as offset relative to the current tab. (tab-bar-switch-to-tab): New command. (tab-bar-new-tab): Simplify by using cl-pushnew. (tab-bar-close-current-tab): Remove (the current tab is closed by nil arg of tab-bar-close-tab). (tab-bar-close-tab): Use arg as absolute position of tab to close. (tab-bar-close-tab-by-name): New command.
* | Support GNU make error messages in compile mode.Paul Smith2019-10-051-0/+6
| | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Match GNU make error messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Test GNU make error message matching. (compile-test-error-regexps): Update count of infos found.
* | Remove some XEmacs compat code from esh*.elLars Ingebrigtsen2019-10-053-49/+8
| | | | | | | | * lisp/eshell/esh-util.el: Remove some XEmacs compat functions.
* | Remove more XEmacs compat code from ezimage.elLars Ingebrigtsen2019-10-051-12/+4
| | | | | | | | | | * lisp/ezimage.el (ezimage-use-images) (ezimage-insert-over-text): Remove XEmacs compat code.
* | Remove most of the XEmacs compat code from ediff*.elLars Ingebrigtsen2019-10-058-699/+346
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/ediff-diff.el (ediff-word-1): Remove XEmacs compat code and declare compatibility functions for obsolete. Adjust all callers. * lisp/vc/ediff-help.el (ediff-set-help-overlays): * lisp/vc/ediff-hook.el: (menu-bar-ediff-misc-menu, menu-bar-ediff-merge-menu) (menu-bar-ediff-menu, menu-bar-ediff-merge-menu) (menu-bar-epatch-menu, menu-bar-ediff-misc-menu): * lisp/vc/ediff-init.el (ediff-device-type) (ediff-window-display-p, ediff-has-face-support-p) (ediff-has-toolbar-support-p, ediff-has-gutter-support-p) (ediff-BAD-INFO, ediff-coding-system-for-write) (ediff-read-event, ediff-overlayp, ediff-make-overlay) (ediff-delete-overlay, ediff-color-display-p) (ediff-display-pixel-width, ediff-display-pixel-height) (ediff-region-help-echo, ediff-set-face-pixmap) (ediff-paint-background-regions-in-one-buffer) (ediff-clear-fine-diff-vector, ediff-mouse-event-p) (ediff-key-press-event-p, ediff-event-point, ) (ediff-event-buffer, ediff-event-key, ediff-last-command-char) (ediff-frame-iconified-p, ediff-frame-char-width) (ediff-reset-mouse, ediff-frame-char-height) (ediff-overlay-start, ediff-overlay-end, ediff-overlay-buffer) (ediff-overlay-get, ediff-move-overlay, ediff-overlay-put) (ediff-abbreviate-file-name): * lisp/vc/ediff-mult.el (ediff-next-meta-item) (ediff-previous-meta-item) (ediff-replace-session-activity-marker-in-meta-buffer) (ediff-replace-session-status-in-meta-buffer) (ediff-redraw-directory-group-buffer) (ediff-update-markers-in-dir-meta-buffer) (ediff-update-session-marker-in-dir-meta-buffer) (ediff-redraw-registry-buffer, ediff-set-meta-overlay) (ediff-update-meta-buffer, ediff-get-meta-info) (ediff-get-meta-overlay-at-pos, ) (ediff-get-session-number-at-pos, ) (ediff-next-meta-overlay-start) (ediff-previous-meta-overlay-start, ) (ediff-meta-mark-equal-files): * lisp/vc/ediff-util.el: (ediff-setup, ediff-setup-control-buffer, ediff-recenter) (ediff-recenter-one-window, ediff-toggle-read-only) (ediff-file-checked-out-p, ediff-file-checked-in-p) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-kill-bottom-toolbar) (ediff-visible-region, ediff-scroll-vertically) (ediff-scroll-horizontally, ediff-jump-to-difference-at-point) (ediff-diff-to-diff, ediff-restore-diff) (ediff-toggle-regexp-match, ediff-really-quit) (ediff-cleanup-mess, ediff-highlight-diff-in-one-buffer) (ediff-unhighlight-diffs-totally-in-one-buffer) (ediff-save-buffer, ediff-make-cloned-buffer) (ediff-make-indirect-buffer, ediff-remove-flags-from-buffer) (ediff-place-flags-in-buffer1, ediff-get-diff-posn) (ediff-clear-diff-vector, ediff-make-bullet-proof-overlay) (ediff-submit-report, ediff-deactivate-mark) (ediff-activate-mark, ediff-profile, ediff-print-diff-vector): * lisp/vc/ediff-wind.el (ediff-control-frame-parameters) (ediff-get-window-by-clicking, ediff-select-lowest-window) (ediff-setup-windows-plain-merge) (ediff-setup-windows-plain-compare, ediff-setup-control-frame) (ediff-destroy-control-frame, ediff-make-frame-position) (ediff-make-wide-display, ediff-get-visible-buffer-window): * lisp/vc/ediff.el (ediff-version, ediff-documentation):
* | Omit one more superfluous "-" in regexpPaul Eggert2019-10-051-1/+1
| | | | | | | | | | | | Problem reported by Mattias Engdegård. * lisp/language/indian.el (gurmukhi-composable-pattern): Omit unnecessary "-".
* | (project--vc-list-files): Make sure to expand file namesDmitry Gutov2019-10-051-4/+4
| | | | | | | | | | * lisp/progmodes/project.el (project--vc-list-files): Make sure to expand file names. Turns out, Grep doesn't like abbreviated ones.
* | Fix vertical scrolling in image-modeEli Zaretskii2019-10-051-8/+11
| | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-set-window-vscroll): Interpret the argument VSCROLL value in pixel units. (image-mode-reapply-winprops): Interpret the 'vscroll' property value in pixel units. (image-next-line): Scroll the image with pixel resolution. (image-eob): Set the image vscroll in pixels. (Bug#37578)
* | Improve docstrings auto-generated by `define-minor-mode'Juanma Barranquero2019-10-051-3/+11
| | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): When using `easy-mmode--arg-docstring' to auto-generate a docstring, refill it up to `emacs-lisp-docstring-fill-column'.
* | Don't manipulate gnus-newsrc-alist if it hasn't been initalizedEric Abrahamsen2019-10-041-6/+8
| | | | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-set-info): Packages that use Gnus summary mode without actually booting Gnus might end up in this situation. See bug#36903
* | Fix bugs found by 2019-09-29 regexp scannerPaul Eggert2019-10-045-57/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-09/threads.html * lisp/calendar/iso8601.el (iso8601--year-match) (iso8601--full-date-match, iso8601--without-day-match) (iso8601--week-date-match, iso8601--ordinal-date-match) (iso8601--zone-match): * lisp/textmodes/rst.el (rst-re-alist-def): Put ‘-’ at the end of bracketed ranges, following the style suggestion in the Elisp manual. (iso8601--time-match): Use \([0-9]*\) instead of \([0-9]+\)? to pacify the regexp scanner. (iso8601-parse-time): Adjust accordingly. * lisp/language/burmese.el (burmese-composable-pattern): * lisp/language/indian.el (devanagari-composable-pattern) (bengali-composable-pattern, gurmukhi-composable-pattern) (gujarati-composable-pattern, oriya-composable-pattern) (telugu-composable-pattern, kannada-composable-pattern) (malayalam-composable-pattern): Prefer [ab] to [a-b] when the characters differ by 1, to pacify the regexp scanner. * lisp/language/burmese.el (burmese-composable-pattern): Fix missing-‘\u’ typos. * lisp/language/indian.el (gurmukhi-composable-pattern): Fix missing-‘\’ typo. * lisp/language/tibetan.el (tibetan-regexp): Quote ‘+’ in regexp to pacify the regexp scanner. Simplify. * lisp/textmodes/rst.el (rst-re-alist-def): Fix ‘[]-'...]’ typo by putting the ‘-’ at end of the bracketed expression.
* | Make mouse scroll show a message instead of dinging at buffer limitsStefan Kangas2019-10-041-52/+62
| | | | | | | | | | | | * lisp/mwheel.el (mwheel-scroll): Show a message instead of dinging at end of buffer and beginning of buffer. This should be less intrusive, especially when using a trackpad. (Bug#16196)
* | Bind Scroll_Lock to scroll-lock-mode globallyStefan Kangas2019-10-042-1/+5
| | | | | | | | | | | | | | | | * lisp/bindings.el (global-map): Bind Scroll_Lock to scroll-lock-mode. (Bug#6861) * lisp/scroll-lock.el (scroll-lock-mode): Note that the binding will not work if 'w32-scroll-lock-modifier' is non-nil. * etc/NEWS: Announce it.
* | Declare unused vhdl code in align.el obsoleteStefan Kangas2019-10-041-11/+5
| | | | | | | | | | | | | | * lisp/align.el (align-vhdl-rules-list, align-set-vhdl-rules): Declare obsolete. (Bug#6207) (align-dq-string-modes, align-open-comment-modes): Move vhdl-mode to definition instead of adding it later.
* | Fix error in gnu compilation-mode regexp (bug#37582)Mattias Engdegård2019-10-041-1/+1
| | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix a mistake introduced when the regexp was translated to rx. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-test-error-regexps): Add test case. * etc/compilation.txt: Add example.
* | Remove semantic-make-local-hook call from CEDETLars Ingebrigtsen2019-10-049-25/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-setupcode-builder): * lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode) (semantic-show-unmatched-syntax-mode) (semantic-show-parser-state-mode): * lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode): * lisp/cedet/semantic/imenu.el (semantic-create-imenu-index): * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): * lisp/cedet/semantic/grammar-wy.el (semantic-grammar-wy--install-parser): * lisp/cedet/semantic/decorate/mode.el (semantic-decorate-add-pending-decoration) (semantic-decoration-mode): * lisp/cedet/semantic.el (semantic--set-buffer-cache): Remove all calls to the function. * lisp/cedet/semantic/fw.el (semantic-make-local-hook): Made obsolete alias for #'ignore by removing XEmacs compat code.
* | Remove some XEmacs compat code from ispell.elLars Ingebrigtsen2019-10-041-6/+1
| | | | | | | | * lisp/textmodes/ispell.el (ispell-word): Remove XEmacs compat code.
* | Remove some XEmacs compat code from ezimage.elLars Ingebrigtsen2019-10-041-73/+5
| | | | | | | | * lisp/ezimage.el (defezimage): Remove XEmacs compat code.
* | Remove XEmacs compat code from re-builder.elStefan Kangas2019-10-041-10/+1
| | | | | | | | | | * lisp/emacs-lisp/re-builder.el (top-level) (reb-color-display-p): Remove XEmacs compat code.
* | Remove some XEmacs compat code from ediff*.elLars Ingebrigtsen2019-10-045-290/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/ediff-diff.el (ediff-goto-word): Ditto. * lisp/vc/ediff-init.el (ediff-has-face-support-p) (ediff-current-diff-A, ediff-current-diff-B) (ediff-current-diff-C, ediff-current-diff-Ancestor) (ediff-fine-diff-A, ediff-fine-diff-B, ediff-fine-diff-C) (ediff-fine-diff-Ancestor, ediff-even-diff-A) (ediff-even-diff-B, ediff-even-diff-C) (ediff-even-diff-Ancestor, ediff-odd-diff-A, ediff-odd-diff-B) (ediff-odd-diff-C, ediff-odd-diff-Ancestor) (ediff-with-syntax-table): Ditto. * lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map) (ediff-setup-meta-map, ediff-set-meta-overlay): Ditto. * lisp/vc/ediff-util.el (ediff-setup-keymap) (ediff-toggle-wide-display, ediff-toggle-multiframe) (ediff-toggle-use-toolbar, ediff-really-quit) (ediff-good-frame-under-mouse) (ediff-make-bullet-proof-overlay): Ditto. * lisp/vc/ediff-wind.el (ediff-setup-control-frame) (ediff-refresh-control-frame): Remove XEmacs compat code.
* | * lisp/subr.el (generate-new-buffer): Move (from files.el) before first useStefan Monnier2019-10-042-10/+8
| | | | | | | | | | | | (with-temp-file, with-output-to-string): Use it. * lisp/files.el (generate-new-buffer): Move to subr.el.
* | (project--vc-list-files): Optimize the Hg implementationDmitry Gutov2019-10-041-10/+6
| | | | | | | | | | * lisp/progmodes/project.el (project--vc-list-files): Optimize the Hg implementation.
* | Remove some more XEmacs compat code from viper*.elLars Ingebrigtsen2019-10-044-90/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/viper-ex.el (viper-ex-read-file-name): Ditto. * lisp/emulation/viper-init.el (viper-ms-style-os-p) (viper-has-face-support-p, viper-deactivate-input-method) (viper-activate-input-method, viper-set-input-method): Ditto. * lisp/emulation/viper-util.el (viper-get-saved-cursor-color-in-replace-mode) (viper-get-saved-cursor-color-in-insert-mode) (viper-get-saved-cursor-color-in-emacs-mode) (viper-set-replace-overlay, viper-key-to-emacs-key) (viper-set-unread-command-events): Ditto. * lisp/emulation/viper.el (viper-go-away, viper-set-hooks) (viper-non-hook-settings): Remove XEmacs compat code.
* | Remove more XEmacs compat code from viper-*.elLars Ingebrigtsen2019-10-042-50/+22
| | | | | | | | | | | | | | | | | | * lisp/emulation/viper-cmd.el (viper-special-read-and-insert-char) (viper-next-line-carefully, viper-next-line) (viper-previous-line): Ditto. * lisp/emulation/viper-mous.el (viper-surrounding-word) (viper-parse-mouse-key): Remove XEmacs compat code.
* | Remove XEmacs-only code from snake.elLars Ingebrigtsen2019-10-041-11/+0
| | | | | | | | * lisp/play/snake.el (snake-mode): Remove XEmacs-only code.
* | Remove XEmacs code from tetris.elLars Ingebrigtsen2019-10-041-11/+0
| | | | | | | | * lisp/play/tetris.el (tetris-mode): Remove XEmacs-only code.
* | Remove XEmacs compat code from idlw-shell.elLars Ingebrigtsen2019-10-041-25/+4
| | | | | | | | | | | | * lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file): Make into obsolete alias. (idlwave-shell-temp-file): Adjust callers.
* | Revert "Improve docstrings auto-generated by `define-minor-mode'"Juanma Barranquero2019-10-041-11/+5
| | | | | | | | | | This reverts commit a397fa06d18d6ae37a3a1288f269e1ae9eb3b569. The original change breaks bootstrapping because of a circular dependency.
* | ; Fix reported warningsDmitry Gutov2019-10-041-1/+5
| |
* | Use file-name-as-directoryDmitry Gutov2019-10-041-2/+2
| | | | | | | | | | * lisp/progmodes/project.el (project--vc-list-files): Use file-name-as-directory, to be on the safe side.
* | Remove more XEmacs compat code in cperl-mode.elStefan Kangas2019-10-041-34/+3
| | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (condition-case, cperl-problems) (cperl-problems-old-emaxen, cperl-init-faces) (cperl-word-at-point): Remove more XEmacs compat code.
* | Improve docstrings auto-generated by `define-minor-mode'Juanma Barranquero2019-10-041-5/+11
| | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring): When using `easy-mmode--arg-docstring' to auto-generate a docstring, refill it up to `emacs-lisp-docstring-fill-column'.
* | More doc fixes in package.el (Bug#37544)Stefan Kangas2019-10-042-23/+50
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-hide-low-priority) (package-pinned-packages, package-load-descriptor) package-archive-version, package-archive-contents) package--read-archive-file, package-read-archive-contents) (package-unsigned-archives, package-read-all-archive-contents) (package--download-and-read-archives, package-install): * lisp/subr.el (package--description-file): * test/lisp/emacs-lisp/package-tests.el: Doc fixes.
* | Speed up project-files for Git projectsDmitry Gutov2019-10-041-1/+62
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-files): New method. Implementation for VC projects that uses 'git ls-files' or 'hg status --all' for listing. With gratitude to Tassilo Horn who has done most of the legwork and wrote the first version of the code (https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00069.html). (project--vc-list-files): New function, to be used by the above. (project--find-regexp-in-files): Silence warnings about nonexistent files.
* | Further improve button.el support for help-echoBasil L. Contovounesios2019-10-031-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The last change to forward-button added support for help-echo values that are functions. This patch fixes the arguments passed to such functions and further adds support for help-echo values that are forms (bug#37515). * doc/lispref/display.texi (Button Properties): Fix description of help-echo button property. * lisp/button.el (button--help-echo): New function. (forward-button): Use it. (backward-button): Clarify help-echo reference in docstring. * test/lisp/button-tests.el (button--help-echo-string) (button--help-echo-form, button--help-echo-function): New tests.
* | Use lexical-binding in button.elBasil L. Contovounesios2019-10-031-33/+29
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/button.el: Use lexical-binding. Expand Keywords header. Quote function symbols as such. Use ;;;-comments where appropriate. (button): Remove outdated commentary of defface. (define-button-type, make-button, insert-button, make-text-button) (insert-text-button): Clarify in docstring that PROPERTIES argument is a plist. (button-type-subtype-p, button-has-type-p): Do not overspecify return value in docstring. (button-put): Fix typo in commentary.
* | Preserve point better in hs-hide-comment-regionJohn Yates2019-10-031-3/+5
| | | | | | | | | | | | | | * lisp/progmodes/hideshow.el (hs-hide-comment-region): Preserve point better when collapsing the region (bug#10856). Copyright-paperwork-exempt: yes
* | Make lisp-do-defun do the right thing with trailing commentsLars Ingebrigtsen2019-10-031-2/+5
| | | | | | | | | | * lisp/progmodes/inf-lisp.el (lisp-do-defun): Avoid including trailing comments in the region (bug#7974).
* | Fix bytecomp.el warning a different way than the previous patchLars Ingebrigtsen2019-10-031-2/+1
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map): No need to use set-keymap-parent here; `define-derived-mode' will do that automatically.
* | Fix comment in previous doc-view patchLars Ingebrigtsen2019-10-031-1/+1
| | | | | | | | * lisp/doc-view.el (doc-view-open-text): Comment fix.