aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | When searching a topic in Gnus, search all topic's groupsEric Abrahamsen2020-02-141-1/+2
| | | | | | | | | | | | | | | | Bug#39515 * lisp/gnus/nnir.el (gnus-group-make-nnir-group): Bring the code in line with the documentation, which says that all topic groups will be searched, even if they're not visible.
* | * lisp/gnus/nnmaildir.el: Fix O(n^2) problem when leaving a groupStefan Monnier2020-02-142-13/+19
| | | | | | | | | | | | | | | | | | | | Use lexical-binding. (nnmaildir-close-group): Use a hash-table rather than a list to keep track of the files we have seen. * lisp/gnus/nnheader.el (nnheader-parse-naked-head): Use make-full-mail-header.
* | * lisp/simple.el (undo): Use undo--last-change-was-undo-pStefan Monnier2020-02-141-11/+6
| |
* | Add an appropriate error for reading bad JSON arraysMark Oteiza2020-02-131-1/+2
| | | | | | | | | | * lisp/json.el (json-array-format): New error. (json-read-array): Use it.
* | Merge from origin/emacs-27Glenn Morris2020-02-135-23/+36
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | 0304f53076 (origin/emacs-27) doc/misc/org.texi: Fix @dircategory 027da652a4 Fix display of minibuffer prompt in ido.el 5a21aaff46 rx: Use longest match for all-string 'or' forms (bug#37659) 2b12c2b6f2 Make sure not to mark directories ff4ed4a0ff ; Add a TODO 3a5129a1c9 vc-hg-dir-status-files: Fix when DIR is not repository root # Conflicts: # etc/NEWS
| * Fix display of minibuffer prompt in ido.elEli Zaretskii2020-02-122-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (minibuffer--message-overlay-pos): New function. (set-minibuffer-message): Use it to determine where to show the overlay with the temporary message. * lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using an overlay"; this restores the original code which inserted the match-status information into the minibuffer, instead of displaying it in an overlay with an after-string. Put the special 'minibuffer-message' text property at the beginning of the inserted text. (Bug#39379) * etc/NEWS: * doc/lispref/display.texi (Displaying Messages): * doc/lispref/text.texi (Special Properties): Document the 'minibuffer-message' text property and its effect.
| * rx: Use longest match for all-string 'or' forms (bug#37659)Mattias Engdegård2020-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert to the Emacs 26 semantics that always gave the longest match for rx 'or' forms with only string arguments. This guarantee was never well documented, but it is useful and people likely have come to rely on it. For example, prior to this change, (rx (or ">" ">=")) matched ">" even if the text contained ">=". * lisp/emacs-lisp/rx.el (rx--translate-or): Don't tell regexp-opt to preserve the matching order. * doc/lispref/searching.texi (Rx Constructs): Document the longest-match guarantee for all-string 'or' forms. * test/lisp/emacs-lisp/rx-tests.el (rx-or): Update test.
| * Make sure not to mark directoriesWolfgang Scherer2020-02-121-2/+3
| | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-mark-all-files): Make sure not to mark directories (bug#37182).
| * ; Add a TODODmitry Gutov2020-02-121-0/+3
| |
| * vc-hg-dir-status-files: Fix when DIR is not repository rootDmitry Gutov2020-02-121-6/+6
| | | | | | | | | | | | | | * lisp/vc/vc-hg.el (vc-hg-dir-status-files): Make sure it works correctly in a subdirectory of the repo root. Bind default-directory to DIR and add 're: -I .' to the arguments (bug#39380).
| * Revert "Fix display of working text on NS (Bug#23412, Bug#1453)"Alan Third2020-02-111-4/+6
| | | | | | | | | | | | This reverts commit ba042176d8931cdf9441b3b4919ec74b75019494. Do not merge to master (bug#38851)
* | Merge from origin/emacs-27Glenn Morris2020-02-1316-28/+49
|\ \ | |/ | | | | | | | | | | ad5e350ab7 c-end-of-macro: Handle block coment lines with unescaped N... 06c302d425 Fix set-fontset-font with ADD arg non-nil 530067463b Correct "different than" to "different from" where appropr... 56b8768b32 More accurate documentation of 'package-menu-hide-package'
| * c-end-of-macro: Handle block coment lines with unescaped NLs correctlyAlan Mackenzie2020-02-102-8/+28
| | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Make obsolete, and supersede by ... (c-open-c-comment-on-logical-line-re): New language variable. * lisp/progmodes/cc-engine.el (c-end-of-macro): Inside macros, handle multiline block comments whose line ends are not escaped correctly.
| * Correct "different than" to "different from" where appropriateAlan Mackenzie2020-02-0914-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (doc/emacs/screen.texi) (doc/lispintro/emacs-lisp-intro.texi) (doc/misc/calc.texi) (doc/misc/gnus.texi) (doc/misc/sc.texi) (lisp/align.el) (lisp/allout-widgets.el) (lisp/allout.el) (lisp/emacs-lisp/gv.el) (lisp/font-lock.el) (lisp/gnus/mm-util.el) (lisp/mail/feedmail.el) (lisp/mail/sendmail.el) (lisp/mail/supercite.el) (lisp/org/org-attach.el) (lisp/progmodes/cc-langs.el) (lisp/progmodes/idlw-shell.el) (lisp/ps-print.el) (lisp/simple.el) (src/cmds.c) (src/editfns.c) (src/frame.h) (src/regex-emacs.c) (src/xfaces.c): Replace "different than" by "different from".
| * More accurate documentation of 'package-menu-hide-package'Eli Zaretskii2020-02-081-3/+4
| | | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi (Package Menu): Improve the description of the 'H' command. * lisp/emacs-lisp/package.el (package-menu-mode-menu): More accurate wording of the help-echo string. (package-menu-hide-package): Make the doc string more accurate. (Bug#39436)
| * Revert "Signal user-error on duplicate package refresh"Stefan Kangas2020-02-061-4/+1
| | | | | | | | | | | | | | | | That commit caused errors when the connection was dropped in the middle of a package refresh. To avoid any further issues this close to the pretest, we simply remove this feature. (Bug#39187) Don't merge to master, where we will instead try to fix the bug.
* | Simplify Tramp cachingMichael Albinus2020-02-132-63/+44
| | | | | | | | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties) (tramp-flush-directory-properties) (tramp-flush-connection-properties, tramp-list-connections) (tramp-parse-connection-properties): * lisp/net/tramp-gvfs.el (tramp-parse-goa-accounts) (tramp-parse-media-names): Simplify cache handling.
* | Fix `tramp-interrupt-process'Michael Albinus2020-02-131-6/+3
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-interrupt-process): Improve command. * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name) (tramp-test26-file-name-completion): Simplify. (tramp-test31-interrupt-process): Remove :unstable tag.
* | Fix problem with auth-source.el in TrampMichael Albinus2020-02-111-1/+6
| | | | | | | | | | * lisp/net/tramp.el (tramp-read-passwd): Use `tramp-compat-temporary-file-directory'. (Bug#39389, Bug#39489)
* | Fix window position in Tramp's shell-commandMichael Albinus2020-02-101-3/+4
| | | | | | | | | | * lisp/net/tramp.el (tramp-handle-shell-command): Fix `window-start' in output buffer. (Bug#39171)
* | Use quit-restore-window to close tab (bug#39446)Juri Linkov2020-02-103-28/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (display-buffer-in-new-tab): New function with code from display-buffer-in-tab. (display-buffer-in-tab): Call display-buffer-in-new-tab. (switch-to-buffer-other-tab): Instead of 'display-buffer-same-window' use '(reusable-frames . t)'. * lisp/windmove.el (windmove-display-in-direction): Set arg 'type' to 'tab' for window--display-buffer when creating a new tab. * lisp/window.el (quit-restore-window): Call tab-bar-close-tab when quit-restore type is 'tab'. (display-buffer-record-window): Set window-parameter 'quit-restore' to 'tab' for type 'tab'. (window--display-buffer): Set window-prev-buffers to nil for tab too.
* | * lisp/simple.el (undo-redo): New commandStefan Monnier2020-02-081-0/+24
| | | | | | | | | | | | | | (undo--last-change-was-undo-p): New function. * test/lisp/simple-tests.el (simple-tests--exec): New function. (simple-tests--undo): New test.
* | Improve prefix arg support in 'ediff-scroll-horizontally'Kyle Hubert2020-02-081-2/+2
| | | | | | | | | | | | | | | | * lisp/vc/ediff-util.el (ediff-scroll-horizontally): Use 'current-prefix-arg' to pass the value of prefix argument to scrolling commands. (Bug#39353) Copyright-paperwork-exempt: yes
* | Enhance memory address evaluation in gdb-miYuan Fu2020-02-081-15/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the memory buffer evaluated the expression as address and used the fixed result in each stop. This change store the expression itself and reevaluates it in each stop to yield an address. We also add a warning (a red bold exclamation mark) on the header line when the content of the page doesn't represent the memory location user requested for. That happends when some error occurs in evaluating the address, and we display the last successfully displayed memory page. * lisp/progmodes/gdb-mi.el (gdb-memory-address-expression) (gdb--memory-display-warning): New variables. (gdb-memory-address): Change default value to nil; add docstring. (def-gdb-trigger-and-handler, gdb-invalidate-memory) (gdb-memory-set-address): Replace 'gdb-memory-address' with 'gdb-memory-address-expression'. (gdb-memory-header): Add code to display 'gdb-memory-address-expression' on header line. Move the mouse event from address to expression. Add code to display the warning. (gdb-memory-header): Fix the error from 'propertize' when 'gdb-memory-address-expression' or 'gdb-memory-address' is nil. (gdb-read-memory-custom): Change 'error' to 'user-error'. Add code to display the warning. (Bug#39180)
* | Some Tramp fixesMichael Albinus2020-02-074-20/+32
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-connectable-p): * lisp/net/tramp-cache.el (tramp-list-connections): * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Bind `tramp-verbose' to 0. * lisp/net/tramp-sh.el (tramp-remote-path, tramp-find-executable): Fix docstring. (tramp-open-shell): Read prompt when moving "~/.editrc".
* | Merge from origin/emacs-27Glenn Morris2020-02-0616-40/+52
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3... 4a0a114505 Support ido-vertical-mode better ef5fba9f40 Fix faces tab-bar and tab-line. 831508422e Cater for 3-argument version of pthread_setname_np f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t... 32763dac46 Replace add-to-list to lexical variable with push (bug#39373) d07f177382 Clarify add-to-list documentation (bug#39373) d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode db7fa2546f Update documentation for mh-show-mode-hook d10be6bf28 Example goto-addr hook: MH-E already uses goto-address # Conflicts: # etc/NEWS
| * Wrap some set-auto-mode calls with delay-mode-hooks (bug#39190)Juri Linkov2020-02-063-3/+9
| | | | | | | | | | | | | | | | | | * lisp/gnus/mm-view.el (mm-display-inline-fontify): * lisp/vc/diff-mode.el (diff-syntax-fontify-props): * lisp/vc/vc.el (vc-find-revision-no-save): Add delay-mode-hooks around set-auto-mode calls to not run hooks that might assume buffer-file-name really associates buffer with a file.
| * Support ido-vertical-mode betterDmitry Gutov2020-02-051-0/+3
| | | | | | | | | | * lisp/ido.el (ido-exhibit): Prepend a space to INF if it starts with a newline (bug#39379).
| * Fix faces tab-bar and tab-line.Juri Linkov2020-02-052-4/+4
| | | | | | | | | | | | * lisp/tab-bar.el (tab-bar) <defface>: * lisp/tab-line.el (tab-line) <defface>: Check for min-colors 88 instead of type x.
| * Clarify lexvar restrictions for add-to-ordered-list, add-to-historyMattias Engdegård2020-02-021-1/+3
| | | | | | | | | | | | | | | | | | * lisp/subr.el (add-to-ordered-list, add-to-history): * doc/lispref/lists.texi (List Variables): * doc/lispref/minibuf.texi (Minibuffer History): Note in the doc string and manual that the variable arguments to add-to-ordered-list and add-to-history cannot refer to a lexical variable (bug#39373).
| * Replace add-to-list to lexical variable with push (bug#39373)Mattias Engdegård2020-02-016-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 'add-to-list', being a plain function, cannot access lexical variables, such use must be rewritten for correctness. (Some instances actually do work thanks to a compiler macro, but it's not something code should rely on.) * lisp/autoinsert.el (auto-insert-alist): * lisp/cedet/mode-local.el (mode-local-print-bindings): * lisp/net/tramp-cache.el (tramp-flush-connection-properties) (tramp-list-connections): * lisp/net/zeroconf.el (zeroconf-list-service-names) (zeroconf-list-service-types, zeroconf-list-services): * lisp/org/org.el (org-reload): * lisp/whitespace.el (whitespace-report-region): * test/lisp/emacs-lisp/map-tests.el (test-map-do): Replace add-to-list with push.
| * Clarify add-to-list documentation (bug#39373)Mattias Engdegård2020-02-011-0/+1
| | | | | | | | | | | | | | | | | | While add-to-list often works with lexical variables, this is a hack that isn't always effective; better tell the user not to try. * doc/lispref/lists.texi (List Variables): Add a note about lexical variables to the add-to-list description. Fix the equivalent code. * lisp/subr.el (add-to-list): Amend doc string.
| * MH-E: alter content in mh-display-msg, not mh-show-modeStephen Gildea2020-02-011-3/+3
| | | | | | | | | | | | | | * lisp/mh-e/mh-show.el (mh-display-msg, mh-show-mode): buffer-altering code formerly in mh-show-mode is moved to the location in mh-display-msg where mh-show-mode used to be called before the fix to MH-E bug #470 moved the call earlier.
| * Update documentation for mh-show-mode-hookStephen Gildea2020-02-012-5/+6
| | | | | | | | | | | | * lisp/mh-e/mh-e.el, doc/misc/mh-e.texi (mh-show-mode-hook): Now that the fix for MH-E bug #470 calls mh-show-mode-hook earlier, update the documentation to no longer say that the message contents are available.
| * Example goto-addr hook: MH-E already uses goto-addressStephen Gildea2020-02-011-4/+4
| | | | | | | | | | | | * lisp/net/goto-addr.el, doc/emacs/misc.texi: Do not use MH-E as the example of how to add a hook to goto-address, because MH-E calls goto-address internally.
| * ; Auto-commit of loaddefs files.Glenn Morris2020-02-011-2/+71
| |
| * * lisp/emacs-lisp/debug.el (debug): Merge the non-interactive casesPaul Pogonyshev2020-01-311-150/+142
| | | | | | | | | | | | bug#38927 (cherry picked from commit 502059433ce0e9699eb73d21656ce6e9e127d63b)
* | * lisp/battery.el: Use lexical-binding. Drop Redundant `:group`s.Stefan Monnier2020-02-061-26/+20
| |
* | Make 'M-x battery RET' work out-of-box for UPower users.Zajcev Evgeny2020-02-061-52/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * battery.el (battery-upower-prop): Removed in favor for 'battery-upower-device-property'. (battery-upower-device): Can be nil, meaning autodetect the battery device. (battery-upower-line-power-device): New. line-power device. Can be nil, meaning autodetect line-power device. (battery-status-function): Check UPower service is available to use 'battery-upower' as status function. (battery-upower): Speedup. Request D-Bus only once, fetching all the properties at once. Provide string for "%b" format spec. (battery-upower-device-list, battery-upower-device-all-properties, battery-upower-device-property): New functions to work with UPower devices. (battery-upower-dbus-service, battery-upower-dbus-interface, battery-upower-dbus-path, battery-upower-dbus-device-interface, battery-upower-dbus-device-path): New constants describing UPower D-Bus service.
* | * lisp/wid-edit.el (widget-choose): Use read-char-from-minibuffer (bug#17272)Juri Linkov2020-02-061-29/+12
| |
* | Eval macro arg just onceTino Calancha2020-02-051-3/+4
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl--push-clause-loop-body): Use `macroexp-let2' (Bug#39428).
* | Add ':extend t' to mm-uu-extract faceTassilo Horn2020-02-051-4/+8
| | | | | | | | | | * lisp/gnus/mm-uu.el (mm-uu-extract): Add ':extend t' to mm-uu-extract face.
* | Silence byte-compiler warningStefan Kangas2020-02-051-2/+1
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header): Silence byte-compiler warning about "Unused lexical variable".
* | Add new filter commands to Package Menu (Bug#38424)Stefan Kangas2020-02-051-44/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter-by-version) (package-menu-filter-by-status, package-menu-filter-by-archive): New filter commands. (package-menu--filter-by): New helper function. (package-menu-filter-by-keyword, package-menu-filter-by-name): Use the above helper function. (package-menu-mode-menu): (package-menu-mode-map): Update menu to include new filter commands. * doc/emacs/package.texi (Package Menu): Document the new commands and re-arrange the sort order of commands to be closer to the one in describe-major-mode. * etc/NEWS: Announce the new commands. * lisp/emacs-lisp/package.el (package-menu--display): New function extracted from.... (package-menu--generate): ...here. * test/lisp/emacs-lisp/package-tests.el (with-package-menu-test): New macro. (package-test-update-listing, package-test-list-filter-by-name) (package-test-list-filter-clear): Use above macro. (package-test-list-filter-by-archive) (package-test-list-filter-by-keyword) (package-test-list-filter-by-status) (package-test-list-filter-by-version-=) (package-test-list-filter-by-version-<) (package-test-list-filter-by-version->): New tests. (package-test-filter-by-version): New helper function.
* | Handle problem with *BSD libedit in TrampMichael Albinus2020-02-051-2/+19
| | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-extra-args): Add "-noediting" as bash arg. (tramp-open-shell): Provide proper "~/.editrc" if needed. (Bug#39399)
* | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info): Fix error.Michael Albinus2020-02-051-4/+5
| |
* | * lisp/gnus/gnus-sum.el (gnus-read-move-group-name): Use user-errorStefan Monnier2020-02-041-1/+1
| |
* | * lisp/emacs-lisp/map.el: Add keyword-only pattern abbreviationAdam Porter2020-02-041-6/+11
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el: Update version to 2.1. ((pcase-defmacro map)): Update docstring. (map--make-pcase-bindings): Match keyword pattern. * test/lisp/emacs-lisp/map-tests.el (test-map-plist-pcase): Add test.
* | Silence byte-compiler warningStefan Kangas2020-02-041-0/+1
| | | | | | | | | | * lisp/dired.el (grep-read-files-function): Add defvar to silence byte-compiler warning.
* | Provide default for describe-keymap promptStefan Kangas2020-02-041-6/+44
| | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (describe-keymap): Provide a reasonable default for prompt. (Bug#30660) (help-fns-find-keymap-name) (help-fns--most-relevant-active-keymap): New functions. * test/lisp/help-fns-tests.el (help-fns-test-find-keymap-name): New test.