]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years ago* lisp/emacs-lisp/trace.el: Correct outdated documentation scratch/bulk-tracing
Phil Sainty [Fri, 12 Aug 2022 12:29:22 +0000 (00:29 +1200)]
* lisp/emacs-lisp/trace.el: Correct outdated documentation

Experimenting with `goto-char' and `re-search-backwards' indicates
that this limitation no longer applies.  The rewrite using nadvice in
commit 8b62d7427e12bbf07ab3454cc061a6b43ded56dd might have eliminated
this issue.

2 years ago* lisp/emacs-lisp/trace.el: Allow trace context args to be forms
Phil Sainty [Fri, 12 Aug 2022 07:47:33 +0000 (19:47 +1200)]
* lisp/emacs-lisp/trace.el: Allow trace context args to be forms

This lifts the restriction of context arguments needing to be
functions, when calling trace functions from lisp code.

(trace--read-extra-args, trace-entry-message, trace-entry-message):
Move the output formatting already used for interactive context into
the trace-*-message functions for use in non-interactive cases as
well.  Previously it was necessary for context functions to format
their output in a trace-aware manner, making a custom wrapper function
necessary to obtain well-formatted output even when the desired
context had an existing function.

(trace-function-internal, trace-make-advice): Move the generation of
an 'empty' context function into `trace-make-advice', which now takes
care of generating a function for any non-function context.

(trace-make-context): New function returning a context function for
an expression argument; extracted from `trace--read-extra-args'.
(trace--read-extra-args, trace-make-advice): Call it.

* doc/lispref/debugging.texi: Update documentation.

2 years agofixup! WIP: Add a 'tracing' section to the elisp manual debugging node
Phil Sainty [Wed, 10 Aug 2022 03:01:25 +0000 (15:01 +1200)]
fixup! WIP: Add a 'tracing' section to the elisp manual debugging node

2 years ago* doc/lispref/modes.texi: Docs for obsolete '%m' in mode-line-format
Phil Sainty [Fri, 12 Aug 2022 08:21:28 +0000 (20:21 +1200)]
* doc/lispref/modes.texi: Docs for obsolete '%m' in mode-line-format

2 years agofixup! WIP: Add a 'tracing' section to the elisp manual debugging node
Phil Sainty [Mon, 8 Aug 2022 08:32:17 +0000 (20:32 +1200)]
fixup! WIP: Add a 'tracing' section to the elisp manual debugging node

2 years agofixup! WIP: Add a 'tracing' section to the elisp manual debugging node
Phil Sainty [Sun, 7 Aug 2022 11:34:51 +0000 (23:34 +1200)]
fixup! WIP: Add a 'tracing' section to the elisp manual debugging node

2 years agofixup! WIP: Add a 'tracing' section to the elisp manual debugging node
Phil Sainty [Sat, 30 Jul 2022 11:28:13 +0000 (23:28 +1200)]
fixup! WIP: Add a 'tracing' section to the elisp manual debugging node

Make `after-load' the final argument

This provides greater consistency with the commands which do not have
an AFTER-LOAD argument.

2 years agofixup! New commands for bulk tracing of elisp functions (bug#27397)
Phil Sainty [Sat, 30 Jul 2022 11:25:19 +0000 (23:25 +1200)]
fixup! New commands for bulk tracing of elisp functions (bug#27397)

Make `after-load' the final argument

This provides greater consistency with the commands which do not have
an AFTER-LOAD argument.

2 years agoWIP: Add a 'tracing' section to the elisp manual debugging node
Phil Sainty [Sat, 23 Jul 2022 09:14:24 +0000 (21:14 +1200)]
WIP: Add a 'tracing' section to the elisp manual debugging node

