summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* CC Mode: Optimize c-fontify-new-found-type and amend a debug specAlan Mackenzie2022-10-042-3/+7
| | | | | | | | | * lisp/progmodes/cc-fonts.el (c-fontify-new-found-type): Write the `face' property directly, rather than removing `fontified' properties and letting font-lock do the work. * lisp/progmodes/cc-defs.el (cc-eval-when-compile): Amend the debug spec from t to (&rest body), in line with the fix to bug #16184.
* * lisp/subr.el (y-or-n-p): Use substitute-command-keys.Stefan Kangas2022-10-041-5/+6
|
* image-dired: Shorten several long namesStefan Kangas2022-10-041-45/+58
| | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired-image-mode-map) (image-dired-image-mode): Rename from 'image-dired-display-image-mode-map' and 'image-dired-display-image-mode'. Update all uses and make old names into obsolete aliases. (image-dired-display-this, image-dired-display-next) (image-dired-display-previous): Rename from 'image-dired-display-thumbnail-original-image', 'image-dired-display-next-thumbnail-original', and 'image-dired-display-previous-thumbnail-original'. Update all uses and make old names into obsolete aliases. * doc/emacs/dired.texi (Image-Dired): Update documentation for the above changes, and improve indexing.
* image-dired: Fix arrow keys in thumbs bufferStefan Kangas2022-10-041-0/+2
| | | | | * lisp/image/image-dired.el (image-dired-thumbnail-mode-map): Also remap 'left-char' and 'right-char'.
* Fix recent changes for Ukrainian languageEli Zaretskii2022-10-041-10/+2
| | | | | | * etc/HELLO: * lisp/language/cyrillic.el ("Ukrainian"): Fix greetings and remove redundant Ukrainian entry in cyrillic.el.
* Make cropping of images work in message-modeLars Ingebrigtsen2022-10-041-11/+19
| | | | | | | * lisp/gnus/message.el (message-mode): Set the image cropping function. (message--yank-media-image-handler): Factor out... (message--image-part-string): ... here for reuse. (message--update-image-crop): Update the cropped data.
* CC Mode: Make c-forward-declarator move over a suffix after parens, e.g. constAlan Mackenzie2022-10-042-134/+145
| | | | | | | | | | | | | | Also tidy up several inaccuracies in the code. * lisp/progmodes/cc-engine.el (c-forward-decl-arglist): Move point for modes other than C++ Mode. (c-forward-declarator): Move over a suffix following arglist parens (e.g. const). Set the ARGLIST element of the return value to non-nil on encountering an unbalanced open parenthesis. Don't move forward out of enclosing parens. * lisp/progmodes/cc-mode.el (c-fl-decl-end): Handle being in a multi-line string. Move forward over token after declarator.
* Move image commands to the 'i' sub mapLars Ingebrigtsen2022-10-041-27/+32
| | | | | | | | | * doc/lispref/display.texi (Showing Images): Adjust. * lisp/image.el (image-map): Move all keys under the "i" prefix. (image--repeat-map): New map. (image-increase-size, image-rotate, image-decrease-size): Make repeatable. (image--delayed-change-size): New function.
* Fix the arguments in tags--compat-initializeLars Ingebrigtsen2022-10-041-2/+2
| | | | | * lisp/progmodes/etags.el (tags--compat-initialize): Fix argument order -- swap the last two arguments (bug#58272).
* Update Ukrainian language info alistPo Lu2022-10-041-1/+1
| | | | | | * lisp/language/cyrillic.el ("Ukrainian"): Replace "Glory to Ukraine" with "hello". See www.gnu.org/prep/maintain/html_node/Other-Politics.html.
* Add Ukrainian tutorialDenys Nykula2022-10-041-1/+3
| | | | | | | | | * etc/tutorials/TUTORIAL.uk: Create the translation. * lisp/language/cyrillic.el: Link "Emacs Tutorial" to the translation if the system is Ukrainian, and add our modern greeting as a sample text. * etc/NEWS: * etc/tutorials/TUTORIAL.translators: Attribute my work (bug#55250).
* Make `eq' obsolete as a generalized variableLars Ingebrigtsen2022-10-041-0/+1
| | | | | * lisp/emacs-lisp/gv.el (eq): Make obsolete as a generalized variable.
* Make loaddefs-generate more resilientLars Ingebrigtsen2022-10-041-1/+1
| | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Don't bug out when there's an existing loaddefs file that's not formatted properly (bug#58280).
* Don't bug out in advice--make-docstring when there's not doc stringLars Ingebrigtsen2022-10-041-1/+2
| | | | | * lisp/emacs-lisp/nadvice.el (advice--make-docstring): Don't bug out on functions with no documentation (bug#58284).
* Avoid errors in interactive calls of 'calendar-goto-day-of-year'Eli Zaretskii2022-10-041-2/+3
| | | | | * lisp/calendar/cal-move.el (calendar-goto-day-of-year): Fix the default value of DAY; doc fix. (Bug#58283)
* ; * lisp/proced.el (proced-mode): Manually reflow docstring.Stefan Kangas2022-10-041-17/+22
|
* ; Fix logic of $HOME adjustment for 'ert-remote-temporary-file-directory'Jim Porter2022-10-031-1/+1
| | | | | * lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Only adjust $HOME when it doesn't exist (bug#58265).
* * lisp/repeat.el (repeat-exit-key): Replace type 'key-sequence' with 'key'.Juri Linkov2022-10-031-3/+8
| | | | | (repeat-post-hook, repeat-echo-message-string): Add backward-compatibility code for repeat-exit-key to keep support for 'key-sequence' type (bug#55986).
* * lisp/repeat.el (repeat-exit): New command.Juri Linkov2022-10-031-14/+24
| | | | | | | | (repeat-exit-function): New variable. (repeat-post-hook): Set repeat-exit-function. Call repeat-exit from run-with-idle-timer. Also use repeat--exit. (repeat--exit): New internal function.
* * lisp/textmodes/tex-mode.el (tex--redirect-to-submode): Fix last changeStefan Monnier2022-10-031-1/+1
|
* Improve messaging in ecomplete-removeLars Ingebrigtsen2022-10-031-6/+11
| | | | * lisp/ecomplete.el (ecomplete-remove): Make messaging better.
* Fix typo in last help-fns--insert-menu-bindings changeLars Ingebrigtsen2022-10-031-10/+10
| | | | | * lisp/help-fns.el (help-fns--insert-menu-bindings): Fix typo in last change.
* Improve help-fns--insert-menu-bindings formattingLars Ingebrigtsen2022-10-031-30/+37
| | | | | | * lisp/help-fns.el (help-fns--insert-menu-bindings): Make this work better for menus that turn out to not be reachable after all -- i.e., don't insert " and " before the heading in certain cases.
* Add commands to edit/remove ecomplete entriesLars Ingebrigtsen2022-10-031-4/+62
| | | | | | | * lisp/ecomplete.el (ecomplete-add-item): Allow forcing new values. (ecomplete--remove-item): (ecomplete--prompt-type): New functions. (ecomplete-edit, ecomplete-remove): New commands.
* Rename to inhibit-automatic-native-compilationLars Ingebrigtsen2022-10-034-7/+8
| | | | | | | | | | | | | * src/comp.c (maybe_defer_native_compilation): (syms_of_comp): * lisp/subr.el (native-comp-deferred-compilation): * lisp/startup.el (inhibit-native-compilation): (normal-top-level): * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): * lisp/emacs-lisp/comp.el (comp-trampoline-compile): * etc/NEWS: * doc/lispref/compile.texi (Native-Compilation Variables): Rename inhibit-native-compilation to inhibit-automatic-native-compilation.
* files.el (major-mode-remap-alist): New custom var (bug#58075)Stefan Monnier2022-10-033-35/+50
| | | | | | | | | | | | | | * lisp/files.el (major-mode-remap-alist): New custom var. (set-auto-mode--last): New var. (set-auto-mode-0): Obey `major-mode-remap-alist`. * doc/emacs/modes.texi (Choosing Modes): Document `major-mode-remap-alist`. * lisp/progmodes/cperl-mode.el: Recommend the use of `major-mode-remap-alist` over the crude `defalias` solution. * lisp/textmodes/tex-mode.el (tex--guess-mode): Simplify. (tex--redirect-to-submode): Obey `major-mode-remap-alist`.
* Add new variable 'inhibit-native-compilation'Lars Ingebrigtsen2022-10-034-19/+29
| | | | | | | | | | | | | | | | | | | | * doc/lispref/compile.texi (Native-Compilation Variables): Document it. * lisp/startup.el (normal-top-level): Set inhibit-native-compilation from environment variable. * lisp/subr.el (native-comp-deferred-compilation): Make obsolete. * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write trampolines to disk. * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Adjust. * src/comp.c (syms_of_comp): New variable inhibit-native-compilation. (maybe_defer_native_compilation): Use it.
* Fix coding systems used for X input methodsPo Lu2022-10-031-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/mule.texi (International): Refer to X Coding as well. (Communication Coding): Document that locale-coding-system is not always used on X to decode keyboard input. (X Coding): New node. * etc/NEWS: Announce change to input method coding resolution. * lisp/term/x-win.el (x-get-input-coding-system): New function. * src/coding.c (syms_of_coding): Update doc string of locale-coding-system. * src/xfns.c (struct x_xim_text_conversion_data) (x_xim_text_to_utf8_unix_1, x_xim_text_to_utf8_unix_2) (x_xim_text_to_utf8_unix): Accept dpyinfo. Use the coding system specified inside if possible. (xic_preedit_draw_callback): Pass dpyinfo. * src/xterm.c (handle_one_xevent): Use XIM coding system for IM input. (xim_open_dpy): Try to determine the input method coding system. (mark_xterm): Mark `xim_coding'. (syms_of_xterm): New variable `x-input-coding-system'. * src/xterm.h (struct x_display_info): New field `xim_coding'. (FRAME_X_XIM_CODING): New macro.
* Add --with-native-compilation=aot configuration optionLars Ingebrigtsen2022-10-031-0/+6
| | | | | | | * configure.ac: Allow --with-native-compilation=aot to switch full ahead-of-time on. * lisp/Makefile.in: Use the setting from configure.
* Revert "keymap.el: Ease up support for non-`kbd` formats."Lars Ingebrigtsen2022-10-032-18/+4
| | | | | | | | | This reverts commit 570a11052be6178954956a1c59c8ebcbdb77d38e. We do not want to support several keymap formats in `keymap-set' and friends -- the point is to have an interface with easy-to-understand semantics that give good feedback on valid/invalid key sequences.
* Improve auto-insert-mode documentationStefan Kangas2022-10-031-22/+19
| | | | | | * lisp/autoinsert.el: Improve usage instructions and formatting. (auto-insert-directory): Doc fix; the directory does not have to end in slash.
* Port TZ settings to POSIXPaul Eggert2022-10-023-3/+3
| | | | | | | | * lisp/Makefile.in (.el.elc): * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times): Use the POSIX standard TZ=UTC0 rather than the GNU extension TZ=UTC to set the time zone to UTC.
* Actually delete markers in dired-do-flagged-deleteStefan Kangas2022-10-031-10/+10
| | | | | * lisp/dired.el (dired-do-flagged-delete): Actually delete markers. (Bug#58256)
* Fix more overly long docstrings in eieioStefan Kangas2022-10-031-8/+11
| | | | | * lisp/emacs-lisp/eieio.el (defclass): Fix more overly long docstrings. (Bug#58252)
* Suppress irritating/misleading message in make bootstrap about old .elc filesAlan Mackenzie2022-10-021-7/+9
| | | | | | | | | | | | | These are the "compile-first" .elc files, artificially given an old timestamp to cause them later to be native compiled. This fixes bug #58224. * lisp/Makefile.in (compile-first .el.elc): Give these .elc's the UTC epoch. Amend the comment. * src/lread.c (Fload): New variable, epoch_timestamp, initialized to binary zero. Compare with this the timestamp of .elc's being loaded, and if they match, don't output the message about the source file being newer than the file being loaded.
* * lisp/vc/vc-git.el (vc-git-checkin): Add more checks for vc-git-patch-stringJuri Linkov2022-10-021-1/+25
| | | | | Check that vc-git-patch-string contains the same changes that already exists in the staged area when files were added/removed by vc commands (bug#52349).
* In vc-git-log-incoming use the repository in the command "fetch" (bug#50340)Juri Linkov2022-10-022-5/+12
| | | | | | | | | | | | * lisp/vc/vc-git.el (vc-git-log-incoming): Use repository part from non-nil remote-location in the command "fetch". * lisp/vc/vc.el (vc-log-incoming, vc-log-outgoing): Mention in docstrings and prompts that REMOTE-LOCATION can be a remote branch name. * doc/emacs/maintaining.texi (VC Change Log): For commands vc-log-incoming and vc-log-outgoing, use the term "remote location" instead of "repository".
* Delete thumbs in image-dired-do-flagged-delete after confirmationPeter Münster2022-10-021-11/+15
| | | | | * lisp/image/image-dired.el (image-dired-do-flagged-delete): Remove thumbnails only after confirming deletion of the files. (Bug#58255)
* * lisp/repeat.el (repeat<defgroup>): New customization group.Juri Linkov2022-10-021-8/+14
| | | | | | | (repeat-too-dangerous, repeat-on-final-keystroke) (repeat-exit-key, repeat-exit-timeout, repeat-keep-prefix) (repeat-check-key, repeat-echo-function, repeat-mode): Change group to 'repeat'.
* keymap.el: Ease up support for non-`kbd` formats.Stefan Monnier2022-10-022-4/+18
| | | | | | | | | | | | | | While we want to standardize on the `kbd` syntax for user-facing code, the internal vector representation of key sequences is not going away, so let's not impose silly `key-description + key-parse` roundtrips. Also, provide some support for packages stuck with user configs defined to hold old-style key formats. * lisp/keymap.el (keymap-set): Allow vectors as `key`. (key-parse-old-format): New function, which stands out better than `key-description` when searching for uses of the old syntax. * list/outline.el (outline-minor-mode): Use it.
* * lisp/files.el (after-find-file): Use substitute-command-keys.Stefan Kangas2022-10-021-1/+2
|
* Fix overly wide docstrings generated by eieioStefan Kangas2022-10-021-6/+12
| | | | | | * lisp/emacs-lisp/eieio-core.el (eieio-make-class-predicate) (eieio-make-child-predicate, eieio-defclass-internal): Don't generate overly wide docstrings. (Bug#58252)
* Kill URL buffer in url-insert-file-contents-literallyLars Ingebrigtsen2022-10-021-1/+3
| | | | | * lisp/url/url-handlers.el (url-insert-file-contents-literally): Kill the URL buffer after use.
* Fix coding system problems in gnus-read-ephemeral-bug-groupLars Ingebrigtsen2022-10-022-41/+45
| | | | | | | | | * lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Don't bind coding system variables, because that leads to loading other files (like cookie files) using that coding system (bug#58227). * lisp/url/url-handlers.el (url-insert-file-literally): New function. (url-insert): Allow forcing no-decode.
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2022-10-024-6/+6
|\
| * Decrease use of the word "Emacsen" in Tramp docsStefan Kangas2022-10-024-6/+6
| | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el: * lisp/net/tramp-smb.el: * lisp/net/tramp-uu.el: * lisp/net/tramp.el: Don't say "Emacsen" when a different wording would be clearer.
* | ; Improve doc string of 'with-locale-environment'Eli Zaretskii2022-10-021-1/+7
|/ | | | | * lisp/international/mule-cmds.el (with-locale-environment): Doc fix.
* perform-replace doc string fixLars Ingebrigtsen2022-10-021-2/+2
| | | | * lisp/replace.el (perform-replace): Fix doc string (bug#58177).
* Fix point movement when indenting in sieve-modeLars Ingebrigtsen2022-10-021-1/+7
| | | | | * lisp/net/sieve-mode.el (sieve-mode-indent-function): Fix point movement when point is at the start of the line (bug#58202).
* ; Fix last change.Eli Zaretskii2022-10-022-2/+3
| | | | | * lisp/leim/quail/misc-lang.el ("gothic"): * lisp/language/misc-lang.el ("Gothic"): Doc fixes. (Bug#58194)