summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* perl-mode: Recognize "when"/"given" keywordsStefan Kangas2021-12-271-2/+4
| | | | | | | | * lisp/progmodes/perl-mode.el (perl-font-lock-keywords-2): Add keywords "when", "given" and "default". (Bug#10560) (perl--syntax-exp-intro-keywords): Add "printf". * test/manual/indent/perl.perl: Add test for "when"/"given".
* Store sign separately when accumulating precision scroll momentumPo Lu2021-12-271-4/+4
| | | | | | * lisp/pixel-scroll.el (pixel-scroll-kinetic-state): Return vector in new format. (pixel-scroll-accumulate-velocity): Use new sign field.
* Prefer the defcustom :risky property in gnusStefan Kangas2021-12-264-12/+12
| | | | | | | | | | | * lisp/gnus/gnus-art.el (gnus-button-alist) (gnus-header-button-alist): * lisp/gnus/gnus-group.el (gnus-group-highlight) (gnus-group-icon-list): * lisp/gnus/gnus-sum.el (gnus-summary-highlight): * lisp/gnus/mm-util.el (mm-charset-eval-alist): Prefer the defcustom :risky property to setting 'risky-local-variable manually.
* ; * lisp/subr.el (define-keymap): Fix typos.Stefan Kangas2021-12-261-2/+2
|
* Rewrite disabled-command to use read-multiple-choiceStefan Kangas2021-12-261-63/+58
| | | | | * lisp/novice.el (disabled-command-function): Rewrite to use read-multiple-choice. Use command substitutions.
* read-multiple-choice: Display "SPC" instead of " "Stefan Kangas2021-12-261-11/+13
| | | | | | | | | | * lisp/emacs-lisp/rmc.el (rmc--add-key-description): Improve display of the keys TAB, RET, SPC, DEL, and ESC. This fixes a bug where " " was highlighted in the description in a confusing way. * test/lisp/emacs-lisp/rmc-tests.el (test-rmc--add-key-description) (test-rmc--add-key-description/with-attributes): Update tests for the above change.
* read-multiple-choice: Add optional argument show-helpStefan Kangas2021-12-261-54/+68
| | | | | | | | * lisp/emacs-lisp/rmc.el (rmc--show-help): Factor out new function from read-multiple-choice. (read-multiple-choice): Add new optional argument show-help. * doc/lispref/commands.texi (Reading One Event): Document above new optional argument.
* read-multiple-choice: Add face when key not in name stringStefan Kangas2021-12-261-3/+10
| | | | | | | | * lisp/emacs-lisp/rmc.el (rmc--add-key-description): Add face property also when key is not in the name string. * test/lisp/emacs-lisp/rmc-tests.el (test-rmc--add-key-description/with-attributes) (test-rmc--add-key-description/non-graphical-display): Update tests.
* Factor out new function rmc--add-key-descriptionStefan Kangas2021-12-261-32/+30
| | | | | | | | | | * lisp/emacs-lisp/rmc.el (rmc--add-key-description): Factor out new function from... (read-multiple-choice): ...here. * test/lisp/emacs-lisp/rmc-tests.el (test-rmc--add-key-description) (test-rmc--add-key-description/with-attributes) (test-rmc--add-key-description/non-graphical-display): New tests.
* Fix some issues with a recent changePo Lu2021-12-261-1/+12
| | | | | | | | | * doc/lispref/commands.texi (Misc Events): Improve documentation on pinch events. * etc/NEWS: Update documentation status for some recent changes and describe pinch events in more detail. * lisp/face-remap.el (text-scale-pinch): Prevent pinch events from being received in too quick succession.
* ; Fix last change: use 'utf-8-emacs-unix' encoding.Eli Zaretskii2021-12-261-3/+3
|
* Minor improvements in multisession.elEli Zaretskii2021-12-261-6/+9
| | | | | | | * lisp/emacs-lisp/multisession.el (multisession--read-file-value): Handle 'file-missing' error when reading values from files. (multisession--backend-values, multisession--backend-set-value) (multisession--read-file-value): Use 'utf-8-emacs' encoding.
* Add support for pinch gestures to the XI2 buildPo Lu2021-12-261-0/+24
| | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Misc Events): Document new event type `pinch'. * etc/NEWS: Announce new event `pinch'. * etc/PROBLEMS: Document problems with mismatched libXi versions. * lisp/face-remap.el (text-scale--pinch-start-scale): New variable. (text-scale-pinch): New command. * src/keyboard.c (make_lispy_event): Handle PINCH_EVENTs. (syms_of_keyboard): New symbol `pinch'. * src/termhooks.h (enum event_kind): New enum `PINCH_EVENT'. * src/xfns.c (setup_xi_event_mask): Add pinch events to event mask if available. * src/xterm.c (handle_one_xevent): Handle pinch events.
* Allow interpolating scrolls via the Page Down and Page Up keysPo Lu2021-12-261-24/+47
| | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-mode-map): Define new commands. (pixel-scroll-precision-interpolate-page): New user option. (pixel-scroll-interpolate-down): (pixel-scroll-interpolate-up): New functions.
* Make read-multiple-choice-face inherit help-key-bindingStefan Kangas2021-12-261-1/+1
| | | | | * lisp/faces.el (read-multiple-choice-face): Inherit help-key-binding in addition to underline.
* Use the standard `quit-window' binding from `special-mode' for "q"Sam Steingold2021-12-251-5/+0
| | | | * epa.el (epa-info-mode-map): Remove `defvar'.
* * lisp/net/webjump.el: Add TODO section. (Bug#14624)Stefan Kangas2021-12-251-0/+7
|
* Use defvar-keymap in ido.elStefan Kangas2021-12-251-79/+71
| | | | | | * lisp/ido.el (ido-common-completion-map) (ido-file-dir-completion-map, ido-file-completion-map) (ido-buffer-completion-map): Use defvar-keymap.
* * lisp/url/url-handlers.el (directory-files): Adapt ARGS list.Michael Albinus2021-12-251-1/+2
|
* * lisp/net/browse-url.el (browse-url-of-file): Improve browsing remote files.Michael Albinus2021-12-251-2/+4
|
* * lisp/simple.el (completion-auto-select): Fix docstring.Michael Albinus2021-12-251-1/+1
|
* Merge from origin/emacs-28Stefan Kangas2021-12-251-8/+9
|\ | | | | | | c09ad0cabd Fix the bug with duplicate entries in xref output
| * Fix the bug with duplicate entries in xref outputDmitry Gutov2021-12-241-8/+9
| | | | | | | | | | * lisp/progmodes/etags.el (xref-backend-definitions): Make sure to save the changed intermediate value of the list (bug#52734).
* | Move mouse key bindings to gametree-mode-mapStefan Kangas2021-12-251-26/+33
| | | | | | | | | | * lisp/play/gametree.el (gametree-mode-map): Move mouse key bindings here.
* | Simplify command remapping in play/blackbox.elStefan Kangas2021-12-241-19/+15
| | | | | | | | | | * lisp/play/blackbox.el (blackbox-redefine-key): Make obsolete. (blackbox-mode-map): Simplify.
* | ; * lisp/gnus/mm-url.el: Delete spurious defvars.Stefan Kangas2021-12-241-2/+0
| |
* | Prefer the defcustom :risky property in eshellStefan Kangas2021-12-246-19/+12
| | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-banner.el (eshell-banner-message): * lisp/eshell/em-hist.el (eshell-input-filter): * lisp/eshell/em-pred.el (eshell-predicate-alist) (eshell-modifier-alist): * lisp/eshell/esh-cmd.el (eshell-subcommand-bindings): * lisp/eshell/esh-io.el (eshell-virtual-targets): * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Prefer defcustom :risky property to setting 'risky-local-variable manually.
* | * lisp/eshell/em-hist.el (eshell-hist-match-partial): Minor doc fix.Stefan Kangas2021-12-241-2/+2
| |
* | Use defvar-keymap in eshellStefan Kangas2021-12-249-94/+74
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-cmpl.el (eshell-cmpl-mode-map): * lisp/eshell/em-hist.el (eshell-isearch-map, eshell-hist-mode-map): * lisp/eshell/em-pred.el (eshell-pred-mode-map): * lisp/eshell/em-prompt.el (eshell-prompt-mode-map): * lisp/eshell/em-rebind.el (eshell-rebind-mode-map): * lisp/eshell/esh-arg.el (eshell-arg-mode-map): * lisp/eshell/esh-mode.el (eshell-mode-map, eshell-command-map): * lisp/eshell/esh-proc.el (eshell-proc-mode-map): * lisp/eshell/esh-var.el (eshell-var-mode-map): Use defvar-keymap.
* | Respect changes in eshell-hist-match-partialStefan Kangas2021-12-241-13/+23
| | | | | | | | | | | | | | | | * lisp/eshell/em-hist.el (eshell-hist--update-keymap): New function. (eshell-hist-match-partial): Add :set property with above new function. (eshell-hist-mode-map): Update for eshell-hist-match-partial using eshell-hist--update-keymap.
* | verify signed content in smime encrypted and signed messageSebastian Fieber2021-12-243-70/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-art.el (gnus-mime-display-part): Parse pkcs7 parts (bug#40397). (gnus-mime-security-verify-or-decrypt): (gnus-insert-mime-security-button): Handle these parts. * lisp/gnus/mm-decode.el (mm-verify-function-alist): Add pkcs7 functions. (mm-decrypt-function-alist): Handle them. (mm-possibly-verify-or-decrypt): Ditto. * lisp/gnus/mm-view.el (mm-view-pkcs7-decrypt): Handle pkcs7. Changes: - structure the result of mm-dissect-buffer of application/pkcs7-mime like a multipart mail so there is no loosing of information of verification and decryption results which can now be displayed by gnus-mime-display-security - adjust gnus-mime-display-part to handle application/pkcs7-mime like multipart/encrypted or multipart/signed - add dummy entries to mm-verify-function-alist and mm-decrypt-function-alist so gnus-mime-display-security correctly displays "S/MIME" and not "unknown protocol" - don't just check for multipart/signed in gnus-insert-mime-security-button but also for the pkcs7-mime mimetypes to print "Encrypted" or "Signed" accordingly in the security button - adjust mm-possibly-verify-or-decrypt to check for smime-type to ask wether to verify or decrypt the part and not to always ask to decrypt - adjust mm-view-pkcs7-decrypt and verify to call mm-sec-status so success information can be displayed by gnus-mime-display-security - adjust gnus-mime-security-verify-or-decrypt to handle pkcs7-mime right with the done changes
* | Simplify whitespace stripping in shr-expand-urlLars Ingebrigtsen2021-12-241-5/+3
| | | | | | | | * lisp/net/shr.el (shr-expand-url): Simplify whitespace stripping.
* | Make precision scrolling work on margins and fringesPo Lu2021-12-241-0/+12
| | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-mode-map): Add missing key definitions.
* | Merge from origin/emacs-28Stefan Kangas2021-12-242-3/+17
|\| | | | | | | | | 04be23f19f Improve Xref documentation edb1d491d9 * lisp/net/shr.el (shr-expand-url): Also strip trailing wh...
| * Improve Xref documentationDmitry Gutov2021-12-241-2/+14
| | | | | | | | | | * lisp/progmodes/xref.el (xref-item): Add docstring for 'summary'. Fix typo in the header Commentary.
| * * lisp/net/shr.el (shr-expand-url): Also strip trailingAndreas Schwab2021-12-231-1/+3
| | | | | | | | whitespace.
* | Make precision scrolling also work on various barsPo Lu2021-12-231-0/+9
| | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-mode-map): Define keys for various kinds of bars.
* | Fix precision scrolling down for multi-line display stringsPo Lu2021-12-231-0/+5
| | | | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page): Make sure Y delta is appropriate before deciding on next-pos.
* | Set start to desired start when pixel scrolling to end of bufferPo Lu2021-12-231-0/+1
| | | | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page): Set start to desired start when point cannot be moved further down.
* | Allow window-text-pixel-size to measure pixels around a positionPo Lu2021-12-231-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Size of Displayed Text): Announce new meaning of `from'. * etc/NEWS: Announce changes. * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up-page): Use new feature. * src/xdisp.c (window_text_pixel_size): Understand a special format of `from' that specifies the amount of pixels above or below a position. (Fwindow_text_pixel_size): Update doc string.
* | Revert back to using monospaced fonts in the mode lineLars Ingebrigtsen2021-12-231-2/+2
| | | | | | | | | | | | | | * lisp/faces.el (mode-line-active, mode-line-inactive): Revert back to using monospaced fonts on the mode line (for now). The main remaining usability problem is clicking on the very small "-" characters in "U:--".
* | ; Fix documentation of a recently-installed changeEli Zaretskii2021-12-231-11/+12
| | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-server-alist) (message-update-smtp-method-header): Doc string fixes. * doc/misc/message.texi (Sending Variables): Fix wording and markup. * etc/NEWS: Fix the wording of the 'message-server-alist' entry.
* | Merge from origin/emacs-28Stefan Kangas2021-12-232-23/+20
|\| | | | | | | | | | | | | | | | | 29fffbdd87 Revert field-related thingatpt changes 9bcb732686 * lisp/window.el (quit-restore-window): Select previously ... b7d31d6192 Revert "Remove Motif support" # Conflicts: # etc/NEWS
| * Revert field-related thingatpt changesLars Ingebrigtsen2021-12-221-22/+16
| | | | | | | | | | | | This reverts 7db376e560448e61485ba054def8c82b21f33d6a, which led to severe performance regressions when being run in large buffers with no fields (bug#52593)
| * * lisp/window.el (quit-restore-window): Select previously selected window.Juri Linkov2021-12-211-1/+4
| | | | | | | | | | | | After deleting the dedicated window, such as a window with *Completions* buffer, select the previously selected window, like most of other 'cond' branches do in this function (bug#52491).
* | Fix wrong-type-argumentPhilip Kaludercic2021-12-231-1/+1
| | | | | | | | | | * message.el (message-update-smtp-method-header): Only Use address part of mail-extract-address-component.
* | Allow automatic X-Message-SMTP-Method header insertionPhilip Kaludercic2021-12-231-0/+38
| | | | | | | | | | | | | | | | | | * message.el (message-server-alist): Add user option (message-update-smtp-method-header): Add function (message-send): Call message-update-smtp-method-header * doc/misc/message.texi (Sending Variables): Document message-server-alist * etc/NEWS: Add news entry
* | Use defvar-keymap in minibuffer.elStefan Kangas2021-12-221-62/+51
| | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion-in-region-mode-map) (minibuffer-local-completion-map) (minibuffer-local-must-match-map) (minibuffer-local-filename-completion-map) (minibuffer-local-ns-map, minibuffer-inactive-mode-map): Use defvar-keymap.
* | Add native HEIC support on macOS (bug#51381)Alan Third2021-12-221-3/+4
| | | | | | | | | | | | | | | | | | * lisp/image.el (image-type-header-regexps): (image-type-file-name-regexps): (image-type-auto-detectable): Add auto-detect code for heic. * src/image.c (syms_of_image): Add heic as an image type under NS. * src/nsimage.m (ns_can_use_native_image_api): Add heic to list of possible image types in the native image support lookup.
* | Help outline-minor-mode avoid some false matchesJonas Bernoulli2021-12-221-2/+2
| | | | | | | | | | | | * lisp/international/emoji.el (emoji--generate-file): Help 'outline-minor-mode' avoid false matches by quoting certain characters when they appear at bol in a multi-line string.