]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoPreserve echo area message when running DND mouse movement function
Po Lu [Mon, 18 Jul 2022 04:42:23 +0000 (12:42 +0800)]
Preserve echo area message when running DND mouse movement function

* lisp/term/x-win.el (x-dnd-movement): Stop redisplaying here.
* src/xterm.c (x_dnd_begin_drag_and_drop): Redisplay with the
echo area preserved.

2 years agoDerive `Info-mode' from `special-mode'
Richard Hansen [Sun, 17 Jul 2022 04:56:10 +0000 (00:56 -0400)]
Derive `Info-mode' from `special-mode'

* lisp/info.el (Info-mode): Derive `Info-mode' from `special-mode'.
This makes it easier to exclude it from globalized minor modes that
don't apply to special modes (such as `global-whitespace-mode' and
`global-display-fill-column-indicator-mode').

2 years agoinfo-edit: Delay `ibuffer' var change until after `ibuffer' loads
Richard Hansen [Sun, 17 Jul 2022 18:32:42 +0000 (14:32 -0400)]
info-edit: Delay `ibuffer' var change until after `ibuffer' loads

* lisp/obsolete/info-edit.el: Delay the addition of `Info-edit-mode'
to the `ibuffer-help-buffer-modes' list until after `ibuffer' is
loaded.  This fixes a "(void-variable ibuffer-help-buffer-modes)"
error when `info-edit' is loaded before `ibuffer'.

2 years agoHandle virtual modifiers in the DND scrolling code
Po Lu [Mon, 18 Jul 2022 01:20:05 +0000 (09:20 +0800)]
Handle virtual modifiers in the DND scrolling code

* lisp/x-dnd.el (x-dnd-modifier-mask): Handle virtual modifiers.
* src/xfns.c (Fx_get_modifier_masks): New function.
(syms_of_xfns): Define new subr.
* src/xterm.c (x_get_keyboard_modifiers): New function.
* src/xterm.h: Update prototypes.

2 years ago* lisp/minibuffer.el (minibuffer-complete-history): Ensure a list of strings
Stefan Monnier [Sun, 17 Jul 2022 18:30:43 +0000 (14:30 -0400)]
* lisp/minibuffer.el (minibuffer-complete-history): Ensure a list of strings

2 years ago* lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Simplify to use HIST=t.
Juri Linkov [Sun, 17 Jul 2022 18:06:31 +0000 (21:06 +0300)]
* lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Simplify to use HIST=t.

2 years ago* lisp/minibuffer.el (minibuffer-complete-history): Check for history=t.
Juri Linkov [Sun, 17 Jul 2022 18:04:29 +0000 (21:04 +0300)]
* lisp/minibuffer.el (minibuffer-complete-history): Check for history=t.

