Commit graph

158209 commits

Author SHA1 Message Date
Po Lu
200938b95d 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.
2022-07-15 16:19:52 +08:00
Gerd Möllmann
ffe4a5dac0 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.
2022-07-15 09:36:10 +02:00
Gerd Möllmann
3892ec6bb2 ; Ignore Apple Finder files, ignore dap-mode dir. 2022-07-15 09:35:00 +02:00
Stefan Kangas
3dde08e6b4 Merge from origin/emacs-28
6a05715552 Update the Samaritan's contact details in M-x doctor
d19834dfda ; Fix typos
2022-07-15 06:30:42 +02:00
Po Lu
2e0c76e397 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.
2022-07-15 10:30:18 +08:00
Sean Whitton
00eb894a56 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).
2022-07-14 11:47:02 -07:00
Lars Ingebrigtsen
90f8c8400f Fix --without-x build after previous image cache changes
* src/alloc.c (garbage_collect): Fix --without-all --without-x build.
2022-07-14 20:07:37 +02:00
Lars Ingebrigtsen
0ce216b38f 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.
2022-07-14 19:58:30 +02:00
Visuwesh
26af1ca9e9 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).
2022-07-14 19:41:58 +02:00
Lars Ingebrigtsen
d2186160a9 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).
2022-07-14 19:40:06 +02:00
Visuwesh
e802171902 * lisp/image.el (put-image): Fix typo.
* lisp/image.el (put-image): Actually use the image-map keymap
(bug#56554).
2022-07-14 19:34:43 +02:00
Visuwesh
da3338404b 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).
2022-07-14 19:34:43 +02:00
Stefan Kangas
a3cebcf3f1 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.
2022-07-14 19:08:16 +02:00
Lars Ingebrigtsen
564f6c171e 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.
2022-07-14 18:59:09 +02:00
Lars Ingebrigtsen
4c542747bd 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).
2022-07-14 18:59:09 +02:00
Lars Ingebrigtsen
95966b28fb Prune the animation cache from gc
* src/alloc.c (garbage_collect): Prune animation cache
(bug#56546).
2022-07-14 18:59:09 +02:00
Eli Zaretskii
f2e131f1ae * src/gtkutil.c (xg_free_frame_widgets): Avoid compiler warning. 2022-07-14 19:00:12 +03:00
Eli Zaretskii
8c6402844e ; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change. 2022-07-14 18:56:46 +03:00
Stefan Kangas
6a05715552 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.
2022-07-14 17:23:32 +02:00
Stefan Kangas
fdf110b884 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.
2022-07-14 16:34:26 +02:00
Stefan Kangas
2e0f43f113 Compress hashcash headers by default
* lisp/mail/hashcash.el (hashcash-extra-generate-parameters):
Use compression by default.
2022-07-14 16:19:52 +02:00
Eli Zaretskii
c02986e4c3 ; 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)
2022-07-14 16:37:44 +03:00
Stefan Kangas
35238c4fc0 Pacify -Wunused-macros in --without-all builds
* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
2022-07-14 14:02:27 +02:00
Po Lu
2b869237cc ; * lisp/xwidget.el (xwidget-webkit-browse-url): Mark as internal browser. 2022-07-14 19:51:27 +08:00
Stefan Kangas
9ea513134b 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.
2022-07-14 12:52:32 +02:00
Stefan Kangas
41e612cfd6 ; Fix typos 2022-07-14 12:52:32 +02:00
Po Lu
ade1238bce 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.
2022-07-14 18:49:19 +08:00
Stefan Kangas
d19834dfda ; Fix typos 2022-07-14 12:32:48 +02:00
Stefan Kangas
2a05479c22 ; Fix typos: prefer American spelling 2022-07-14 12:13:31 +02:00
Stefan Kangas
ddecd864cf Merge from origin/emacs-28
76878ce6a0 * etc/PROBLEMS: Describe problems with remote files.  (Bug...
2022-07-14 11:56:56 +02:00
Stefan Kangas
3b0df8af91 ; Merge from origin/emacs-28
The following commit was skipped:

ae0881e52c ; Auto-commit of loaddefs files.
2022-07-14 11:56:56 +02:00
Stefan Kangas
c516b49daa 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
2022-07-14 11:56:56 +02:00
Lars Ingebrigtsen
4738aa1e12 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).
2022-07-14 11:49:47 +02:00
Stefan Kangas
3ec7b27852 ; Merge from origin/emacs-28
The following commit was skipped:

2209650089 Adapt Tramp version (don't merge)
2022-07-14 11:37:42 +02:00
Stefan Kangas
4e79f77635 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
2022-07-14 11:37:42 +02:00
Gerd Möllmann
e1d93302c2 Improve support for debugging Emacs with LLDB
* etc/emacs_lldb.py: Refactor and support more Lisp types.
2022-07-14 11:23:25 +02:00
Eli Zaretskii
76878ce6a0 * etc/PROBLEMS: Describe problems with remote files. (Bug#56499) 2022-07-14 10:00:41 +03:00
Eli Zaretskii
63e1b42f5b ; * lisp/leim/quail/indian.el (tamil-translation-rules): Doc fix. 2022-07-14 09:33:26 +03:00
Visuwesh
f6679ccceb 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.
2022-07-14 09:30:56 +03:00
Po Lu
d37ba6f259 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)
2022-07-14 11:47:00 +08:00
Po Lu
9a888323c6 ; * src/xterm.c (x_error_handler): Fix magic numbers. 2022-07-14 09:11:37 +08:00
Stefan Kangas
ae0881e52c ; Auto-commit of loaddefs files. 2022-07-13 21:07:10 +02:00
Stefan Kangas
e4030f25f9 ; Auto-commit of loaddefs files. 2022-07-13 21:03:48 +02:00
Stefan Kangas
6d60028064 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.
2022-07-13 20:01:55 +02:00
Andrea Corallo
9db6817d63 Remove uneffective test
* test/src/comp-tests.el (45603-1): Remove test.
* test/src/comp-resources/comp-test-45603.el: Delete.
2022-07-13 15:19:27 +02:00
Andrea Corallo
7af88de410 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.
2022-07-13 15:19:27 +02:00
Stefan Kangas
8066669826 * lisp/vc/vc-bzr.el (vc-bzr-program): Support breezy. 2022-07-13 14:44:32 +02:00
Lars Ingebrigtsen
3d7a832092 Make smtpmail try all auth methods
* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Try all valid
methods, even if one fails (bug#48562).
2022-07-13 14:35:00 +02:00
Po Lu
9f6d8486b4 Fix recursive calls of x_connection_closed leading to dead terminal
* src/xterm.c (x_connection_closed): Return if called again for
the current display.
(x_io_error_quitter): Fix attributes.  (bug#56528)
2022-07-13 20:16:45 +08:00
Michael Albinus
ad4ccd4d90 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-07-13 13:39:57 +02:00