summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/faces.el (read-face-name-sample-text): Add defconst (bug#53960).Juri Linkov2022-02-131-1/+6
| | | | (read-face-name): Use it instead of hard-coded string.
* Add a new macro `setopt'Lars Ingebrigtsen2022-02-131-0/+23
| | | | | | | | | | | | | | | * doc/emacs/custom.texi (Examining): Mention it. (Init Syntax): Ditto. * doc/emacs/windows.texi (Window Choice): Adjust example. * doc/lispref/windows.texi (Choosing Window Options): Adjust examples. * doc/lispref/variables.texi (Setting Variables): Document setopt. * doc/misc/eudc.texi (Emacs-only Configuration): Adjust examples. * lisp/cus-edit.el (setopt): New macro.
* ; * lisp/simple.el (count-words): Doc fix.Eli Zaretskii2022-02-131-3/+3
|
* Remove the 'C-k' binding in ido-modeLars Ingebrigtsen2022-02-131-1/+0
| | | | | * lisp/ido.el (ido-file-completion-map): Remove the `C-k' binding, because it's too dangerous and probably not very useful (bug#44556).
* Make `C-u M-x count-words' also give totalsLars Ingebrigtsen2022-02-131-26/+39
| | | | | | | * lisp/simple.el (count-words-region): Adjust callers. (count-words): If given a prefix, give totals (bug#9959). (count-words--buffer-format, count-words--format): Rename and don't message, but return the string.
* Fix mouse clicking in read-face-nameLars Ingebrigtsen2022-02-131-4/+3
| | | | | * lisp/faces.el (read-face-name): Put the data in the right position so that clicking on completions work (bug#53960).
* Fix ietf-drums-remove-whitespace unmatched " and (Bob Rogers2022-02-131-10/+20
| | | | | | | | | | | * lisp/mail/ietf-drums.el: + (ietf-drums-skip-comment): New helper function. + (ietf-drums-remove-comments): Use ietf-drums-skip-comment. + (ietf-drums-remove-whitespace): Handle unterminated quotes and comments, as ietf-drums-remove-comments already does. * test/lisp/mail/ietf-drums-tests.el: + Test unterminated quote and comment for ietf-drums-remove-whitespace and ietf-drums-remove-comments (bug#53965).
* Optionally allow point to enter composed character sequencesEli Zaretskii2022-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | This changeset is based on code originally posted by Kenichi Handa <handa@gnu.org> as part of discussing bug#20140, with a few adjustments and changes, mainly to support R2L text and provide a user option to control the feature. * src/xdisp.c (compute_stop_pos, next_element_from_buffer) (composition_reseat_it): Don't allow auto-composing characters past point when 'composition-break-at-point' is non-nil. (syms_of_xdisp) <composition-break-at-point>: New boolean variable. (redisplay_internal, redisplay_window): Disable "just move the cursor" optimizations when 'composition-break-at-point' is non-nil. * src/keyboard.c (command_loop_1): Force redisplay when 'composition-break-at-point' is non-nil. * lisp/cus-start.el (standard): Provide customization form for 'composition-break-at-point'. * etc/NEWS: Announce the new feature.
* Improve interaction between track-mouse and edebugLars Ingebrigtsen2022-02-121-0/+7
| | | | | * lisp/emacs-lisp/edebug.el (edebug--display-1): Work around `track-mouse' oddity (bug#675).
* Fix off-by-one file size formatting in ls-lispLars Ingebrigtsen2022-02-121-2/+2
| | | | | | * lisp/ls-lisp.el (ls-lisp-format, ls-lisp-format-file-size): The human-readable file sizes can be 7 characters wide (e.g., "1016.1k") (bug#53937).
* Cross-link message-expand-name-standard-ui-relevant doc stringsLars Ingebrigtsen2022-02-121-1/+5
| | | | | * lisp/gnus/message.el (message-expand-name-standard-ui): Mention the other relevant variables in the doc string (bug#50667).
* Tolerate tilde in remote file names when neededMichael Albinus2022-02-114-4/+52
| | | | | | | | | | | | * lisp/net/tramp.el (tramp-tolerate-tilde): New defvar. (tramp-handle-expand-file-name): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Respect it. * lisp/net/tramp-adb.el (tramp-adb-tolerate-tilde): * lisp/net/tramp-sshfs.el (tramp-sshfs-tolerate-tilde): New defuns. Advice `shell-mode' with them. (tramp-methods) <sshfs>: Add "-t -t" to `tramp-login-args'.
* Allow searching of nnselect (search) groupsAndrew G Cohen2022-02-113-6/+42
| | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-make-search-group): (gnus-group-read-ephemeral-search-group): Ensure the server is correctly identified even for nnselect groups. * lisp/gnus/gnus-search.el (gnus-search-nnselect): New function. (gnus-search-default-engines): Use it. (gnus-search-make-spec): Queries from nnselect should always be raw. * lisp/gnus/nnselect.el (gnus-search): Silence the byte-compiler.
* * lisp/mouse.el (context-menu-map): Select only unselected window (bug#53910)Juri Linkov2022-02-101-1/+3
|
* * lisp/tab-line.el (tab-line-format): Use mode-line-window-selected-p.Juri Linkov2022-02-101-1/+1
| | | | | | Recently 'mode-line-window-selected-p' was added to 'tab-line-tab-name-format-default'. Now add the same to another place that handles the face 'tab-line-tab-current' (bug#53629).
* Autoload package-installed-pCorwin Brust2022-02-101-0/+1
| | | | | | | * lisp/emacs-lisp/package.el (package-installed-p): Add autoload cookie. (Bug#53885) Copyright-paperwork-exempt: yes
* Merge from origin/emacs-28Eli Zaretskii2022-02-101-0/+10
|\ | | | | | | | | # Conflicts: # lisp/startup.el
| * ; * lisp/startup.el (normal-top-level): Fix byte-compilation warning.Eli Zaretskii2022-02-101-1/+5
| |
| * * lisp/startup.el (normal-top-level): Disable native-comp if not availableAndrea Corallo2022-02-101-0/+7
| |
* | Note current buffer and restore it in c-force-redisplay.Alan Mackenzie2022-02-101-4/+6
| | | | | | | | | | | | | | | | | | This fixes bug #52709. * lisp/progmodes/cc-fonts.el (c-force-redisplay): New parameter BUFFER. Set current buffer to this before fontifying. (c-fontify-new-found-type): Give the current buffer as argument to run-with-timer.
* | Restore command-line--load-script messagingLars Ingebrigtsen2022-02-101-1/+1
| | | | | | | | | | * lisp/startup.el (command-line--load-script): Restore previous non-messaging behaviour.
* | Improve handling of file modes in TrampMichael Albinus2022-02-103-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-get-remote-uid) (tramp-gvfs-handle-get-remote-gid): Do not assume that the default location is owned be the remote uid/gid. (tramp-gvfs-handle-file-executable-p): * lisp/net/tramp-sh.el (tramp-sh-handle-file-executable-p): Check also for setuid/setgid bit. * lisp/net/tramp.el (tramp-check-cached-permissions): Check also for ?s access type. Check whether remote uid/gid are unknown.
* | Don't signal a backtrace on empty --script filesLars Ingebrigtsen2022-02-103-10/+41
| | | | | | | | | | | | | | | | | | | | * lisp/startup.el (command-line--load-script): New function that avoids erroring out if it turns out there's no forms in the buffer (bug#4616). * lisp/subr.el (delete-line): New utility function. * lisp/international/mule.el (load-with-code-conversion): Accept an eval function.
* | Make comint-word actually check comint-file-name-quote-listDima Kogan2022-02-101-2/+2
| | | | | | | | | | | | | | * lisp/comint.el (comint-word): We were checking for comint-file-name-quote-list existing, but not actually comparing to the characters in that list. This patch actually checks the contents of comint-file-name-quote-list (bug#53911).
* | Allow customization of the user's eln-cache directoryEli Zaretskii2022-02-101-71/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/startup.el (startup-redirect-eln-cache) (startup--update-eln-cache): New functions. (startup--original-eln-load-path): New defvar. (normal-top-level): Record the original value of 'native-comp-eln-load-path' in 'startup--original-eln-load-path'. Do not amend 'native-comp-eln-load-path' here, as that could overwrite user customizations. (command-line): Amend 'native-comp-eln-load-path' after loading the early-init file, and then again after loading the user init file. (Bug#53891) * etc/NEWS: Announce 'startup-redirect-eln-cache'.
* | Merge from origin/emacs-28Stefan Kangas2022-02-102-14/+16
|\| | | | | | | | | 69e82968d7 Fix integer arithmetic miss-compilation (bug#53451) 31af9bca99 Mark flymake as compatible with emacs-26.1
| * Fix integer arithmetic miss-compilation (bug#53451)Andrea Corallo2022-02-091-12/+14
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-range-for-arithm): When one of the two sources is negated revert to set dst as number. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add test to verify this is effective.
| * Mark flymake as compatible with emacs-26.1Robert Pluim2022-02-081-2/+2
| | | | | | | | | | * lisp/progmodes/flymake.el: Bump package version and set emacs version in Package-Requires to 26.1 (Bug#53853).
* | ; show-paren: improve previous commit bb69361cbeTassilo Horn2022-02-091-1/+2
| | | | | | | | | | | | Update show-paren--last-pos also in the "not at paren position" case. Otherwise, we don't get the context info when moving point from a paren position to a non-paren position and back again.
* | Tilde expansion is not possible for Tramp sshfs methodMichael Albinus2022-02-091-6/+6
| | | | | | | | | | * lisp/net/tramp.el (tramp-handle-expand-file-name): Tilde expansion is not possible. (Bug#53847)
* | show-paren: Don't show context again after C-g-ing it away.Tassilo Horn2022-02-091-15/+23
| | | | | | | | | | * lisp/paren.el (show-paren--last-pos): New variable. (show-paren-function): Don't show context again after C-g-ing it away.
* | Improve the set-fill-column promptAntoine Levitt2022-02-091-1/+2
| | | | | | | | * lisp/simple.el (set-fill-column): Improve the prompt (bug#53874).
* | Make calendar-exit actually respect the KILL parameterLars Ingebrigtsen2022-02-091-2/+9
| | | | | | | | | | * lisp/calendar/calendar.el (calendar-exit): Really kill off all the buffers (if requested) (bug#53870).
* | Merge from origin/emacs-28Stefan Kangas2022-02-091-2/+2
|\| | | | | | | 82e74e4559 flymake: Ensure compatibility with older Emacsen
| * flymake: Ensure compatibility with older EmacsenBrian Leung2022-02-081-2/+2
| | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake--log-1): Use replace-regexp-in-string instead of Emacs 28's string-replace (bug#53853).
| * Don't remove dummy.group from gnus-newsrc-alist on Gnus saveEric Abrahamsen2022-02-071-16/+13
| | | | | | | | | | | | | | | | bug#53352 * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): This function was removing dummy.group from the global value of `gnus-newsrc-alist' on save; we only wanted to remove it temporarily.
* | Improve selection of fonts available from `mouse-set-font'Po Lu2022-02-091-13/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | People get confused on a build without font dialogs (such as a Lucid build) if `menu-set-font' and `mouse-set-font' don't present them a list of the fonts actually available on their system. * lisp/mouse.el (mouse-generate-font-name-for-menu) (mouse-generate-font-menu): New functions. (mouse-select-font): Allow the user to select from all fonts available on the system. (mouse-set-font): Use `mouse-select-font' to display font menu.
* | Allow showing show-paren context in an overlayTassilo Horn2022-02-082-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/paren.el (show-paren-context-when-offscreen): Add new possibility `overlay'. (show-paren--context-overlay): New defvar. (show-paren--delete-context-overlay): New function. (show-paren--show-context-in-overlay): New function. (show-paren-function): Handle the new `overlay' case. * lisp/emacs-lisp/eldoc.el (eldoc-display-message-no-interference-p): There's no interference if `show-paren-context-when-offscreen' is overlay or child-frame.
* | * lisp/replace.el (perform-replace): Allow using isearch in recursive-edit.Juri Linkov2022-02-081-1/+7
| | | | | | | | | | Let-bind isearch-filter-predicate to the default value before calling recursive-edit to allow using isearch in a recursive edit (bug#53758).
* | Improve make-frame-on-display initial valuesRobert Pluim2022-02-082-3/+5
| | | | | | | | | | | | | | | | | | * doc/emacs/frames.texi (Multiple Displays): Add index entry for 'display server'. * lisp/frame.el (make-frame-on-display): Specify sensible initial values when reading display name. * lisp/menu-bar.el (menu-bar-file-menu): Use 'display server' rather than 'display' to avoid monitor<->display confusion.
* | Improve thing-at-point-url-at-point docstringRobert Pluim2022-02-081-2/+2
| | | | | | | | | | * lisp/thingatpt.el (thing-at-point-url-at-point): Correct description of BOUNDS argument.
* | Respect customization nature of `connection-local-*' user optionsMichael Albinus2022-02-081-2/+6
| | | | | | | | | | | | * lisp/files-x.el (connection-local-set-profiles) (connection-local-set-profile-variables): Set user options via `customize-set-variable'.
* | Fix processes on remote default-directory with special charactersMichael Albinus2022-02-081-1/+3
| | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-make-process): Quote `localname'. * test/lisp/net/tramp-tests.el (tramp--test-check-files): Test also remote `default-directory' for processes. (Bug#53846)
* | Extend find-lisp-object-file-nameLars Ingebrigtsen2022-02-081-5/+14
| | | | | | | | | | * lisp/help-fns.el (find-lisp-object-file-name): Add optional parameter to always look in the DOC file (bug#17685).
* | Fix some standard-output/help-buffer confusion in describe-function-1Lars Ingebrigtsen2022-02-081-2/+2
| | | | | | | | | | * lisp/help-fns.el (describe-function-1): We're outputting to standard-output, so deconfuse slightly.
* | Fix describe-function-1 test failure from previous changeLars Ingebrigtsen2022-02-081-8/+9
| | | | | | | | | | * lisp/help-fns.el (describe-function-1): Fix test failure from previous patch.
* | Minor fix to how describe-function-1 displays symbols with spacesLars Ingebrigtsen2022-02-081-3/+8
| | | | | | | | | | * lisp/help-fns.el (describe-function-1): Ensure that symbols like `bar\ ' aren't rendered incorrectly (bug#23130).
* | Improve handling of frame-inherited-parametersmartin rudalics2022-02-081-9/+6
| | | | | | | | | | * lisp/frame.el (make-frame): Improve handling of frame-inherited-parameters (bug#24651).
* | Make exit from text-scale-adjust less confusingLars Ingebrigtsen2022-02-081-1/+5
| | | | | | | | | | * lisp/face-remap.el (text-scale-adjust): Clear the prompt after exiting (bug#25978).
* | nnselect.el: Speed up group info updatingAndrew G Cohen2022-02-081-53/+47
| | | | | | | | | | | | * lisp/gnus/nnselect.el (nnselect-request-update-info): Use a hash and other tricks to speed things up. (nnselect-request-group-scan): Make sure the artlist is uncompressed.