Signal a user error when the history is not a list (bug#56613).

2 years agoAdd `take` and `ntake` (bug#56521)
Mattias Engdegård [Wed, 13 Jul 2022 11:46:52 +0000 (13:46 +0200)]
Add `take` and `ntake` (bug#56521)

These are useful list primitives, complementary to `nthcdr`.

* src/fns.c (Ftake, Fntake): New.
(syms_of_fns): Defsubr them.
* doc/lispref/lists.texi (List Elements):
* lisp/emacs-lisp/shortdoc.el (list): Document.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns, pure-fns):
Declare `take` pure and side-effect-free.
* test/src/fns-tests.el (fns-tests--take-ref, fns--take-ntake):
New test.
* etc/NEWS: Announce.

2 years agoFix leaking of file descriptors due to pipe processes on MS-Windows
Eli Zaretskii [Sun, 17 Jul 2022 12:44:50 +0000 (15:44 +0300)]
Fix leaking of file descriptors due to pipe processes on MS-Windows

* src/w32proc.c (reader_thread): Wait for 'sys_close' to finish
processing the pipe read descriptor, before trying to close it.

* src/w32.c (sys_close): Attempt to detect when the reader thread
already exited, so that it would be possible to close descriptors
open by pipe processes for reading from the pipe.  (Bug#56606)

2 years agoImprove handling of tilt scroll and flip options during DND
Po Lu [Sun, 17 Jul 2022 12:14:02 +0000 (20:14 +0800)]
Improve handling of tilt scroll and flip options during DND

* lisp/x-dnd.el (x-dnd-mwheel-scroll): New function.
(x-dnd-handle-xdnd): Use that instead of abusing mwheel.el.

2 years agoPrefer defvar-keymap in mpc.el
Stefan Kangas [Sun, 17 Jul 2022 10:56:38 +0000 (12:56 +0200)]
Prefer defvar-keymap in mpc.el

* lisp/mpc.el (mpc-mode-map, mpc-tagbrowser-dir-mode-map)
(mpc-volume-map, mpc-songs-mode-map): Prefer defvar-keymap.

2 years agoMake `C' in over tramp work in archive mode
Lars Ingebrigtsen [Sun, 17 Jul 2022 10:12:24 +0000 (12:12 +0200)]
Make `C' in over tramp work in archive mode

* lisp/arc-mode.el (archive-copy-file): Make `C' in over tramp
work (bug#56574).

2 years ago; * src/xdisp.c (redisplay_tool_bar): Fix a possible typo.
Eli Zaretskii [Sun, 17 Jul 2022 10:12:03 +0000 (13:12 +0300)]
; * src/xdisp.c (redisplay_tool_bar): Fix a possible typo.

2 years agoFix tab-bar resizing under 'auto-resize-tab-bars' = 'grow-only'
Eli Zaretskii [Sun, 17 Jul 2022 09:33:34 +0000 (12:33 +0300)]
Fix tab-bar resizing under 'auto-resize-tab-bars' = 'grow-only'

* src/xdisp.c (redisplay_tab_bar): Compute the desired height of
the tab-bar before iterating over the tab-bar string, to detect
the required resizing earlier.  Default 'change_p' to 'false'.

* lisp/tab-bar.el (tab-bar--update-tab-bar-lines): Support
'auto-resize-tab-bars' set to 'grow-only'.

2 years agoEnsure that directories exist when copying files from archive
Visuwesh [Sun, 17 Jul 2022 09:22:32 +0000 (11:22 +0200)]
Ensure that directories exist when copying files from archive

* lisp/arc-mode.el (archive-copy-file): If the directory the file is
being extracted to does not exist, then create it (bug#56603).

2 years agoImprove error messaging when parent archive buffers are missing
Lars Ingebrigtsen [Sun, 17 Jul 2022 09:16:26 +0000 (11:16 +0200)]
Improve error messaging when parent archive buffers are missing

* lisp/arc-mode.el (archive-write-file-member):
* lisp/tar-mode.el (tar-subfile-save-buffer): Give a better error
message when the parent buffer is dead (bug#56605).

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 17 Jul 2022 04:30:41 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f5218385c0 Fix obsoletion of nntp-authinfo-file
10b6919870 ; Fix typos

2 years agoHandle scrolling during XDND drag-and-drop
Po Lu [Sun, 17 Jul 2022 03:06:14 +0000 (11:06 +0800)]
Handle scrolling during XDND drag-and-drop

* lisp/x-dnd.el (x-dnd-get-object-rectangle): Handle cases where
`posn-x-y' is nil.
(x-dnd-modifier-mask, x-dnd-hscroll-flags, x-dnd-note-click):
New functions.
(x-dnd-click-count): New defvar.
(x-dnd-handle-xdnd): Handle button press events.

* src/xterm.c (x_dnd_send_position): Fix handling of mouse
rects.

2 years agoFix drag-and-drop button button flags
Po Lu [Sun, 17 Jul 2022 01:13:28 +0000 (09:13 +0800)]
Fix drag-and-drop button button flags

* src/xterm.c (x_dnd_send_position): Always send buttons
regardless of version.  Fix bit indices.
(handle_one_xevent): Likewise.

2 years agoFix python navigation problem with an empty line in nested defun
kobarity [Sat, 16 Jul 2022 16:14:15 +0000 (18:14 +0200)]
Fix python navigation problem with an empty line in nested defun

* lisp/progmodes/python.el (python-nav--beginning-of-defun): Fix
bug when point is on an empty line (bug#56600).

2 years agoFix xref links in `C-h o'
Lars Ingebrigtsen [Sat, 16 Jul 2022 12:57:58 +0000 (14:57 +0200)]
Fix xref links in `C-h o'

* lisp/help-fns.el (describe-symbol): Make xref links happen in
all sections (bug#49587).

* lisp/help-fns.el (describe-symbol): Add back/forward links.

* lisp/help-mode.el (help-make-xrefs): Factor out links from
here...
(help-xref--navigation-buttons): To here.

2 years agoNew test for make_symbol_constant
Stefan Kangas [Sat, 16 Jul 2022 16:13:56 +0000 (18:13 +0200)]
New test for make_symbol_constant

* test/src/data-tests.el (data-tests-make_symbol_constant): New
test.

2 years ago* src/composite.c (find_automatic_composition): Fix off-by-one error.
Eli Zaretskii [Sat, 16 Jul 2022 13:29:24 +0000 (16:29 +0300)]
* src/composite.c (find_automatic_composition): Fix off-by-one error.

2 years agoImprove documentation of `posn-timestamp'
Po Lu [Sat, 16 Jul 2022 13:02:47 +0000 (21:02 +0800)]
Improve documentation of `posn-timestamp'

* doc/lispref/commands.texi (Accessing Mouse): Improve
documentation of `posn-timestamp' by actually describing the
timestamp it returns.

2 years agoUpdate `eshell-variable-aliases-list` defcustom type
Mattias Engdegård [Sat, 16 Jul 2022 12:03:43 +0000 (14:03 +0200)]
Update `eshell-variable-aliases-list` defcustom type

* lisp/eshell/esh-var.el (eshell-variable-aliases-list):
Add type for SIMPLE-FUNCTION value.

2 years agoComment docstrings in tramp-test macros
Michael Albinus [Sat, 16 Jul 2022 12:05:06 +0000 (14:05 +0200)]
Comment docstrings in tramp-test macros

* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-stat)
(tramp--test-deftest-with-perl, tramp--test-deftest-with-ls)
(tramp--test-deftest-direct-async-process): Comment docstring,
it doesn't work this way.  Use `tramp-test-vec' if appropriate.

2 years agoWeed out some false positives in help-fns--mention-first-release
Lars Ingebrigtsen [Sat, 16 Jul 2022 11:52:20 +0000 (13:52 +0200)]
Weed out some false positives in help-fns--mention-first-release

* lisp/help-fns.el (help-fns--mention-first-release): Weed out
things that give too many false positives (bug#49062).

2 years agoColored menu highlight in Lucid backend
Manuel Giraud [Mon, 11 Jul 2022 09:14:08 +0000 (11:14 +0200)]
Colored menu highlight in Lucid backend

* lwlib/xlwmenuP.h:
* lwlib/xlwmenu.h:
* lwlib/xlwmenu.c: Introduce resources to handle colored highlighting
of menu entries.
* doc/emacs/xresources.texi (Lucid Resources): Documentation.

2 years agoDecrease network traffic with some XDND programs
Po Lu [Sat, 16 Jul 2022 10:55:49 +0000 (18:55 +0800)]
Decrease network traffic with some XDND programs

* lisp/x-dnd.el (x-dnd-get-drop-width-height):
(x-dnd-get-drop-x-y): Remove functions.

(x-dnd-get-window-rectangle, x-dnd-intersect-rectangles)
(x-dnd-get-object-rectangle, x-dnd-get-drop-rectangle): New
functions.
(x-dnd-handle-xdnd): Generate mouse rectangles consisting of the
object (glyph) under point.

2 years agoAllow ;;;###autoloading transient-define-prefix
Lars Ingebrigtsen [Fri, 15 Jul 2022 11:06:22 +0000 (13:06 +0200)]
Allow ;;;###autoloading transient-define-prefix

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Allow ;;;###autoloading
transient-define-prefix (bug#48694).

* lisp/transient.el (transient-define-prefix): Autoload.

2 years agoOptimise `append` calls
Mattias Engdegård [Fri, 15 Jul 2022 16:55:30 +0000 (18:55 +0200)]
Optimise `append` calls

Add the transforms

  (append) -> nil
  (append X) -> X
  (append '(X) Y) -> (cons 'X Y)
  (append (list X) Y) -> (cons X Y)
  (append (list X...) nil) -> (list X...)

and the argument transforms:

  (list X...) (list Y...) -> (list X... Y...)
  nil -> ;nothing
  CONST1 CONST2 -> CONST1++CONST2
  (list CONSTANTS...) -> '(CONSTANTS...)

(the last three for non-tail arguments only)

* lisp/emacs-lisp/byte-opt.el: New.

2 years agoImproved cons optimisation
Mattias Engdegård [Fri, 15 Jul 2022 21:42:45 +0000 (23:42 +0200)]
Improved cons optimisation

* lisp/emacs-lisp/byte-opt.el (byte-optimize-cons):
Add the transform

 (cons X (list Y...)) -> (list X Y...)

2 years agoTransform (list) -> nil in source optimiser
Mattias Engdegård [Fri, 15 Jul 2022 19:28:30 +0000 (21:28 +0200)]
Transform (list) -> nil in source optimiser

This optimisation is already done in the code generator but performing
it at this earlier stage is a useful normalising step that uncovers
more opportunities.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-list): New.

2 years agoDelete obsolete variable gnus-secondary-servers
Stefan Kangas [Sat, 16 Jul 2022 08:57:26 +0000 (10:57 +0200)]
Delete obsolete variable gnus-secondary-servers

* lisp/gnus/gnus.el (gnus-secondary-servers): Delete variable
obsolete since 24.1.
* lisp/gnus/gnus-group.el (gnus-group-browse-foreign-server):
* lisp/gnus/gnus-int.el (gnus-start-news-server): Don't use above
deleted variable.

2 years ago; * src/xdisp.c (try_window): Expand the commentary. (Bug#56561)
Eli Zaretskii [Sat, 16 Jul 2022 08:21:05 +0000 (11:21 +0300)]
; * src/xdisp.c (try_window): Expand the commentary.  (Bug#56561)

2 years agoFix obsoletion of nntp-authinfo-file
Stefan Kangas [Sat, 16 Jul 2022 07:59:51 +0000 (09:59 +0200)]
Fix obsoletion of nntp-authinfo-file

* lisp/gnus/nntp.el (nntp-authinfo-file): Fix obsoletion.

2 years ago; Fix typos
Stefan Kangas [Thu, 14 Jul 2022 15:33:46 +0000 (17:33 +0200)]
; Fix typos

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 16 Jul 2022 04:30:39 +0000 (06:30 +0200)]
Merge from origin/emacs-28

db259d8fd3 Build Seccomp filter only if we have a 64-bit userspace (B...

2 years agoHandle XDND mouse rects synchronously
Po Lu [Sat, 16 Jul 2022 03:53:42 +0000 (11:53 +0800)]
Handle XDND mouse rects synchronously

* src/xterm.c (x_dnd_send_position): Record event X and Y for
consumption by the XdndStatus handler.  Ignore mouse rects if
waiting for status.
(x_dnd_send_leave): Clear pending DND event.
(handle_one_xevent): When handling XdndStatus, check if the
pending event is contained in the new mouse rect.

2 years ago* lisp/url/url-vars.el (url-mime-separator-chars): Fix last cosmetic change
Stefan Monnier [Fri, 15 Jul 2022 19:59:12 +0000 (15:59 -0400)]
* lisp/url/url-vars.el (url-mime-separator-chars): Fix last cosmetic change

2 years agoExtend tramp-tests
Michael Albinus [Fri, 15 Jul 2022 17:52:10 +0000 (19:52 +0200)]
Extend tramp-tests

* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-stat)
(tramp--test-deftest-with-perl, tramp--test-deftest-with-ls):
New defmacros.
(tramp-test18-file-attributes-with-stat)
(tramp-test18-file-attributes-with-perl)
(tramp-test18-file-attributes-with-ls)
(tramp-test19-directory-files-and-attributes-with-stat)
(tramp-test19-directory-files-and-attributes-with-perl)
(tramp-test19-directory-files-and-attributes-with-ls): New tests.
(tramp-test21-file-links): Delete also `tmp-name2'.
(tramp--test-deftest-direct-async-process): Rename from
`tramp--test--deftest-direct-async-process'.  Remove DOCSTRING.
Adapt callees.
(tramp--test-special-characters): Remove.  Move body to ...
(tramp-test41-special-characters): ... here.
(tramp--test-utf8): Remove.  Move body to ...
(tramp-test42-utf8): ... here.
(tramp-test41-special-characters-with-stat)
(tramp-test41-special-characters-with-perl)
(tramp-test41-special-characters-with-ls)
(tramp-test42-utf8-with-stat)
(tramp-test42-utf8-with-perl)
(tramp-test42-utf8-with-ls): Rewrite, using the new macros.

2 years ago* lisp/tar-mode.el (tar-mode-map): Prefer defvar-keymap.
Stefan Kangas [Fri, 15 Jul 2022 15:38:05 +0000 (17:38 +0200)]
* lisp/tar-mode.el (tar-mode-map): Prefer defvar-keymap.

2 years agoBuild Seccomp filter only if we have a 64-bit userspace (Bug#56549)
Philipp Stephani [Fri, 15 Jul 2022 15:56:02 +0000 (17:56 +0200)]
Build Seccomp filter only if we have a 64-bit userspace (Bug#56549)

* configure.ac (SIZEOF_LONG): New variable.
* lib-src/Makefile.in (SIZEOF_LONG): New variable; added conditional.

2 years agoFix ASAN error with fringe bitmap on NS
Andreas Schwab [Fri, 15 Jul 2022 15:24:19 +0000 (17:24 +0200)]
Fix ASAN error with fringe bitmap on NS

* src/nsterm.m (ns_define_fringe_bitmap): Correctly access fringe
bitmap data.  (Bug#56553)

2 years ago; * src/nsterm.m (ns_draw_window_cursor): Fix last change.
Po Lu [Fri, 15 Jul 2022 14:04:52 +0000 (22:04 +0800)]
; * src/nsterm.m (ns_draw_window_cursor): Fix last change.

2 years agoFix double unfocus during NS cursor display
Po Lu [Fri, 15 Jul 2022 14:00:57 +0000 (22:00 +0800)]
Fix double unfocus during NS cursor display

* src/nsterm.m (ns_draw_window_cursor): Unfocus around calls to
draw_phys_cursor_glyph, then focus again later.  (bug#56559)

2 years agoOnly preserve PRIMARY and CLIPBOARD selection ownership by default
Po Lu [Fri, 15 Jul 2022 13:46:55 +0000 (21:46 +0800)]
Only preserve PRIMARY and CLIPBOARD selection ownership by default

* lisp/cus-start.el (standard): Update defcustom type.
* src/xselect.c (x_should_preserve_selection): New function.
(x_clear_frame_selections): Use it to determine whether or not
to preserve a selection.
* src/xterm.c (x_preserve_selections): Fix tail initialization.
(syms_of_xterm): Update doc string of
`x-auto-preserve-selections'.

2 years agoAvoid infloop in redisplay when displaying a tooltip
Eli Zaretskii [Fri, 15 Jul 2022 10:49:56 +0000 (13:49 +0300)]
Avoid infloop in redisplay when displaying a tooltip

* src/xdisp.c (try_window): Ensure we fail if 'display_line'
indicates that the dimensions of the glyph matrix are
insufficient.  (Bug#56561)

2 years agoTweak how dired-copy-filename-as-kill handles file names with spaces
Lars Ingebrigtsen [Fri, 15 Jul 2022 10:36:33 +0000 (12:36 +0200)]
Tweak how dired-copy-filename-as-kill handles file names with spaces

* lisp/dired.el (dired-copy-filename-as-kill): Quote files
containing spaces (bug#48657).

2 years agoAdjust whitespace tests
Lars Ingebrigtsen [Fri, 15 Jul 2022 10:15:26 +0000 (12:15 +0200)]
Adjust whitespace tests

2 years agoFix whitespace-mode display table restoration logic
Lars Ingebrigtsen [Fri, 15 Jul 2022 10:07:19 +0000 (12:07 +0200)]
Fix whitespace-mode display table restoration logic

* lisp/whitespace.el (whitespace-display-char-on): Fix the saving
logic -- `whitespace-mode' is on by this point (bug#48583).

2 years agoFix mailcap-user-mime-data doc string
Visuwesh [Fri, 15 Jul 2022 09:50:03 +0000 (11:50 +0200)]
Fix mailcap-user-mime-data doc string

* lisp/net/mailcap.el (mailcap-user-mime-data): Make the doc
string reflect the actual structure (bug#56568).

2 years agoFix generated drag-and-drop mouse rectangles
Po Lu [Fri, 15 Jul 2022 08:19:41 +0000 (16:19 +0800)]
Fix generated drag-and-drop mouse rectangles

* lisp/x-dnd.el (x-dnd-get-drop-width-height): Handle window
width and height correctly.  Remove unused parameter.
(x-dnd-after-move-frame): New function.
(move-frame-functions): Add new hook.
(x-dnd-compute-root-window-position): New function.
(x-dnd-get-drop-x-y): Use that instead of `left' and `top'
parameters, which include the title bar.
(x-dnd-handle-xdnd): Update accordingly.
* src/xfns.c (Fx_translate_coordinates): New function.
(syms_of_xfns): New defsym.

2 years agoExtend support for debugging Emacs with LLDB
Gerd Möllmann [Fri, 15 Jul 2022 07:36:10 +0000 (09:36 +0200)]
Extend support for debugging Emacs with LLDB

* etc/emacs_lldb.py: Handle case of Lisp_Object being a
struct (--enable-lisp-type-checking).  Enable Emacs type category by
default.  Expand children in type summary for Lisp_Object.

2 years ago; Ignore Apple Finder files, ignore dap-mode dir.
Gerd Möllmann [Fri, 15 Jul 2022 07:35:00 +0000 (09:35 +0200)]
; Ignore Apple Finder files, ignore dap-mode dir.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 15 Jul 2022 04:30:42 +0000 (06:30 +0200)]
Merge from origin/emacs-28

6a05715552 Update the Samaritan's contact details in M-x doctor
d19834dfda ; Fix typos

2 years agoFix sending button presses if the drop target specified a mouse rectangle
Po Lu [Fri, 15 Jul 2022 02:30:18 +0000 (10:30 +0800)]
Fix sending button presses if the drop target specified a mouse rectangle

* src/xterm.c (x_dnd_send_position): Handle button presses
specially, ignoring mouse rectangles.

2 years agoUse notmuch thread:{} operator instead of performing two searches
Sean Whitton [Thu, 7 Jul 2022 16:34:04 +0000 (09:34 -0700)]
Use notmuch thread:{} operator instead of performing two searches

This also avoids some command line length limit problems (bug#56442).

* gnus-search.el (gnus-search-run-search): Delete notmuch method.
(gnus-search-indexed-search-command): In the notmuch method, when
searching for threads, wrap whole query in thread:{} operator, and
always use --output=files, never --output=threads (bug#56442).

2 years agoFix --without-x build after previous image cache changes
Lars Ingebrigtsen [Thu, 14 Jul 2022 18:07:37 +0000 (20:07 +0200)]
Fix --without-x build after previous image cache changes

* src/alloc.c (garbage_collect): Fix --without-all --without-x build.

2 years agoRestore how (read-from-minibuffer ... read-expression-map) worked
Lars Ingebrigtsen [Thu, 14 Jul 2022 17:58:30 +0000 (19:58 +0200)]
Restore how (read-from-minibuffer ... read-expression-map) worked

* lisp/simple.el (read-expression-map): Don't override RET and C-j
here, since that leads to breakages of other usages of this map
(bug#56548).
(read--expression-map): New map.
(read--expression): Use it.

2 years agoMake gnus display webp images inline
Visuwesh [Thu, 14 Jul 2022 17:41:58 +0000 (19:41 +0200)]
Make gnus display webp images inline

* lisp/gnus/mm-decode.el (mm-inline-media-tests): Add webp handler.
* lisp/net/mailcap.el (mailcap-mime-extensions): Add webp mimetype
(bug#56552).

2 years agoMake image-map commands work with inline image attachments in mm
Lars Ingebrigtsen [Thu, 14 Jul 2022 17:40:06 +0000 (19:40 +0200)]
Make image-map commands work with inline image attachments in mm

* lisp/gnus/mm-view.el (mm-inline-image): Use insert-image so that
point movement is more pleasant and so that image-map commands
work (bug#56554).

2 years ago* lisp/image.el (put-image): Fix typo.
Visuwesh [Thu, 14 Jul 2022 17:33:34 +0000 (19:33 +0200)]
* lisp/image.el (put-image): Fix typo.

* lisp/image.el (put-image): Actually use the image-map keymap
(bug#56554).

2 years agoUse compose-mail in submit-emacs-patch
Visuwesh [Thu, 14 Jul 2022 17:31:35 +0000 (19:31 +0200)]
Use compose-mail in submit-emacs-patch

* lisp/mail/emacsbug.el (submit-emacs-patch): Prefer
compose-mail-other-window over message-mail-other-window (bug#56555).

2 years agoMake ps-print-ensure-fontified obsolete
Stefan Kangas [Thu, 14 Jul 2022 17:08:16 +0000 (19:08 +0200)]
Make ps-print-ensure-fontified obsolete

* lisp/ps-print.el (ps-print-ensure-fontified): Redefine as
obsolete function alias for font-lock-ensure.  Update callers.

2 years agoPrune animation cache when images are no longer reachable
Lars Ingebrigtsen [Thu, 14 Jul 2022 16:58:12 +0000 (18:58 +0200)]
Prune animation cache when images are no longer reachable

* lisp/image.el (image-animate-timeout): Eject cached animated
images that are no longer reachable (bug#56546).

* src/image.c (Fclear_image_cache): Allow specifying a cached
animated image to eject.
(gif_load, webp_load): Adjust what to use as the caching key --
the identity of the list itself is apparently changed by some
callers.

2 years agoMake image-cache-size also include the animation cache
Lars Ingebrigtsen [Thu, 14 Jul 2022 15:18:25 +0000 (17:18 +0200)]
Make image-cache-size also include the animation cache

* src/image.c (struct anim_cache, anim_create_cache): Store approx
cache size.
(gif_load, webp_load): Ditto.
(Fimage_cache_size): Also report animation cache size (bug#56546).

2 years agoPrune the animation cache from gc
Lars Ingebrigtsen [Thu, 14 Jul 2022 15:15:23 +0000 (17:15 +0200)]
Prune the animation cache from gc

* src/alloc.c (garbage_collect): Prune animation cache
(bug#56546).

2 years ago* src/gtkutil.c (xg_free_frame_widgets): Avoid compiler warning.
Eli Zaretskii [Thu, 14 Jul 2022 16:00:12 +0000 (19:00 +0300)]
* src/gtkutil.c (xg_free_frame_widgets): Avoid compiler warning.

2 years ago; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.
Eli Zaretskii [Thu, 14 Jul 2022 15:56:46 +0000 (18:56 +0300)]
; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.

2 years agoUpdate the Samaritan's contact details in M-x doctor
Stefan Kangas [Thu, 14 Jul 2022 15:10:09 +0000 (17:10 +0200)]
Update the Samaritan's contact details in M-x doctor

* lisp/play/doctor.el (doctor-death): Update the Samaritans's contact
details; anon.twwells.com is no longer valid.  Add link to Wikipedia.

2 years agoSilence unused variable warning in a build --without-all
Stefan Kangas [Thu, 14 Jul 2022 14:30:56 +0000 (16:30 +0200)]
Silence unused variable warning in a build --without-all

* src/xfns.c (Fx_double_buffered_p): Silence unused variable warning
in a build --without-all.

2 years agoCompress hashcash headers by default
Stefan Kangas [Thu, 14 Jul 2022 14:13:22 +0000 (16:13 +0200)]
Compress hashcash headers by default

* lisp/mail/hashcash.el (hashcash-extra-generate-parameters):
Use compression by default.

2 years ago; Fix compilation warnings in a build --without-all
Eli Zaretskii [Thu, 14 Jul 2022 13:37:44 +0000 (16:37 +0300)]
; Fix compilation warnings in a build --without-all

* src/xterm.c (x_scroll_bar_expose, handle_one_xevent)
(mark_xterm): Avoid compiler warnings.  (Bug#56551)

2 years agoPacify -Wunused-macros in --without-all builds
Stefan Kangas [Thu, 14 Jul 2022 12:02:27 +0000 (14:02 +0200)]
Pacify -Wunused-macros in --without-all builds

* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.

2 years ago; * lisp/xwidget.el (xwidget-webkit-browse-url): Mark as internal browser.
Po Lu [Thu, 14 Jul 2022 11:50:39 +0000 (19:50 +0800)]
; * lisp/xwidget.el (xwidget-webkit-browse-url): Mark as internal browser.

2 years agoUpdate the 'etags' test suite
Stefan Kangas [Thu, 14 Jul 2022 10:49:30 +0000 (12:49 +0200)]
Update the 'etags' test suite

* ETAGS.good_1:
* ETAGS_good_2:
* ETAGS_good_3:
* ETAGS_good_4:
* ETAGS_good_5:
* ETAGS_good_6: Adapt to recent changes in test sources.

2 years ago; Fix typos
Stefan Kangas [Thu, 14 Jul 2022 10:43:52 +0000 (12:43 +0200)]
; Fix typos

2 years agoTry to restore the initial "daemon" frame when a display goes down
Po Lu [Thu, 14 Jul 2022 10:47:10 +0000 (18:47 +0800)]
Try to restore the initial "daemon" frame when a display goes down

* src/xterm.c (x_try_restore_frame): New function.
(x_connection_closed): Call it if selected_frame is nil.

2 years ago; Fix typos
Stefan Kangas [Thu, 14 Jul 2022 10:24:31 +0000 (12:24 +0200)]
; Fix typos

2 years ago; Fix typos: prefer American spelling
Stefan Kangas [Thu, 14 Jul 2022 09:55:52 +0000 (11:55 +0200)]
; Fix typos: prefer American spelling

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 14 Jul 2022 09:56:56 +0000 (11:56 +0200)]
Merge from origin/emacs-28

76878ce6a0 * etc/PROBLEMS: Describe problems with remote files.  (Bug...

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 14 Jul 2022 09:56:56 +0000 (11:56 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

ae0881e52c ; Auto-commit of loaddefs files.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 14 Jul 2022 09:56:56 +0000 (11:56 +0200)]
Merge from origin/emacs-28

9db6817d63 Remove uneffective test
7af88de410 Mark async worker tmp file as utf-8-emacs-unix (bug#48029)

# Conflicts:
# test/src/comp-resources/comp-test-45603.el
# test/src/comp-tests.el

2 years agoMake clear-image-cache clear the animation cache
Lars Ingebrigtsen [Thu, 14 Jul 2022 09:40:49 +0000 (11:40 +0200)]
Make clear-image-cache clear the animation cache

* src/dispextern.h: Declare image_prune_animation_caches for use
in gc.

* src/image.c (Fclear_image_cache): Clear animation cache.
(anim_prune_animation_cache, anim_get_animation_cache): Allow
clearing in addition to pruning.
(imagemagick_prune_animation_cache)
(imagemagick_get_animation_cache): Ditto.
(image_prune_animation_caches): New function (bug#56546).

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 14 Jul 2022 09:37:42 +0000 (11:37 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

2209650089 Adapt Tramp version (don't merge)

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 14 Jul 2022 09:37:42 +0000 (11:37 +0200)]
Merge from origin/emacs-28

5e47ec9511 ; * lisp/url/url-http.el (url-http-parse-headers): Fix typo.
ba0871bef1 ; Fix typos: prefer American spelling
e3e7f31faa Adapt Tramp doc

# Conflicts:
# etc/NEWS
# etc/themes/modus-themes.el
# lisp/emacs-lisp/byte-opt.el
# test/lisp/so-long-tests/spelling-tests.el

2 years agoImprove support for debugging Emacs with LLDB
Gerd Möllmann [Tue, 12 Jul 2022 10:29:14 +0000 (12:29 +0200)]
Improve support for debugging Emacs with LLDB

* etc/emacs_lldb.py: Refactor and support more Lisp types.

2 years ago* etc/PROBLEMS: Describe problems with remote files. (Bug#56499)
Eli Zaretskii [Thu, 14 Jul 2022 07:00:41 +0000 (10:00 +0300)]
* etc/PROBLEMS: Describe problems with remote files.  (Bug#56499)

2 years ago; * lisp/leim/quail/indian.el (tamil-translation-rules): Doc fix.
Eli Zaretskii [Thu, 14 Jul 2022 06:33:26 +0000 (09:33 +0300)]
; * lisp/leim/quail/indian.el (tamil-translation-rules): Doc fix.

2 years agoAdd new customizable phonetic Tamil input method
Visuwesh [Sun, 10 Jul 2022 03:29:40 +0000 (08:59 +0530)]
Add new customizable phonetic Tamil input method

* lisp/language/indian.el ("Tamil"): Change the default input method
of the Tamil language environment to the new input method.

* lisp/leim/quail/indian.el
(quail-tamil-itrans-compute-syllable-table): New function extracted
from...
(quail-tamil-itrans-syllable-table): ... here.  Use the above
function.
(quail-tamil-itrans--consonant-order): Auxiliary variable for the
above function.
(quail-tamil-itrans-compute-signs-table): Add new VARIOUS argument.
(quail-tamil-itrans-various-signs-and-digits-table)
(quail-tamil-itrans-various-signs-table): Adjust call to the above
function.

("tamil-phonetic"): Add new input method.
(tamil-input): New group for the input method.
(tamil-translation-rules): New defcustom for the input method to
change the translation rules.

(tamil--syllable-table, tamil--signs-table, tamil--hashtables)
(tamil--vowel-signs): Internal variables used by the input method.
(tamil--setter, tamil--make-tables)
(tamil--update-quail-rules): Internal functions for the input method.
(bug#56323)

* etc/NEWS: Announce the new input method.

2 years agoFix killing Emacs upon display disconnect
Po Lu [Thu, 14 Jul 2022 03:47:00 +0000 (11:47 +0800)]
Fix killing Emacs upon display disconnect

* src/xterm.c (x_connection_closed): On Xt builds terminals can
be left alive without any frames on them, so take that into
account.  (bug#56528)

2 years ago; * src/xterm.c (x_error_handler): Fix magic numbers.
Po Lu [Thu, 14 Jul 2022 01:11:37 +0000 (09:11 +0800)]
; * src/xterm.c (x_error_handler): Fix magic numbers.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 13 Jul 2022 19:07:10 +0000 (21:07 +0200)]
; Auto-commit of loaddefs files.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 13 Jul 2022 19:03:48 +0000 (21:03 +0200)]
; Auto-commit of loaddefs files.

2 years agoPrefer defvar-keymap in tab-bar.el
Stefan Kangas [Wed, 13 Jul 2022 18:01:55 +0000 (20:01 +0200)]
Prefer defvar-keymap in tab-bar.el

* lisp/tab-bar.el: Prefer keymap-set.
(tab-bar-map, tab-switcher-mode-map)
(tab-bar-switch-repeat-map, tab-bar-move-repeat-map): Prefer
defvar-keymap.

2 years agoRemove uneffective test
Andrea Corallo [Fri, 8 Jul 2022 13:54:20 +0000 (15:54 +0200)]
Remove uneffective test

* test/src/comp-tests.el (45603-1): Remove test.
* test/src/comp-resources/comp-test-45603.el: Delete.

2 years agoMark async worker tmp file as utf-8-emacs-unix (bug#48029)
Andrea Corallo [Fri, 8 Jul 2022 08:27:45 +0000 (10:27 +0200)]
Mark async worker tmp file as utf-8-emacs-unix (bug#48029)

* lisp/emacs-lisp/comp.el (comp-final): Mark async worker tmp file
as utf-8.
* test/src/comp-tests.el (48029-1): New test.
* test/src/comp-resources/comp-test-funcs.el
(comp-test-48029-nonascii-žžž-f): New function.

2 years ago* lisp/vc/vc-bzr.el (vc-bzr-program): Support breezy.
Stefan Kangas [Wed, 13 Jul 2022 12:40:53 +0000 (14:40 +0200)]
* lisp/vc/vc-bzr.el (vc-bzr-program): Support breezy.

2 years agoMake smtpmail try all auth methods
Lars Ingebrigtsen [Wed, 13 Jul 2022 12:34:30 +0000 (14:34 +0200)]
Make smtpmail try all auth methods

* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Try all valid
methods, even if one fails (bug#48562).