aboutsummaryrefslogtreecommitdiffstats
path: root/etc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Document additions of cl-with-gensyms and cl-once-onlySean Whitton2022-04-131-0/+4
| | | | | | | | * NEWS: Document additions of cl-with-gensyms and cl-once-only. * doc/misc/cl.texi (Macro-Writing Macros): New section. (Creating Symbols): Add to the concept index under the name "gensym". (Obsolete Setf Customization): Use cl-once-only rather than macroexp-let2, and fix a quotation bug in one example.
* Merge from origin/emacs-28Eli Zaretskii2022-04-132-13/+16
|\
| * Update logs and HISTORY for Emacs 28.1emacs-28.1Eli Zaretskii2022-04-032-11/+13
| | | | | | | | | | | | * ChangeLog.3: * etc/HISTORY: * etc/AUTHORS: Update for Emacs 28.1 release.
* | Merge from origin/emacs-28Eli Zaretskii2022-04-131-691/+0
|\ \ | |/ | | | | | | | | | | # Conflicts: # etc/NEWS # lisp/desktop.el # lisp/dired.el
| * ; * etc/NEWS: Remove temporary notes and marks.Eli Zaretskii2022-04-031-691/+0
| |
| * Emacs pretest 28.0.92emacs-28.0.92Eli Zaretskii2022-03-121-132/+138
| | | | | | | | | | | | | | | | | | | | | | | | * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 28.0.92. * etc/AUTHORS: * lisp/ldefs-boot.el: Update for pretest 28.0.92. * ChangeLog.3: Regenerate.
* | Make list-times not include zero elementsLars Ingebrigtsen2022-04-131-0/+5
| | | | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Parsing): Mention %x. * lisp/calendar/time-date.el (format-seconds): Accept a new %x spec that removes trailing zeros (bug#54904). * lisp/emacs-lisp/timer-list.el (list-timers): Don't display trailing zero bits.
* | ; * etc/NEWS: Mention that PGTK build needs GTK >= 3.20.Eli Zaretskii2022-04-131-9/+10
| |
* | Add NEWS entry for `C-h m' changeLars Ingebrigtsen2022-04-131-0/+5
| |
* | Mention animated WebP imagesLars Ingebrigtsen2022-04-121-2/+3
| |
* | * lisp/emacs-lisp/macroexp.el (macroexp-let2*): Allow common shorthandStefan Monnier2022-04-111-0/+3
| |
* | * lisp/minibuffer.el (minibuffer-completion-auto-choose): New defcustom.Juri Linkov2022-04-111-1/+2
| | | | | | | | | | | | | | | | | | (minibuffer-choose-previous-completion) (minibuffer-choose-next-completion): Remove commands. (minibuffer-local-completion-map): Remove keybindings of minibuffer-choose-next-completion and minibuffer-choose-previous-completion. Use them for minibuffer-next-completion and minibuffer-previous-completion. * lisp/simple.el (minibuffer-local-shell-command-map): Idem.
* | ; etc/NEWS: Fix grammer.Juri Linkov2022-04-111-1/+1
| |
* | Rewrite the minibuffer lazy highlight featureAugusto Stoffel2022-04-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new API was discussed in bug#53126. It's more robust and easier to use in complex cases like that of 'query-replace'. * etc/NEWS: Amend the feature announcement * lisp/isearch.el (isearch-edit-string): Use new API. (minibuffer-lazy-highlight-transform, minibuffer-lazy-highlight--overlay, minibuffer-lazy-highlight--count, minibuffer-lazy-highlight--after-change, minibuffer-lazy-highlight--exit) Remove helper functions, which are now kept together with the lazy highlight configuration variables within a closure. (minibuffer-lazy-highlight-setup): This function now takes the lazy highlighting configuration variables as argument, and returns a closure that is intended to run as part of the minibuffer setup.
* | Add code for determining the type of an input devicePo Lu2022-04-081-3/+4
| | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Command Loop Info): * etc/NEWS: Update documentation and announce `device-class'. * lisp/frame.el (x-device-class): (device-class): * lisp/term/x-win.el (x-device-class): New functions.
* | OClosure: New function `function-documentation`Stefan Monnier2022-04-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As mentioned in the original OClosure commit, OClosures (ab)use the bytecode's docstring slot to hold the OClosure's type. This currently prevents OClosures from having their own docstring. Introduce a new generic function `function-documentation` to fetch the docstring of a function, which can then be implemented in various different ways depending on the OClosure's type. * lisp/simple.el (function-documentation): New generic function. (bad-package-check): Strength-reduce `eval` to `symbol-value`. * src/doc.c (Fdocumentation): Use it. * lisp/emacs-lisp/oclosure.el (oclosure--accessor-docstring): New function. * test/lisp/emacs-lisp/oclosure-tests.el (oclosure-test): Add test for accessor's docstrings.
* | Expose the name of an event's input device to LispPo Lu2022-04-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This name can be used to identify the device for special treatment, i.e. only interpolating scrolls coming from mice and not touchpads inside pixel-scroll-precision-mode. * doc/lispref/commands.texi (Command Loop Info): Document new variable `last-event-device'. * etc/NEWS: Announce new variable `last-event-device'. * src/frame.h (struct frame): New field `last_mouse_device'. * src/keyboard.c (read_char): Clear last-event-device. (kbd_buffer_get_event): Set last-event-device to the event's recorded device. (init_keyboard): Clear last-event-device. (syms_of_keyboard): New defvar `last-event-device'. * src/termhooks.h (struct input_event): New field `device'. (EVENT_INIT): Set it to the special value `Qt' by default. * src/xterm.c (x_init_master_valuators): Record the device's name. (x_dnd_begin_drag_and_drop): Only preserve last event device if the mouse ended up in the source frame. (x_note_mouse_movement): New argument `source'. (handle_one_xevent): Set input event sources whenever appropriate. (mark_xterm): Mark device names. * src/xterm.h (struct xi_device_t): New field `name'.
* | Add a mu backend for gnus-searchJai Flack2022-04-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus-search.el (gnus-search-mu-program): New defcustom (gnus-search-mu-switches): New defcustom (gnus-search-mu-remove-prefix): New defcustom (gnus-search-mu-config-directory): New defcustom (gnus-search-mu-raw-queries-p): New defcustom (gnus-search-mu): New subclass of gnus-search-indexed (gnus-search-transform-expression): New method (gnus-search-mu-handle-date): New function (gnus-search-mu-handle-flag): New function (gnus-search-indexed-extract): New method (gnus-search-indexed-search-command): New method (bug#54662).
* | ; * etc/PROBLEMS: Explain how to get dropping text on xterm to work.Po Lu2022-04-071-0/+15
| |
* | New commands for navigating completions from the minibuffer.Juri Linkov2022-04-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (minibuffer-local-shell-command-map): * lisp/minibuffer.el (minibuffer-local-completion-map): Bind "M-<up>" to minibuffer-choose-previous-completion, "M-<down>" to minibuffer-choose-next-completion, "M-S-<up>" to minibuffer-previous-completion, "M-S-<down>" to minibuffer-next-completion, "M-RET" to minibuffer-choose-completion. (with-minibuffer-completions-window): New macro. (minibuffer-previous-completion, minibuffer-next-completion) (minibuffer-choose-previous-completion) (minibuffer-choose-next-completion) (minibuffer-choose-completion): New commands. https://lists.gnu.org/archive/html/emacs-devel/2022-03/msg00335.html
* | Choosing a completion with a prefix argument doesn't exit the minibufferJuri Linkov2022-04-051-0/+5
| | | | | | | | | | * lisp/simple.el (choose-completion): New optional args NO-EXIT and NO-QUIT. (bug#47417)
* | Handle remote system processesMichael Albinus2022-04-051-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Magic File Names): Add list-system-processes and process-attributes. * doc/lispref/processes.texi (System Processes): Document changes in list-system-processes and process-attributes. * doc/misc/tramp.texi (Customizing Completion): Use @ftable. (Remote processes): Document changes in list-system-processes and process-attributes. * etc/NEWS: Document changes in proced, list-system-processes and process-attributes. * lisp/proced.el (proced-show-remote-processes): New defcustom. (proced-remote-directory): Remove. (proced-filter-alist): Use it. (proced-user-name): New defun. (proced-available): Set it to t. (proced-mode): Adapt docstring. (proced): Adapt docstring. Acknowledge prefix argument. (proced-format): Change initialization of `standard-attributes'. (proced-send-signal, proced-renice): Adapt docstring. Remove special handling of prefix argument. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist): * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Add 'list-system-processes' and `process-attributes'. * lisp/net/tramp-integration.el (files-x): Require `files-x'. (tramp-bsd-process-attributes-ps-args) (tramp-bsd-process-attributes-ps-format) (tramp-connection-local-bsd-ps-variables) (tramp-busybox-process-attributes-ps-args) (tramp-busybox-process-attributes-ps-format) (tramp-connection-local-busybox-ps-variables): * lisp/net/tramp-adb.el (tramp-adb-connection-local-default-ps-variables): New defconsts. Add them to connection-local variables. * lisp/net/tramp.el (tramp-file-name-for-operation): Add 'list-system-processes' and `process-attributes'. (tramp-process-attributes-ps-args) (tramp-process-attributes-ps-format): New defconsts. (tramp-ps-time, tramp-get-process-attributes) (tramp-handle-list-system-processes) (tramp-handle-process-attributes): New defuns. * src/process.c (Flist_system_processes, Fprocess_attributes): Support remote system processes. (Qlist_system_processes, Qprocess_attributes): Declare symbols.
* | Make dragging stuff to a window above a frame workPo Lu2022-04-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/frames.texi (Mouse Tracking): * etc/NEWS: Announce new `drag-source' value of `track-mouse'. * lisp/mouse.el (mouse-drag-and-drop-region): Use new value of `track-mouse' during interprogram drag and drop. * src/keyboard.c (make_lispy_position): Handle nil values of f correctly. * src/xdisp.c (define_frame_cursor1): Ignore if `drag-source' as well. (syms_of_xdisp): New defsym `drag-source'. * src/xterm.c (XTmouse_position): Implement `drag-source'. (mouse_or_wdesc_frame): Likewise.
* | Add user options to move point and scroll window during DNDPo Lu2022-04-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/frames.texi (Drag and Drop): * etc/NEWS: Document new options 'dnd-scroll-margin' and 'dnd-indicate-insertion-point'. * lisp/dnd.el (dnd-protocol-alist): (dnd-open-remote-file-function): (dnd-open-file-other-window): Add right group to defcustoms. (dnd-scroll-margin, dnd-indicate-insertion-point): New user options. (dnd-handle-movement): New function. * lisp/x-dnd.el (x-dnd-handle-xdnd): (x-dnd-handle-motif): Call `dnd-handle-movement' when appropriate.
* | ; Improve documentation of 'font-lock-ignore'Eli Zaretskii2022-04-021-2/+2
| | | | | | | | | | | | | | | | * etc/NEWS: * lisp/font-lock.el (font-lock-ignore): * doc/lispref/modes.texi (Customizing Keywords): Clarify the documentation of 'font-lock-ignore'. * doc/emacs/display.texi (Font Lock): Mention 'font-lock-ignore'.
* | Add new option `mouse-drag-and-drop-region-scroll-margin'Po Lu2022-04-021-0/+5
| | | | | | | | | | | | | | | | * etc/NEWS: Announce new user option. * lisp/mouse.el (mouse-drag-and-drop-region-scroll-margin): New user option. (mouse-drag-and-drop-region): Implement "scroll margin" like behavior during mouse movement.
* | kmacro: Represent it as an OClosureStefan Monnier2022-04-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge the old lambda+list into a single OClosure object which plays both roles at the same time. Take advantage of it to provide a `cl-print-object` method so kmacro objects print nicely using the `key-parse` syntax. Also replace the old `kmacro-lambda-form` with a new `kmacro` constructor which takes a `key-parse` syntax, so that the code inserted with `insert-kbd-macro` is now more readable. * lisp/kmacro.el (kmacro): New OClosure type. (kmacro-ring-head): Use `kmacro` constructor. (kmacro-push-ring): Convert `elt` from old representation if needed. (kmacro-split-ring-element, kmacro-view-ring-2nd, kmacro-view-macro): Adapt to new representation. (kmacro-exec-ring-item): Turn into obsolete alias. (kmacro-call-ring-2nd, kmacro-end-or-call-macro): Adjust accordingly. (kmacro-start-macro): Simplify call to `kmacro-push-ring`. (kmacro): New constructor function. Replaces `kmacro-lambda-form`. (kmacro-lambda-form): Use it and declare obsolete. (kmacro-extract-lambda): Rewrite and declare obsolete. (kmacro-p): Rewrite. (cl-print-object): New method. (kmacro-bind-to-key, kmacro-name-last-macro): Simplify. * lisp/macros.el (macro--string-to-vector): New function. (insert-kbd-macro): Use it. Generate code using the `kmacro` constructor. * test/lisp/kmacro-tests.el (kmacro-tests-kmacro-bind-to-single-key): Silence warning. (kmacro-tests-name-last-macro-bind-and-rebind): Strengthen the test a bit. (kmacro-tests--cl-print): New test.
* | ; * etc/NEWS: Fix typos. Reported by "T.V Raman" <raman@google.com>.Eli Zaretskii2022-04-011-4/+4
| |
* | New user option 'font-lock-ignore'Augusto Stoffel2022-04-011-0/+5
| | | | | | | | | | | | | | | | * lisp/font-lock (font-lock-ignore): New defcustom. (font-lock-compile-keywords): Call 'font-lock--filter-keywords'. (font-lock--match-keyword, font-lock--filter-keywords): New functions, implement the functionality described in 'font-lock-ignore'. * doc/lispref/modes.texi: Describe 'font-lock-ignore'.
* | Update modus-themes to their version 2.3.0Protesilaos Stavrou2022-04-013-269/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/modus-themes.org (Enable and load): Clarify wording. (Sample configuration with and without use-package): Improve sample code on how to set up the themes. (Customization Options): Update sample configuration. (Option for box buttons, Option for mode line presentation) (Option for completion framework aesthetics) (Option for Org agenda constructs) (Option for the headings' overall style): Document how to optionally pass number values as a cons cell. (Option for mouseover effects): Document new boolean user option. (More accurate colors in terminal emulators): Write about the color range in terminal emulators and provide sample palette for XTerm. (Override colors): Use American English. (Near-monochrome syntax highlighting): Provide sample code on how to achieve a monochrome style. (Full support for packages or face groups) (Indirectly covered packages): Update lists of supported packages. (Note on display-fill-column-indicator-mode): Reword node. (Note on prism.el): Use American English. (Note on SHR colors): Clarify statement. (Note on the Notmuch logo): Remark that the Notmuch logo can be disabled. (Port the Modus themes to other platforms?): Use American English. (Sources of the themes): Fix capitalization of proper nouns. (Acknowledgements): Update list of contributors to the project. * etc/themes/modus-operandi-theme.el: * etc/themes/modus-vivendi-theme.el: Ensure that the theme is reified as expected both at compiletime and runtime. * etc/themes/modus-themes.el (require): Require 'cl-lib' and 'subr-x' at compiletime. (seq): Require the 'seq' library. (modus-themes-completion-standard-first-match) (modus-themes-completion-standard-selected) (modus-themes-completion-extra-selected): Use correct symbol for deprecated faces. (modus-themes-slanted-constructs): Provide it as an alias of 'modus-themes-italic-constructs'. (modus-themes-variable-pitch-headings): Remove obsolete user option. (modus-themes-no-mixed-fonts): Remove obsolete user option alias. (modus-themes-intense-mouseovers): Add new user option. (modus-themes--headings-choice): Accept value as a cons cell. (modus-themes-headings, modus-themes-org-agenda): Update user option to accept number value as a cons cell. (modus-themes-scale-headings, modus-themes-scale-1, modus-themes-scale-2) (modus-themes-scale-3, modus-themes-scale-4, modus-themes-scale-title) (modus-themes-scale-small): Remove obsolete user options. (modus-themes-mode-line): Update user option to accept number values as cons cells. (modus-themes-mode-line-padding): Remove obsolete user option. (modus-themes-completions): Add support for the 'text-also' property and update it accordingly. (modus-themes-success-deuteranopia): Remove obsolete user option. (modus-themes-box-buttons): Update user option to accept number values as cons cells. (modus-themes--warn, modus-themes--list-or-warn) (modus-themes--alist-or-seq): Add functions to check for correct value in some user options. (modus-themes--current-theme): Return the first Modus theme from 'current-enable-themes' (bug#54598). (modus-themes--lang-check, modus-themes--prompt, modus-themes--paren) (modus-themes--syntax-foreground, modus-themes--syntax-extra) (modus-themes--syntax-string, modus-themes--syntax-comment) (modus-themes--heading, modus-themes--agenda-structure) (modus-themes--agenda-date, modus-themes--mode-line-attrs) (modus-themes--completion, modus-themes--link, modus-themes--link-color) (modus-themes--region, modus-themes--hl-line, modus-themes--button): Make private functions check for the desired value. Refine them where necessary. (modus-themes-faces, modus-themes-custom-variables): Update supported faces and relevant variables.
* | Extend signal-process and proced.elMichael Albinus2022-03-301-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Signals to Processes): Document changes in signal-process. * etc/NEWS: Mention changes in proced.el and signal-process. * lisp/proced.el (proced-signal-function): Declare it obsolete. (proced-remote-directory): New user option. (proced-mode): Adapt docstring. (proced-send-signal, proced-renice): Handle interactive prefix argument. * lisp/net/tramp.el (tramp-signal-process): New defun. Add it to `signal-process-functions'. * src/process.c (Finternal_default_signal_process): New defun, providing the hitherto existing implementation of Fsignal_process. (Fsignal_process): Loop through Vsignal_process_functions. (Vsignal_process_functions): New defvar. (Qinternal_default_signal_process, Qsignal_process_functions): Declare symbols. (Sinternal_default_signal_process): Declare subroutine. * test/lisp/net/tramp-tests.el (tramp-test31-signal-process): New test.
* | Add OClosures, a cross between functions and structsStefan Monnier2022-03-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We here just add the new type. It is not fully self-contained. It requires cooperation from `cconv.el` on the one hand, and it hijacks the docstring info to hold the type of OClosure objects. This does imply that OClosures can't have docstrings, tho this limitation will be lifted in subsequent patches. * lisp/emacs-lisp/oclosure.el: New file. * test/lisp/emacs-lisp/oclosure-tests.el: New file. * doc/lispref/functions.texi (OClosures): New section. * src/eval.c (Ffunction): Accept symbols instead of strings for docstrings. * src/doc.c (store_function_docstring): Avoid overwriting an OClosure type. * lisp/emacs-lisp/cconv.el (cconv--convert-function): Tweak ordering of captured variables. (cconv-convert): Add case for `oclosure--fix-type`.
* | Use native image APIs on MS-Windows by defaultEli Zaretskii2022-03-261-0/+13
| | | | | | | | | | | | | | | | * src/w32term.c (syms_of_w32term) <w32-use-native-image-API>: Now t by default on W2K and later systems, but only on WINDOWSNT builds. * etc/NEWS: Announce the change.
* | Support display of BMP images on MS-WindowsEli Zaretskii2022-03-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | * src/w32image.c (w32_can_use_native_image_api): Support BMP images. * src/image.c (syms_of_image) <Qbmp>: New symbol. [HAVE_NTGUI]: Add 'bmp' to list of supported image types. * doc/lispref/display.texi (Image Formats): Document built-in support for BMP images. * etc/NEWS: Announce the change.
* | Small fixes for the new feature 'second-tab' of 'completion-auto-select'Juri Linkov2022-03-241-3/+4
| | | | | | | | * lisp/simple.el (completion-auto-select): Extend the docstring.
* | ; * etc/NEWS: Fix wording of a recently added entry.Eli Zaretskii2022-03-241-5/+8
| |
* | Add documentation entries for completion-auto-select user option.Jimmy Aguilar Mena2022-03-241-2/+4
| |
* | Do some NEWS taggingLars Ingebrigtsen2022-03-241-0/+4
| |
* | Load desktop without prompting if process is deadStefan Kangas2022-03-241-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/misc.texi (Saving Emacs Sessions): Document the new 'check' value. * etc/NEWS: Announce the change (bug#1474). * lisp/desktop.el (desktop-load-locked-desktop): Add new value 'check' to load desktop file without prompting if locking Emacs process does not exist on the local machine. (Bug#1474) (desktop-read): Extract function from here... (desktop--load-locked-desktop-p): ...to here. New function handles the semantics of 'desktop-load-locked-desktop', including above new value 'check'. (desktop--emacs-pid-running-p): New function. * test/lisp/desktop-tests.el: New file with tests for the above.
* | NEWS copy editsLars Ingebrigtsen2022-03-221-1/+2
| |
* | Mention highlight-confusing-reorderings in doc stringLars Ingebrigtsen2022-03-221-0/+1
| | | | | | | | | | * src/xdisp.c (Fbidi_find_overridden_directionality): Mention highlight-confusing-reorderings.
* | Mention the other-window-scroll-default user optionLars Ingebrigtsen2022-03-221-1/+3
| | | | | | | | | | * src/window.c (Fscroll_other_window): Link to other-window-scroll-default in the doc string.
* | Document outline-default-stateLars Ingebrigtsen2022-03-221-0/+1
| | | | | | | | | | * doc/emacs/text.texi (Outline Visibility): Mention outline-default-state.
* | Do some NEWS taggingLars Ingebrigtsen2022-03-221-0/+3
| |
* | Document sqlite-mode-open-file and do some NEWS taggingLars Ingebrigtsen2022-03-221-0/+4
| | | | | | | | * doc/lispref/text.texi (Database): Mention sqlite-mode-open-file.
* | Enable Better Alignment of EUDC Inline Expansion With RFC5322Alexander Adolf2022-03-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The format of EUDC inline expansion results is formatted according to the variable eudc-inline-expansion-format, which previously defaulted to '("%s %s <%s>" firstname name email). Since email address specifications need to comply with RFC 5322 in order to be useful in messages, there was little headroom for users to change this format anyway. Plus, if an EUDC back-end returned an empty first and last name, the result was the email address in angle brackets. Whilst this was standard with RFC 822, it is marked as obsolete syntax by its successor RFC 5322. Also, the first and last name part was never enclosed in double quotes, potentially producing invalid address specifications, which may be rejected by a receiving MTA. This commit updates the variable eudc-inline-expansion-format, so that it can, in addition to the current ("format" attributes) list, now alternatively be set to nil, or a formatting function. In both cases the resulting email address is formatted using the new function eudc-rfc5322-make-address, whose results fully comply with RFC 5322. If the value is nil (the new default value), eudc-rfc5322-make-address will be called to produce any of the default formats ADDRESS FIRST <ADDRESS> LAST <ADDRESS> FIRST LAST <ADDRESS> depending on whether a first and/or last name are returned by the query, or not. If the value is a formatting function, that will be called to allow the user to supply content for the phrase and comment parts of the address (cf. RFC 5322). Thus one can produce any of the formats: ADDRESS PHRASE <ADDRESS> ADDRESS (COMMENT) PHRASE <ADDRESS> (COMMENT) This can for example be used to get "last, first <address>" instead of the default "first last <address>". In any case when using nil, or the formatting function, the phrase part of the result will be enclosed in double quotes if needed, and the comment part will be omitted if it contains characters not allowed by RFC 5322. When eudc-inline-expansion-format remains set to a list as previously, the old behaviour is fully retained.
* | Fix documentation of the new completion-related featuresEli Zaretskii2022-03-221-13/+14
| | | | | | | | | | | | | | | | * etc/NEWS: * lisp/minibuffer.el (completion-auto-help): * doc/lispref/text.texi (Special Properties): * doc/emacs/mini.texi (Completion Options): Fix wording of recently added documentation and customization options.
* | Fix grep-like functions when running on a remote hostMichael Albinus2022-03-221-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Shell Arguments): * etc/NEWS: Describe change in 'shell-quote-argument'. Fix typos. * lisp/subr.el (shell-quote-argument): New optional argument POSIX. * lisp/progmodes/grep.el (grep-compute-defaults) (grep-default-command, grep-expand-keywords, lgrep) (rgrep-default-command): Use POSIX argument in `shell-quote-argument'. (Bug#54487)
* | Merge branch 'feature/completions-customs'Juri Linkov2022-03-221-0/+32
|\ \
| * | Small fixes for new completions featuresJuri Linkov2022-03-211-12/+11
| | | | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completions-header-format): Rename from completion-header-format. (completions-highlight, completions-highlight-face): Move up before first use.