summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2022-09-281-0/+30
|\
| * Apply root window coordinate optimizations to crossing events as wellPo Lu2022-09-281-0/+30
| | | | | | | | | | | | | | | | | | | | * src/xterm.c (xi_compute_root_window_offset_enter): New function. (handle_one_xevent): Apply root window crossing optimizations to XI_Enter and XI_Leave events too. Not strictly necessary but since we apply them to motion events it would be consistent to apply them to crossing events as well as recommended by the ICCCM.
* | Improve Gurmukhi composition rules (Bug#58098)समीर सिंह Sameer Singh2022-09-282-6/+9
|/ | | | | | | * lisp/language/indian.el: Improve composition rules for Gurmukhi. * lisp/international/fontset.el (script-representative-chars) (setup-default-fontset): Support Chess Symbols.
* * lisp/files.el (auto-mode-alist): Add entry for ".mailmap".Stefan Kangas2022-09-281-0/+1
|
* ; image-dired: Fix last changeStefan Kangas2022-09-282-3/+4
| | | | | | | * test/lisp/image/image-dired-util-tests.el (image-dired-thumb-name/per-directory): * lisp/image/image-dired-util.el (image-dired-thumb-name): Fix last change.
* Simplify eww--rescale-images codeLars Ingebrigtsen2022-09-281-9/+8
| | | | * lisp/net/eww.el (eww--rescale-images): Simplify code.
* Add new macro 'while-let'Lars Ingebrigtsen2022-09-283-0/+59
| | | | | | * doc/lispref/control.texi (Conditionals): Document when-let/if-let/while-let. * lisp/subr.el (while-let): New macro.
* docview: new customization options for imenuJose A. Ortega Ruiz2022-09-282-6/+32
| | | | | | | | | * doc/emacs/misc.texi (DocView Navigation): * lisp/doc-view.el (doc-view-imenu-title-format, doc-view-imenu-flatten): (doc-view--imenu-subtree): customizable format for imenu entry titles, and flag to disable nested submenus. * lisp/doc-view.el (doc-view--pdf-outline): clean up whitespace markers '\r' and '\t' in imenu item titles (bug#58131).
* package-update would always re-install packageLin Sun2022-09-281-2/+2
| | | | | | * lisp/emacs-lisp/package.el (package--updateable-packages): fix version comparison between available packages and archived packages (bug#58129).
* Follow #target links in eww without re-renderingVisuwesh2022-09-281-5/+12
| | | | | | * lisp/net/eww.el (eww-follow-link): Do a text property search instead of re-rendering to follow #target links in the same page. (bug#58118) (eww-link-keymap): Bind <mouse-2> to eww-follow-link as well.
* ; Fix debugging image-dired-dired-toggle-marked-thumbsStefan Kangas2022-09-281-0/+1
| | | | | * lisp/image/image-dired-dired.el (image-dired-dired-toggle-marked-thumbs): Fix debugging.
* image-dired: End thumbnail file names with ".jpg"Stefan Kangas2022-09-283-33/+36
| | | | | | | | | | * lisp/image/image-dired-util.el (image-dired-thumb-name): Always end thumbnail name in ".jpg" and simplify naming to just use the SHA-1 hash. (Bug#57961) * test/lisp/image/image-dired-util-tests.el (image-dired-thumb-name/image-dired): Adjust test for the above change. * etc/NEWS: Announce the above change.
* Standardize XPM filesStefan Kangas2022-09-285-69/+7
| | | | | | | | | | | These headers make GraphicsMagick croak with "Improper image header". Note that the copyright information is already in README. * etc/images/checked.xpm: * etc/images/gnus/gnus.xpm: * etc/images/gnus/gnus-pointer.xpm: * etc/images/mh-logo.xpm: * etc/images/unchecked.xpm: Normalize file headers.
* Port better to C23 bool+true+false keywordsPaul Eggert2022-09-2813-18/+64
| | | | | | | | | | | | | | | | | | | | C23 is adding the C++ keywords bool, true, and false; prefer them to <stdbool.h> if they are available. * admin/merge-gnulib (GNULIB_MODULES): Add stdbool, which emulates C23 on pre-C23 platforms. (AVOIDED_MODULES): Remove stdbool; Gnulib has renamed this module to stdbool-c99 and nobody uses it so it does not need to be avoided. * m4/c-bool.m4: New file, from Gnulib stdbool module. * lib-src/seccomp-filter.c, src/conf_post.h, src/dynlib.h: * src/emacs-module.c, src/nsterm.m, src/systhread.h: * test/src/emacs-module-resources/mod-test.c: Use the C23 style and use bool without including <stdbool.h>. The Gnulib stdbool module causes config.h to include stdbool.h on pre-C23 platforms. * src/emacs-module.h.in: Don’t include <stdbool.h> if C23 or later, or if it has already been included.
* Update from Gnulib by running admin/merge-gnulibPaul Eggert2022-09-2852-192/+490
|
* Maintaining ChangeLog history: add more detailsSean Whitton2022-09-271-3/+8
| | | | | * admin/notes/repo (Maintaining ChangeLog history): Add more details. See <https://debbugs.gnu.org/58092#37>.
* ; * lisp/image/image-dired.el: Fix typo.Stefan Kangas2022-09-271-1/+1
|
* Make image-dired-dired-toggle-marked-thumbs fasterStefan Kangas2022-09-271-2/+2
| | | | | | * lisp/image/image-dired-dired.el (image-dired-dired-toggle-marked-thumbs): Don't show progress, since it makes things slower.
* Load compiled "calc-loaddefs", if anyLin Sun2022-09-271-1/+1
| | | | | * lisp/calc/calc.el ("calc-loaddefs"): Load the .elc file (if it exists) (bug#58127).
* image-dired: Fix header line when file is missingStefan Kangas2022-09-271-3/+5
| | | | | | * lisp/image/image-dired.el (image-dired-format-properties-string): Don't error when file has been deleted.
* * lisp/files.el (file-backup-file-names): Don't burp if dir doesn't existStefan Monnier2022-09-271-10/+11
|
* Add back useful information from gnus-coding.texiStefan Kangas2022-09-272-1/+6
| | | | | | * lisp/international/rfc1843.el: * lisp/net/pop3.el: Improve Commentary by adding back text from deleted file gnus-coding.texi.
* Remove gnus-coding.text (bug#58119)Lars Ingebrigtsen2022-09-271-227/+0
|
* Some tramp-docker.el adaptionsMichael Albinus2022-09-271-14/+17
| | | | | | * lisp/net/tramp-docker.el (tramp-docker--completion-function): Add ;;;###tramp-autoload cookie. Make implementation more robust. (tramp-methods) Use `tramp-default-remote-shell'.
* ; Simplify wallpaper--format-arg with let-alistStefan Kangas2022-09-271-5/+3
| | | | * lisp/image/wallpaper.el (wallpaper--format-arg): Use let-alist.
* * etc/NEWS.23: Belatedly announce 'format-spec'.Stefan Kangas2022-09-271-0/+2
|
* ; * lisp/image/wallpaper.el (wallpaper--format-arg): Fix typo.Stefan Kangas2022-09-271-1/+1
|
* Document the new "XRandR 1.5" valueStefan Kangas2022-09-273-6/+6
| | | | | | | * src/xfns.c (Fx_display_monitor_attributes_list): * lisp/frame.el (display-monitor-attributes-list): * doc/lispref/frames.texi (Multiple Terminals): Document the new "XRandR 1.5" value.
* ; Fix documentation of imenu access in DocViewEli Zaretskii2022-09-272-11/+12
| | | | | | | * lisp/doc-view.el (doc-view-imenu-enabled) (doc-view--pdf-outline, doc-view-imenu-index): Doc fixes. * doc/emacs/misc.texi (DocView Navigation): Fix typo and wording.
* ; * src/xfns.c (Fx_window_property): Fix markup.Po Lu2022-09-271-1/+1
|
* Improve doc of `x-window-property'Po Lu2022-09-271-7/+30
| | | | | | * src/xfns.c (Fx_window_property): Fix errors in doc string and document where to obtain documentation for standardized window properties.
* docview: imenu access to table of contentsJose A. Ortega Ruiz2022-09-273-5/+89
| | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-imenu-enabled): user option to disable imenu generation. * lisp/doc-view.el (doc-view--outline-rx): (doc-view--pdf-outline, doc-view--imenu-subtree, doc-view-imenu-index): functions implementing the imenu index generation via mutool. * lisp/doc-view.el (doc-view-imenu-setup, doc-view-mode): setup of the new functionality in doc-view mode. * lisp/imenu.el (imenu-submenus-on-top): (imenu--split-menu): new local variable to optionally inhibit grouping of entries with children at the top of imenu menus. * doc/emacs/misc.texi: documentation for the new functionality (bug#58103).
* ; whitespace: Add test case for read-only buffers (bug#58082)Richard Hansen2022-09-271-2/+19
|
* ert-x: Improve realism of `ert-with-test-buffer-selected'Richard Hansen2022-09-271-1/+9
| | | | | | * lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): Set `inhibit-read-only' and `buffer-read-only' to nil when executing the body to provide a more realistic test environment.
* * lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): Fix glitchesAlan Mackenzie2022-09-271-2/+2
|
* CC Mode: Don't bind max-specpdl-size when it doesn't exist or is obsoleteAlan Mackenzie2022-09-271-15/+30
| | | | | | | This is part of the changes for bug #57911. * lisp/progmodes/cc-defs.el (c-let*-maybe-max-specpdl-size): New macro. (c-get-lang-constant): Use the new macro in place of let*.
* Avoid uninitialized variable warningYAMAMOTO Mitsuharu2022-09-271-4/+7
| | | | | * src/composite.c (composition_gstring_adjust_zero_width): Simplify last change with respect to an exit condition.
* Optimize coordinate translation during event handlingPo Lu2022-09-272-45/+191
| | | | | | | | | | | | | | | | | | | These changes noticeably improve turning the mouse wheel on top of scroll bars etc over slow network connections. * src/xterm.c (x_dnd_note_self_position, x_dnd_note_self_wheel) (x_dnd_note_self_drop): Use x_translate_coordinates. (x_compute_root_window_offset): New function for calculating and caching root window offsets of edit window. (x_translate_coordinates): New function. Use cached values whenever possible. (xi_compute_root_window_offset) (xi_compute_root_window_offset_pinch): New wrappers for XI2 events. (x_construct_mouse_click, handle_one_xevent): Use x_translate_coordinates wherever appropriate. * src/xterm.h (struct x_output): New fields for keeping track of the root window offset of the edit window.
* Adjust zero-width grapheme clusters so they are displayed (Bug#50951)YAMAMOTO Mitsuharu2022-09-273-0/+46
| | | | | | * src/composite.c (composition_gstring_adjust_zero_width): New function. * src/composite.h: Declare it. * src/font.c (Ffont_shape_gstring): Use it before putting gstring to cache.
* Fix OBOE in image-dired--with-markedStefan Kangas2022-09-271-1/+1
| | | | | * lisp/image/image-dired.el (image-dired--with-marked): Fix off-by-one error.
* vc-filter-command-function: Abbreviate default valueSean Whitton2022-09-261-1/+1
| | | | | * lisp/vc/vc-dispatcher.el (vc-filter-command-function): Abbreviate `(lambda (&rest args) args)' as just `list'.
* Get rid of default wallpaper-setter constructorStefan Kangas2022-09-261-1/+2
| | | | | * lisp/image/wallpaper.el (wallpaper-setter): Actually get rid of the default constructor.
* Set XFCE wallpaper also in single-workspace-modeStefan Kangas2022-09-261-8/+27
| | | | | | | | | | | | | This fixes setting the wallpaper on XFCE whether or not the "/backdrop/single-workspace-mode" setting is true or false. That XFCE setting controls whether or not the same wallpaper is used on all workspaces or not. * lisp/image/wallpaper.el (wallpaper-setter) (wallpaper-command-args, wallpaper-default-set-function): Allow using a function for getting the command line arguments. (wallpaper-xfce-command-args): New function. (wallpaper--default-setters): Use above new function for XFCE.
* CC Mode: Handle C++20 conceptsAlan Mackenzie2022-09-265-29/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-align.el (c-lineup-topmost-intro-cont): Amend so as not to indent lines following a requires line. * lisp/progmodes/cc-engine.el (c-forward-primary-expression) (c-forward-c++-requires-clause): New functions. (c-forward-declarator): Skip forward over any trailing requires clause. (c-forward-decl-or-cast-1): Skip requires clauses before and after the type. Amend the second element of the return list to include information on two consecutive identifiers in <...>. (c-looking-at-or-maybe-in-bracelist): Don't recognize braces in requires expressions as brace lists. (c-guess-basic-syntax): CASE 5D.7: New case to handle the continuation of a "concept foo = " line. * lisp/progmodes/cc-fonts.el (c-basic-matchers-before): Add a new clause to handle the declaration of a concept. (c-get-fontification-context): Treat the arglist of a requires construct as a declaration arglist. * lisp/progmodes/cc-langs.el (c-equals-nontype-decl-kwds/key) (c-fun-name-substitute-kwds/key, c-pre-concept-<>-kwds/key): New c-lang-consts/vars. (c-constant-key): New c-lang-var. (c-type-decl-suffix-key): Include "requires" in the keywords matched. * lisp/progmodes/cc-mode.el (c-fl-decl-start): Fix an off by one error. Use equal rather than eq to compare two syntax contexts.
* Don't auto-resize image if echo area is non-emptyStefan Kangas2022-09-261-1/+3
| | | | | * lisp/image-mode.el (image-fit-to-window): Don't auto-resize image if there's a message in the echo area.
* ; * lisp/image/wallpaper.el (cl-macs): Require, to avoid warnings.Eli Zaretskii2022-09-261-0/+1
|
* Display a message when wallpaper was setStefan Kangas2022-09-261-2/+4
| | | | | * lisp/image/wallpaper.el (wallpaper-default-set-function): Display a message when the wallpaper was successfully set.
* Fix setting the wallpaper in XFCEStefan Kangas2022-09-262-31/+94
| | | | | | | | | | | | | | | * lisp/image/wallpaper.el (wallpaper-command-args) (wallpaper-default-set-function): Support new format specifiers %S for screen, %W for workspace, and %M for monitor. (wallpaper--default-setters): Use above new specifiers for XFCE. (wallpaper--format-arg): New defun broken out from... (wallpaper-default-set-function): ...here. (wallpaper--get-height-or-width): Support noninteractive use. * test/lisp/image/wallpaper-tests.el (wallpaper--format-arg/filename) (wallpaper--format-arg/filename-hex) (wallpaper--format-arg/width, wallpaper--format-arg/screen) (wallpaper--format-arg/monitor, wallpaper--format-arg/workspace): New tests.
* Rewrite wallpaper.el to use a cl-defstructStefan Kangas2022-09-262-127/+201
| | | | | | | | | | | | | | | | | | * lisp/image/wallpaper.el (wallpaper--default-commands): Delete variable. (wallpaper-setter): New cl-defstruct. (wallpaper--default-methods-create): New macro. (wallpaper--default-setters): (wallpaper--current-setter): New variables. (wallpaper--find-setter): New defun to pick a wallpaper-setter. (wallpaper--find-command, wallpaper--find-command-args): Use 'wallpaper--find-setter'. (wallpaper-command): Doc fix. * test/lisp/image/wallpaper-tests.el (wallpaper--find-command/return-string) (wallpaper--find-command-args/return-list) (wallpaper--image-file-regexp/return-string): New tests.
* Add log-edit-summary-separator face (bug#58092)Protesilaos Stavrou2022-09-262-1/+11
| | | | | | | * lisp/vc/log-edit.el (log-edit-summary-separator): Add new face. (log-edit-font-lock-keywords): Replace hardcoded face attributes with named face. * etc/NEWS: Announce the new face.