2 years agofixup! New commands for bulk tracing of elisp functions (bug#27397)
Phil Sainty [Fri, 29 Jul 2022 08:04:12 +0000 (20:04 +1200)]
fixup! New commands for bulk tracing of elisp functions (bug#27397)

2 years agoDivide trace runs into pages for easy navigation
Phil Sainty [Sat, 23 Jul 2022 09:04:13 +0000 (21:04 +1200)]
Divide trace runs into pages for easy navigation

* lisp/emacs-lisp/trace.el (trace-make-advice): Set `page-delimiter'
based on `trace-separator'.

2 years agoRename `trace-is-traced' to `trace-is-traced-p'
Phil Sainty [Sun, 10 Jul 2022 09:41:38 +0000 (21:41 +1200)]
Rename `trace-is-traced' to `trace-is-traced-p'

* lisp/emacs-lisp/trace.el: (trace-is-traced-p): Rename from
'trace-is-traced'.  Update callers.

2 years agoNew commands for bulk tracing of elisp functions (bug#27397)
Phil Sainty [Sun, 11 Jun 2017 05:29:53 +0000 (17:29 +1200)]
New commands for bulk tracing of elisp functions (bug#27397)

* lisp/emacs-lisp/trace.el (trace-package, untrace-package)
(trace-regexp, untrace-regexp, trace-library, untrace-library)
(trace-currently-traced): New commands.

(trace-is-traceable-p): New predicate function used for filtering
interactive completions.

(trace--read-function): New function, split from `trace--read-args'.
Changed to use the new `trace-is-traceable-p' predicate.

(trace--read-extra-args): New function, split from `trace--read-args'.
Changed to allow the user to enter an empty string at the context
expression prompt (previously an error; now treated as "nil"), and to
cause a "nil" context expression to produce no context output in the
trace buffer.

(trace--read-args): Removed function.  Replaced by the combination of
`trace--read-function' and `trace--read-extra-args'.

(trace-function-foreground, trace-function-background): Updated
interactive specs to use the new functions.

(trace--read-library, trace--library-defuns, trace--library-autoloads)
(trace--library-provides-autoload-p): New functions for establishing
traceable functions related to specific libraries.

(trace--after-load-alist): New variable.
(trace--after-load, trace--after-load-function)
(trace--remove-after-load, trace--remove-after-load-all):
New functions for optionally re-processing the `trace-regexp',
`untrace-regexp', and `trace-library' calls via
`after-load-functions'.

(untrace-all): Call `trace--remove-after-load-all'.

(trace-is-traced, trace-function-foreground, untrace-function)
(untrace-all): Doc updates/fixes.

Commentary updated to cover the new commands.

Change log updated to cover the main changes since 1993.

* etc/NEWS: Mention the new trace commands.

* doc/lispref/debugging.texi: Mention the new trace commands.

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 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: 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).

2 years agoFix recursive calls of x_connection_closed leading to dead terminal
Po Lu [Wed, 13 Jul 2022 12:16:21 +0000 (20:16 +0800)]
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)

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 13 Jul 2022 11:39:57 +0000 (13:39 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years agoAdapt Tramp version integrated in Emacs 28.2
Michael Albinus [Wed, 13 Jul 2022 11:38:11 +0000 (13:38 +0200)]
Adapt Tramp version integrated in Emacs 28.2

* lisp/net/trampver.el (customize-package-emacs-version-alist):
Adapt Tramp version integrated in Emacs 28.2.

2 years agoRevert "Make mouse-2 respect delete-selection mode"
Lars Ingebrigtsen [Wed, 13 Jul 2022 11:37:05 +0000 (13:37 +0200)]
Revert "Make mouse-2 respect delete-selection mode"

This reverts commit 215a700751f88bba18989e340181361a484d5b3a.

This leads to unintended consequences for cua-mode, among others (bug#56530).

2 years agoMake bibtex-mode not signal errors when used programmatically
Lars Ingebrigtsen [Wed, 13 Jul 2022 11:24:00 +0000 (13:24 +0200)]
Make bibtex-mode not signal errors when used programmatically

* lisp/textmodes/bibtex.el (bibtex-mode): Ensure that the font
lock machinery is set up (bug#48447).

2 years agoAdapt Tramp version (don't merge)
Michael Albinus [Wed, 13 Jul 2022 11:21:45 +0000 (13:21 +0200)]
Adapt Tramp version (don't merge)

* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.3.28.2".
(customize-package-emacs-version-alist):
Add Tramp version integrated in Emacs 28.2.

2 years ago; * lisp/url/url-http.el (url-http-parse-headers): Fix typo.
Stefan Kangas [Wed, 13 Jul 2022 11:11:46 +0000 (13:11 +0200)]
; * lisp/url/url-http.el (url-http-parse-headers): Fix typo.

2 years ago; Fix typos: prefer American spelling
Stefan Kangas [Wed, 13 Jul 2022 11:00:31 +0000 (13:00 +0200)]
; Fix typos: prefer American spelling

2 years agoAdapt Tramp doc
Michael Albinus [Wed, 13 Jul 2022 11:00:30 +0000 (13:00 +0200)]
Adapt Tramp doc

* doc/misc/tramp.texi (Configuration): Mention enable-remote-dir-locals.
(Traces and Profiles): Fix tramp-verbose description.

* lisp/net/tramp.el (tramp-verbose): Fix docstring.

2 years agoMake the rsh command obsolete
Stefan Kangas [Wed, 13 Jul 2022 10:40:54 +0000 (12:40 +0200)]
Make the rsh command obsolete

* lisp/net/telnet.el (rsh): Make obsolete.
(telnet-connect-command, telnet-mode): Adjust documentation for
above change.

2 years ago; Fix typos in the manual
Juri Linkov [Wed, 13 Jul 2022 06:58:14 +0000 (09:58 +0300)]
; Fix typos in the manual

2 years ago; * lisp/term/haiku-win.el: Fix compiler warnings.
Po Lu [Wed, 13 Jul 2022 05:46:59 +0000 (05:46 +0000)]
; * lisp/term/haiku-win.el: Fix compiler warnings.

2 years agoImplement TIMESTAMP target for Haiku selections
Po Lu [Wed, 13 Jul 2022 05:44:31 +0000 (05:44 +0000)]
Implement TIMESTAMP target for Haiku selections

* lisp/term/haiku-win.el (haiku-selection-targets): Fix return
values.
(gui-backend-get-selection): Handle TIMESTAMP specially.
* src/haiku_select.cc (be_get_clipboard_count): New function.
* src/haikuselect.c (Fhaiku_selection_timestamp): New function.
(syms_of_haikuselect): Add new defsubr.
* src/haikuselect.h: Update prototypes.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 13 Jul 2022 04:46:11 +0000 (06:46 +0200)]
Merge from origin/emacs-28

a3dab1e621 Don't mention cl-cXXXr aliases in cl-lib manual

2 years agoNew user option 'webjump-use-internal-browser'
Po Lu [Wed, 13 Jul 2022 04:36:08 +0000 (12:36 +0800)]
New user option 'webjump-use-internal-browser'

* lisp/net/webjump.el (webjump-use-internal-browser): New defcustom.
(webjump): Respect it.  Reported by Youmu <condy0919@gmail.com>.

2 years agoFix closing displays when preserving selections is enabled
Po Lu [Wed, 13 Jul 2022 03:01:59 +0000 (11:01 +0800)]
Fix closing displays when preserving selections is enabled

* src/frame.c (delete_frame): Bind `x-auto-preserve-selections'
to nil if deleting display.
* src/xselect.c (x_clear_frame_selections): Pass original frame
to that function.
* src/xterm.c (x_preserve_selections): Fix determining the new
owner.
(syms_of_xterm): New defsym `x-auto-preserve-selections'.
* src/xterm.h: Update prototypes.

2 years agoTweak image-converter-add-handler interface
Lars Ingebrigtsen [Tue, 12 Jul 2022 23:53:20 +0000 (01:53 +0200)]
Tweak image-converter-add-handler interface

* doc/emacs/files.texi (Image Mode): Adjust documentation.
* lisp/image/image-converter.el (image-convert): Let the converter
know whether it's a file or not.

2 years agoAutoload image-converter-add-handler
Lars Ingebrigtsen [Tue, 12 Jul 2022 23:39:55 +0000 (01:39 +0200)]
Autoload image-converter-add-handler

* lisp/image/image-converter.el (image-converter-add-handler):
Autoload.

2 years agoAdd support for viewing "images" such as Krita (.kra) files
Lars Ingebrigtsen [Tue, 12 Jul 2022 23:36:54 +0000 (01:36 +0200)]
Add support for viewing "images" such as Krita (.kra) files

* doc/emacs/files.texi (Image Mode): Document it.

* lisp/image/image-converter.el (image-converter-add-handler): New
function (bug#48415).
(image-convert): Use it.

2 years ago; * lisp/dirtrack.el: Restore important information in commentary.
Eli Zaretskii [Tue, 12 Jul 2022 17:00:16 +0000 (20:00 +0300)]
; * lisp/dirtrack.el: Restore important information in commentary.

2 years ago; * lisp/dirtrack.el: Improve commentary.
Stefan Kangas [Tue, 12 Jul 2022 16:42:52 +0000 (18:42 +0200)]
; * lisp/dirtrack.el: Improve commentary.

2 years agoDrop obsolete rsh/rlogin from two user options
Stefan Kangas [Tue, 12 Jul 2022 14:32:50 +0000 (16:32 +0200)]
Drop obsolete rsh/rlogin from two user options

* lisp/net/ange-ftp.el (ange-ftp-gateway-program):
* lisp/net/imap.el (imap-shell-program): Drop obsolete "rsh"/"rlogin".

2 years agoMake pcomplete/{rsh,rlogin} into alias for pcomplete/ssh
Stefan Kangas [Tue, 12 Jul 2022 14:32:07 +0000 (16:32 +0200)]
Make pcomplete/{rsh,rlogin} into alias for pcomplete/ssh

* lisp/pcmpl-unix.el (pcomplete/rlogin, pcomplete/rsh): Make into
aliases for 'pcomplete/ssh', as "rsh" and "rlogin" is more often than
not aliases for "ssh" on modern machines.

2 years ago; Fix recent additions to the Eshell manual
Eli Zaretskii [Tue, 12 Jul 2022 14:10:40 +0000 (17:10 +0300)]
; Fix recent additions to the Eshell manual

* doc/misc/eshell.texi (Variables): Fix a @footnote.
(Variables): Fix indexing and @item's in a @table.

2 years ago; * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Doc fix.
Eli Zaretskii [Tue, 12 Jul 2022 14:03:08 +0000 (17:03 +0300)]
; * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Doc fix.

2 years agoRemove rsh from Tramp manual, Overview section
Michael Albinus [Tue, 12 Jul 2022 13:42:17 +0000 (15:42 +0200)]
Remove rsh from Tramp manual, Overview section

* doc/misc/tramp.texi (Overview, Frequently Asked Questions):
Don't mention obsolete rsh and rcp.

2 years agoEnsure Eshell variable aliases properly handle indexing
Jim Porter [Thu, 7 Jul 2022 04:59:11 +0000 (21:59 -0700)]
Ensure Eshell variable aliases properly handle indexing

* lisp/eshell/em-dirs.el (eshell-dirs-initialize): Properly handle
indexing for variable aliases.

* lisp/eshell/esh-var (eshell-variable-aliases-list): Properly handle
indexing for variable aliases, and add SIMPLE-FUNCTION entry for
aliases.
(eshell-get-variable): Update how variable alias functions are called.

* test/lisp/eshell/em-alias-tests.el
(em-alias-test/alias-arg-vars-indices)
(em-alias-test/alias-arg-vars-split-indices)
(em-alias-test/alias-all-args-var-split-indices):
* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var-indices)
(em-dirs-test/oldpwd-var-indices)
(em-dirs-test/directory-ring-var-indices):
* test/lisp/eshell/esh-var-tests.el
(esh-var-test/inside-emacs-var-split-indices)
(esh-var-test/last-result-var-split-indices): New tests.
(esh-var-test/last-arg-var-split-indices): Expand test to check
conversion behavior inside double quotes (bug#56509).

2 years agoAllow Eshell variable aliases to point to other aliases
Jim Porter [Sat, 9 Jul 2022 01:41:07 +0000 (18:41 -0700)]
Allow Eshell variable aliases to point to other aliases

In particular, this resolves an issue where '$+' referenced the real
environment variable '$PWD' instead of the Eshell variable alias of
the same name.  This meant that changing directories in Eshell
wouldn't update the value of '$+'.

* lisp/eshell/esh-var.el (eshell-get-variable): Allow Eshell variable
aliaes to point to other aliases.

* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var)
(em-dirs-test/short-pwd-var): Adapt tests to check this case
(bug#56509).

2 years agoImprove tests/organization for built-in variables
Jim Porter [Mon, 4 Jul 2022 03:05:29 +0000 (20:05 -0700)]
Improve tests/organization for built-in variables

* lisp/eshell/em-dirs.el (eshell-inside-emacs)
(eshell-dirs-initialize): Move 'INSIDE_EMACS' from here...

* lisp/eshell/esh-var.el (eshell-inside-emacs)
(eshell-variable-aliases-alist): ... to here, and improve doc string.

* test/lisp/eshell/eshell-tests.el (eshell-test/inside-emacs-var):
Move from here...

* test/lisp/eshell/esh-var-tests.el (esh-var-test/inside-emacs-var):
... to here.
(esh-var-test/last-arg-var-indices)
(esh-var-test/last-arg-var-split-indices): New tests.

* test/lisp/eshell/em-alias-tests.el:
* test/lisp/eshell/em-dirs-tests.el:
* test/lisp/eshell-em-script-tests.el: New files.

* doc/misc/eshell.texi (Built-ins): Fix 'cd' documentation; it works
with the directory ring, not the directory stack.  Move built-in
variables documentation from here...
(Variables): ... to here, and add documentation for missing built-in
variables.

2 years agoFix buffer-stale-function fix
Lars Ingebrigtsen [Tue, 12 Jul 2022 12:39:52 +0000 (14:39 +0200)]
Fix buffer-stale-function fix

* src/buffer.c (Fmake_indirect_buffer): Kill the local
buffer-stale-function variable instead of setting it
buffer-locally to the default value.  This should have the same
effect, but is less confusing.

2 years agoReduce syncing when fetching selection names during frame deletion
Po Lu [Tue, 12 Jul 2022 12:02:51 +0000 (20:02 +0800)]
Reduce syncing when fetching selection names during frame deletion

* src/xterm.c (x_preserve_selections): Use XCB to asynchronously
fetch the selection owner.

2 years agoDon't mention cl-cXXXr aliases in cl-lib manual
Stefan Kangas [Tue, 12 Jul 2022 11:41:28 +0000 (13:41 +0200)]
Don't mention cl-cXXXr aliases in cl-lib manual

* doc/misc/cl.texi (Lists, List Functions, Efficiency Concerns): Don't
mention 'cl-cXXXr' compatibility aliases for built-in 'cXXXr'
functions.  They shouldn't be used in new code.

2 years agoMake some rst.el compat aliases obsolete
Stefan Kangas [Tue, 12 Jul 2022 11:29:32 +0000 (13:29 +0200)]
Make some rst.el compat aliases obsolete

* lisp/textmodes/rst.el (rst-adjust-section-title)
(rst-display-adornments-hierarchy, rst-straighten-adornments)
(rst-toc-insert-update, rst-goto-section)
(rst-toc-mode-goto-section, rst-toc-mode-mouse-goto)
(rst-toc-mode-mouse-goto-kill, rst-toc-quit-window): Make
compatibility aliases obsolete.

2 years agoMake remote-shell-program default to ssh only
Stefan Kangas [Tue, 12 Jul 2022 10:11:43 +0000 (12:11 +0200)]
Make remote-shell-program default to ssh only

* lisp/files.el (remote-shell-program): Default to "ssh" only.  The
other commands in this list have severe security issues, and it is
easy enough for users to customize them manually if they want to.
See also the discussion in: https://debbugs.gnu.org/56461

2 years agoRecognize gemini in thing-at-point
Stefan Kangas [Tue, 12 Jul 2022 10:02:51 +0000 (12:02 +0200)]
Recognize gemini in thing-at-point

* lisp/thingatpt.el (thing-at-point-uri-schemes): Recognize gemini.

2 years ago; * lisp/completion.el: Remove code commented out since 1990.
Stefan Kangas [Tue, 12 Jul 2022 03:55:07 +0000 (05:55 +0200)]
; * lisp/completion.el: Remove code commented out since 1990.

2 years agoBetter gomoku X colour with bright background
Mattias Engdegård [Tue, 12 Jul 2022 09:08:05 +0000 (11:08 +0200)]
Better gomoku X colour with bright background

* lisp/play/gomoku.el (gomoku-X): Use blue rather than green for
crosses on bright background for better legibility.
(Red for naughts could be adjusted but seems just about bearable.)

2 years agoExpunge unused recompute-lucid-menubar, lucid-menu-bar-dirty-flag
Alan Mackenzie [Tue, 12 Jul 2022 09:31:08 +0000 (09:31 +0000)]
Expunge unused recompute-lucid-menubar, lucid-menu-bar-dirty-flag

This fixes bug #56502.  That function and these variables were manipulated by
the former file emacs-lisp/lmenu.el that was finally expunged from directory
obsolete/ by Stefan Kangas on 2020-05-15.  There remain references to them in
the *.c, and *.m files.

* src/keyboard.c (syms_of_keyboard): Remove declarations of the symbol and
variable.

* src/haikumenu.c (set_frame_menu_bar)
* src/keyboard.c (command_loop_1)
* src/nsmenu.m (ns_update_menubar)
* src/pgtkmenu.c (set_frame_menubar)
* src/xdisp.c (update_menu_bar)
* src/xmenu.c (set_frame_menubar): Remove calls to Qrecompute_lucid_menubar
contitional on Vlucid_menu_bar_dirty_flag.

2 years agoFix preserving selections if `x-lost-selection-functions' signals
Po Lu [Tue, 12 Jul 2022 07:14:04 +0000 (15:14 +0800)]
Fix preserving selections if `x-lost-selection-functions' signals

* src/xterm.c (x_preserve_selections): Get selection owner and
run lost selection hook separately.

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

9183d1672c ; * etc/PROBLEMS: Give a URL for bug#50666.
1f508a8b6f etc/PROBLEMS: Describe issues with native compilation on C...
84a5d47125 ; Fix last change
0461021893 ; * lisp/emacs-lisp/comp.el (native-comp-speed): Explain t...
876317271b * lisp/find-dired.el (find-dired): Doc fix; add crossrefer...

2 years agoTry to save selections from being disowned during frame deletion
Po Lu [Tue, 12 Jul 2022 02:47:23 +0000 (10:47 +0800)]
Try to save selections from being disowned during frame deletion

* lisp/cus-start.el (standard): Add
`x-auto-preserve-selections'.
* src/xselect.c (x_clear_frame_selections): Collect deleted
selections into a variable and preserve them.
* src/xterm.c (x_preserve_selections): New function.
(syms_of_xterm): New variable `x-auto-preserve-selections'.
* src/xterm.h: Update prototypes.

2 years ago; * lisp/textmodes/rst.el: Delete stale comment.
Stefan Kangas [Mon, 11 Jul 2022 23:43:50 +0000 (01:43 +0200)]
; * lisp/textmodes/rst.el: Delete stale comment.

2 years ago* lisp/mail/mail-utils.el (mail-string-delete): Make obsolete.
Stefan Kangas [Mon, 11 Jul 2022 20:32:36 +0000 (22:32 +0200)]
* lisp/mail/mail-utils.el (mail-string-delete): Make obsolete.

2 years ago; * etc/PROBLEMS: Give a URL for bug#50666.
Eli Zaretskii [Mon, 11 Jul 2022 18:24:33 +0000 (21:24 +0300)]
; * etc/PROBLEMS: Give a URL for bug#50666.

2 years agoetc/PROBLEMS: Describe issues with native compilation on Cygwin
Ken Brown [Mon, 11 Jul 2022 17:03:32 +0000 (13:03 -0400)]
etc/PROBLEMS: Describe issues with native compilation on Cygwin