]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoReplace flyspell-use-mouse-3-for-menu with context-menu-mode (bug#50067)
Juri Linkov [Fri, 27 Aug 2021 06:24:07 +0000 (09:24 +0300)]
Replace flyspell-use-mouse-3-for-menu with context-menu-mode (bug#50067)

* doc/emacs/fixit.texi (Spelling): Replace mentions of
flyspell-use-mouse-3-for-menu with context-menu-mode.

* lisp/mouse.el (context-menu-map): Use the function from the
text property context-menu-function at mouse click event.

* lisp/textmodes/flyspell.el (flyspell--set-use-mouse-3-for-menu):
Remove function.
(flyspell-use-mouse-3-for-menu): Remove defcustom added recently in 28.1.
(flyspell-context-menu): New function.
(flyspell-mode): Don't call flyspell--set-use-mouse-3-for-menu.
(flyspell-mode-on): Replace flyspell-use-mouse-3-for-menu
with context-menu-mode.
(make-flyspell-overlay): When context-menu-mode is non-nil,
put overlay context-menu-function with flyspell-context-menu
instead of using keymap flyspell-mouse-map.

3 years agopython-shell-interpreter doc string clarification
Lars Ingebrigtsen [Fri, 27 Aug 2021 02:49:57 +0000 (04:49 +0200)]
python-shell-interpreter doc string clarification

* lisp/progmodes/python.el (python-shell-interpreter): Note what
to do when using ipython3 (bug#44732).

3 years agoFix backtrace when query-about-changed-file nil and file has changed
Lars Ingebrigtsen [Fri, 27 Aug 2021 02:00:58 +0000 (04:00 +0200)]
Fix backtrace when query-about-changed-file nil and file has changed

* lisp/userlock.el (userlock--check-content-unchanged): Make the
assertion more robust -- we may be called here from a different
contexts if `query-about-changed-file' is nil.

3 years agoFix recentering issue in `follow-mode'
Noah Evans [Fri, 27 Aug 2021 01:43:19 +0000 (03:43 +0200)]
Fix recentering issue in `follow-mode'

* lisp/follow.el (follow-recenter): Make `C-c . C-l' work in
windows before the middle one, too (bug#50220).

Copyright-paperwork-exempt: yes

3 years agoEnable setting timeclock-workday after switching mode on
Lars Ingebrigtsen [Fri, 27 Aug 2021 01:10:46 +0000 (03:10 +0200)]
Enable setting timeclock-workday after switching mode on

* lisp/calendar/timeclock.el (timeclock--previous-workday): New
variable.
(timeclock-find-discrep): Use it to flush values when
timeclock-workday changes (bug#50216).
(timeclock-mode-line-display): Mention `timeclock-workday' setting
in doc string.

3 years agoFix problem with symlinks in compile buffers
Lars Ingebrigtsen [Thu, 26 Aug 2021 17:28:34 +0000 (19:28 +0200)]
Fix problem with symlinks in compile buffers

* lisp/progmodes/compile.el (compilation-find-file): Avoid
`expand-file-name' when computing the file names, because that will
reliably give the wrong result when there's symlinks and ".."
involved (bug#8035).

3 years agotimeclock.el: Update example configuration
Philip Kaludercic [Thu, 26 Aug 2021 14:23:29 +0000 (16:23 +0200)]
timeclock.el: Update example configuration

* lisp/calendar/timeclock.el: Update comments that were no longer
correct (bug#50211).

3 years agoMake dired-chmod-program obsolete
Lars Ingebrigtsen [Thu, 26 Aug 2021 14:12:17 +0000 (16:12 +0200)]
Make dired-chmod-program obsolete

* lisp/dired.el (dired-chmod-program): Make into a defvar and make
obsolete (bug#50190).

* lisp/net/ange-ftp.el (ange-ftp-process-file): Remove usage of
dired-chmod-program.

3 years agoRevert "Add support for "bright" ANSI colors in ansi-color"
Lars Ingebrigtsen [Thu, 26 Aug 2021 13:22:28 +0000 (15:22 +0200)]
Revert "Add support for "bright" ANSI colors in ansi-color"

This reverts commit c8e3347ec01a9ed6dc8d88c2dbbb3a08497e8eb2.

Jim Porter's paperwork isn't finalised yet.

3 years agoRevert "Add support for "bright" ANSI colors in term-mode"
Lars Ingebrigtsen [Thu, 26 Aug 2021 13:21:52 +0000 (15:21 +0200)]
Revert "Add support for "bright" ANSI colors in term-mode"

This reverts commit 2b2a103db0c3597c7685d3ffff4bca7f2e4d094e.

Jim Porter's paperwork isn't finalized yet.

3 years agoRevert "Add missing :version tags to new faces"
Lars Ingebrigtsen [Thu, 26 Aug 2021 13:21:10 +0000 (15:21 +0200)]
Revert "Add missing :version tags to new faces"

This reverts commit 9759fb596b634db2faf7edcd4fd557a11abe9903.

Jim Porter's paperwork isn't finalized yet.

3 years agoImprove robustness of shadowfile.el
Michael Albinus [Thu, 26 Aug 2021 11:14:19 +0000 (13:14 +0200)]
Improve robustness of shadowfile.el

* lisp/shadowfile.el (shadow-site-help): New defconst.
(shadow-read-site): Use it.
(shadow-make-fullname, shadow-contract-file-name)
(shadow-define-literal-group): Handle errors more robust.  (Bug#49596)

* test/lisp/shadowfile-tests.el (shadow-test06-literal-groups):
Extend test.

3 years agoFix docs about the meaning of the Re: in the subject
Tassilo Horn [Thu, 26 Aug 2021 10:51:08 +0000 (12:51 +0200)]
Fix docs about the meaning of the Re: in the subject

* doc/misc/message.texi (Message Headers): Clarify that it comes from
the Latin "res" meaning "in the matter of" rather than "in response
to" as claimed previously (see RFC-2822).

3 years agoDefine a substitute for <menu> on MS-Windows
Eli Zaretskii [Thu, 26 Aug 2021 07:40:35 +0000 (10:40 +0300)]
Define a substitute for <menu> on MS-Windows

* lisp/mouse.el (context-menu-mode-map): On w32, use <apps>
in addition to (the mostly non-existent) <menu>.

3 years agoRename arguments for clarity
Dmitry Gutov [Thu, 26 Aug 2021 01:48:05 +0000 (04:48 +0300)]
Rename arguments for clarity

* lisp/vc/vc-git.el (vc-git--literal-pathspecs)
(vc-git--literal-pathspecs):
Rename arguments for clarity (bug#39452).

3 years agoMake sure to remove the remote specification before adding :(literal)
Dmitry Gutov [Thu, 26 Aug 2021 01:44:21 +0000 (04:44 +0300)]
Make sure to remove the remote specification before adding :(literal)

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Make sure to remove the remote specification from the file name
(bug#50175, bug#39452).

3 years ago; * lisp/time-stamp.el: Doc string wording improvements.
Stephen Gildea [Thu, 26 Aug 2021 01:14:36 +0000 (18:14 -0700)]
; * lisp/time-stamp.el: Doc string wording improvements.

3 years ago* lisp/term/xterm.el (xterm-function-map): Map `\e[29~` to `menu`
Stefan Monnier [Wed, 25 Aug 2021 22:27:35 +0000 (18:27 -0400)]
* lisp/term/xterm.el (xterm-function-map): Map `\e[29~` to `menu`

3 years agoHandle nil messages in repeat-echo-message.
Gabriel do Nascimento Ribeiro [Tue, 24 Aug 2021 14:23:49 +0000 (11:23 -0300)]
Handle nil messages in repeat-echo-message.

* lisp/repeat.el (repeat-echo-message): Handle cases where
'current-message' is nil (bug#50176).

3 years agoMake thingatpt respect fields
Lars Ingebrigtsen [Wed, 25 Aug 2021 16:04:43 +0000 (18:04 +0200)]
Make thingatpt respect fields

* lisp/thingatpt.el (thing-at-point): Make thingatpt respect
fields (bug#9454).

3 years agoMake `set-locale-environment' complete over locale names
Lars Ingebrigtsen [Wed, 25 Aug 2021 15:33:03 +0000 (17:33 +0200)]
Make `set-locale-environment' complete over locale names

* lisp/international/mule-cmds.el (get-locale-names): New function.
(set-locale-environment): Use it to allow completion (bug#9655).

3 years agoSpeed up pcm completion styles for patternless special case
João Távora [Wed, 25 Aug 2021 15:25:20 +0000 (16:25 +0100)]
Speed up pcm completion styles for patternless special case

Fixes: bug#48841
* lisp/minibuffer.el (completion-flex-all-completions): Skip
completion-pcm--hilit-commonality if there's no pattern yet.

3 years ago; Merge from origin/emacs-27
Glenn Morris [Wed, 25 Aug 2021 14:51:41 +0000 (07:51 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

5b03849102 (origin/emacs-27) ; * test/lisp/files-tests.el: Add tests ...

3 years agoDisable xterm selection operators in stterm
Lars Ingebrigtsen [Wed, 25 Aug 2021 14:27:37 +0000 (16:27 +0200)]
Disable xterm selection operators in stterm

* lisp/term/st.el (xterm-st-extra-capabilities): st doesn't
support the xterm selection things (bug#50192).

3 years agoAdd missing :version tags to new faces
Eli Zaretskii [Wed, 25 Aug 2021 12:29:52 +0000 (15:29 +0300)]
Add missing :version tags to new faces

* lisp/term.el (term-color-bright-black, term-color-bright-red)
(term-color-bright-green, term-color-bright-yellow)
(term-color-bright-blue, term-color-bright-magenta)
(term-color-bright-cyan, term-color-bright-white): Add :version.

3 years agoAdd support for "bright" ANSI colors in term-mode
Jim Porter [Tue, 24 Aug 2021 22:46:06 +0000 (15:46 -0700)]
Add support for "bright" ANSI colors in term-mode

* list/term.el (ansi-term-color-vector): Add new faces.
(term-color-white): Tweak colors.
(term-color-bright-black, term-color-bright-red, term-color-bright-green)
(term-color-bright-yellow, term-color-bright-blue)
(term-color-bright-magenta, term-color-bright-cyan)
(term-color-bright-white): New faces.
(term--maybe-brighten-color): New function.
(term-handle-colors-array): Handle bright colors.
* test/lisp/term-tests.el (term-colors, term-colors-bold-is-bright):
New functions.

3 years agoAdd support for "bright" ANSI colors in ansi-color
Jim Porter [Tue, 24 Aug 2021 00:51:05 +0000 (17:51 -0700)]
Add support for "bright" ANSI colors in ansi-color

* lisp/ansi-color.el (ansi-bright-color-names-vector): New defcustom.
(ansi-color-bold-is-bright): New defcustom.
(ansi-color--find-face): Sort ANSI codes and check
'ansi-color-bold-is-bright'.
(ansi-color-apply-sequence): Support bright ANSI colors.
(ansi-color--fill-color-map): New function.
(ansi-color-make-color-map): Add bright ANSI colors.
(ansi-color-get-face-1): Add BRIGHT parameter.
* test/lisp/ansi-color-tests.el
(ansi-color-apply-on-region-bold-is-bright-test): New function.

3 years agotabulated-list-print delete excess lines
Shitikanth Kashyap [Wed, 25 Aug 2021 11:34:45 +0000 (13:34 +0200)]
tabulated-list-print delete excess lines

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Ensure
that we delete remaining lines if the list has gotten shorter
(bug#50194).

Copyright-paperwork-exempt: yes

3 years agoAdd support for OSC escape codes in comint
Augusto Stoffel [Wed, 25 Aug 2021 10:29:22 +0000 (12:29 +0200)]
Add support for OSC escape codes in comint

* doc/emacs/misc.texi (Shell Mode): Document it.

* lisp/comint.el (comint-osc-handlers, comint-osc--marker): New
variables.
(comint-osc-process-output): New function.
(comint-osc-hyperlink-map): New map.
(comint-osc-hyperlink-handler): New function.

3 years agoFix up deleting auto-save/killing buffer wrt. `auto-save-visited-mode'
Lars Ingebrigtsen [Wed, 25 Aug 2021 09:58:27 +0000 (11:58 +0200)]
Fix up deleting auto-save/killing buffer wrt. `auto-save-visited-mode'

* src/buffer.c (Fkill_buffer): Respect `auto-save-visited-mode'.

3 years agoFurther checks for kill-buffer-delete-auto-save-files
Lars Ingebrigtsen [Wed, 25 Aug 2021 09:49:52 +0000 (11:49 +0200)]
Further checks for kill-buffer-delete-auto-save-files

* src/buffer.c (Fkill_buffer): Check that the auto-save file
exists before asking whether to delete it.

3 years agoFix up previous conf-mode/tex-mode redirection hacks
Lars Ingebrigtsen [Wed, 25 Aug 2021 09:41:38 +0000 (11:41 +0200)]
Fix up previous conf-mode/tex-mode redirection hacks

* lisp/textmodes/conf-mode.el (conf-mode):
* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): The
previous hack to these redirections would disable all local
variables.  Try to work around this a bit more.

3 years agoSome precisements in Tramp's connection type handling
Michael Albinus [Tue, 24 Aug 2021 19:42:42 +0000 (21:42 +0200)]
Some precisements in Tramp's connection type handling

* doc/misc/tramp.texi (Remote processes): Precise connection type
handling.

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
* lisp/net/tramp.el (tramp-handle-make-process):
Fix :connection-type handling.
(tramp-action-show-and-confirm-message): Pacify byte compiler.

* lisp/net/tramp-compat.el (tramp-compat-ignore-error): New defmacro.

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Extend tests.

3 years ago* lisp/mouse.el (context-menu-mode-map): Bind [menu] to context-menu-open.
Ergus [Tue, 24 Aug 2021 18:08:54 +0000 (21:08 +0300)]
* lisp/mouse.el (context-menu-mode-map): Bind [menu] to context-menu-open.

https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg01004.html

3 years ago* lisp/mouse.el (context-menu-buffers): New function (bug#50067).
Juri Linkov [Tue, 24 Aug 2021 17:23:02 +0000 (20:23 +0300)]
* lisp/mouse.el (context-menu-buffers): New function (bug#50067).

(context-menu-functions): Add context-menu-buffers to the choice list.

3 years agoDoc that dired-do-chmod no longer follows symlinks
Paul Eggert [Tue, 24 Aug 2021 17:15:43 +0000 (10:15 -0700)]
Doc that dired-do-chmod no longer follows symlinks

* doc/emacs/dired.texi (Operating on Files):
* etc/NEWS: Document this security precaution.

3 years ago; * lisp/repeat.el (repeat-echo-message): Use `string-search`.
Mattias Engdegård [Tue, 24 Aug 2021 13:57:07 +0000 (15:57 +0200)]
; * lisp/repeat.el (repeat-echo-message): Use `string-search`.

3 years agoFix to clear echo-area after repeat-exit-timeout.
Gabriel do Nascimento Ribeiro [Mon, 23 Aug 2021 22:05:58 +0000 (19:05 -0300)]
Fix to clear echo-area after repeat-exit-timeout.

* lisp/repeat.el (repeat-echo-message): Use 'string-match-p'
to handle cases where echo-area contains other messages (bug#50176).

3 years ago; * lisp/time-stamp.el: Improve doc strings.
Stephen Gildea [Tue, 24 Aug 2021 03:04:02 +0000 (20:04 -0700)]
; * lisp/time-stamp.el: Improve doc strings.

Thanks to VEB for her help with the clarity of the documentation.

3 years ago; migrate MH-E to mail-parse library
Stephen Gildea [Tue, 24 Aug 2021 02:58:13 +0000 (19:58 -0700)]
; migrate MH-E to mail-parse library

Move MH-E from low-level libraries to the high-level mail-parse library.

* lisp/mh-e/mh-comp.el: replace ietf-drums-parse-address with
mail-header-parse-address.
* lisp/mh-e/mh-junk.el: replace ietf-drums-parse-address with
mail-header-parse-address; remove mh-funcall-if-exists wrapper.
* lisp/mh-e/mh-xface.el: replace ietf-drums-parse-address with
mail-header-parse-address; remove fboundp wrapper.
* lisp/mh-e/mh-mime.el: replace rfc2047-decode-region with
mail-decode-encoded-word-region.

3 years agoDocument 'jit-lock-bounds'
Eli Zaretskii [Mon, 23 Aug 2021 20:14:00 +0000 (23:14 +0300)]
Document 'jit-lock-bounds'

* doc/lispref/modes.texi (Other Font Lock Variables):
* lisp/jit-lock.el (jit-lock-functions, jit-lock-register):
Document the return value of the fontification functions.

3 years agoImprove documentation of 'inhibit-mouse-event-check'
Eli Zaretskii [Mon, 23 Aug 2021 19:14:03 +0000 (22:14 +0300)]
Improve documentation of 'inhibit-mouse-event-check'

* etc/NEWS:
* src/callint.c (syms_of_callint): Fix wording of the
documentation of 'inhibit-mouse-event-check'.

3 years agoAdd example of advanced user-defined Rx form to manual
Mattias Engdegård [Mon, 23 Aug 2021 15:02:51 +0000 (17:02 +0200)]
Add example of advanced user-defined Rx form to manual

* doc/lispref/searching.texi (Extending Rx): Add example illustrating
how to define a user-defined Rx form that performs computation,
from a discussion with Michael Herdeegen (bug#50136).
* lisp/emacs-lisp/rx.el (rx): Clarify evaluation time for `eval`.

3 years ago* lisp/mouse.el (context-menu-open): New command bound to [S-f10].
Juri Linkov [Mon, 23 Aug 2021 17:42:16 +0000 (20:42 +0300)]
* lisp/mouse.el (context-menu-open): New command bound to [S-f10].

* doc/emacs/frames.texi (Menu Mouse Clicks): Mention S-F10
to pop up the context menu.

* src/callint.c (Fcall_interactively):
Use inhibit_mouse_event_check for the case 'e'.
(inhibit-mouse-event-check): New variable.

https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00733.html

3 years agoFix recently added cperl test
Glenn Morris [Mon, 23 Aug 2021 17:36:57 +0000 (10:36 -0700)]
Fix recently added cperl test

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-here-doc-missing-end): Fix quote regexp.

3 years ago; * doc/emacs/files.texi (Auto Save Files): Fix a typo.
Eli Zaretskii [Mon, 23 Aug 2021 16:19:13 +0000 (19:19 +0300)]
; * doc/emacs/files.texi (Auto Save Files): Fix a typo.

3 years agoImprove recently-changed docs
Eli Zaretskii [Mon, 23 Aug 2021 16:11:49 +0000 (19:11 +0300)]
Improve recently-changed docs

* src/frame.c (Fnext_frame):
* doc/lispref/frames.texi (Finding All Frames): Improve wording
and style of the 'next-frame's documentation.

3 years agoFix doc strings in recent changes.
Eli Zaretskii [Mon, 23 Aug 2021 16:01:09 +0000 (19:01 +0300)]
Fix doc strings in recent changes.

* lisp/progmodes/cperl-mode.el (cperl-commentify)
(cperl-here-doc-functions, cperl-is-here-doc-p)
(cperl-find-pods-heres): Fix wording, style, and punctuation of
doc strings.

3 years ago; cperl-mode: bugfix / rework fontification of here-docs
Harald Jörg [Mon, 23 Aug 2021 14:26:45 +0000 (16:26 +0200)]
; cperl-mode: bugfix / rework fontification of here-docs

* lisp/progmodes/cperl-mode.el (cperl-mode): Use
`cperl-font-lock-syntactic-face-function'.
(cperl-commentify): Add a docstring, eliminate unused formal
parameter `noface'.
(cperl-is-here-doc-p): New function to detect whether "<<" starts
a here-document, factored out from `cperl-find-pods-heres'.
(cperl-here-doc-functions): New variable: List of functions which
allow here-documents as parameters, for use in
`cperl-is-here-doc-p'.
(cperl-process-here-doc): New function, factored out from
`cperl-find-pods-heres'.  Fixed to keep correct fontification
after non-interactive (elisp) changes (Bug#14343, Bug#28962).
(cperl-find-pods-heres): Extend the doc-string to describe all
parameters.  Don't remove text properties in recursive calls on
the same line.  Call `cperl-process-here-doc' when appropriate.
(cperl-font-lock-syntactic-face-function): New function to
highlight c-style comments as here-documents (adapted from
perl-mode.el).

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test-identify-heredoc): New test for the new function
`cperl-is-here-doc-p'.
(cperl-test-identify-no-heredoc): New test for the new function
`cperl-is-here-doc-p', testing constructs which start with "<<"
but are no here-documents.
(cperl-test-here-doc-missing-end): New test to verify correct
detection of a missing here-document delimiter.
(cperl-test-bug-14343): New test to verify that inserting text
into a here-document with elisp does not break fontification.

3 years agoClarify the documentation of `next-frame'
Lars Ingebrigtsen [Mon, 23 Aug 2021 14:32:33 +0000 (16:32 +0200)]
Clarify the documentation of `next-frame'

* doc/lispref/frames.texi (Finding All Frames): Clarify what it
means to "consider".
* src/frame.c (Fnext_frame): Rewrite doc string to say what the
parameters actually mean (bug#13339).

3 years agoAdd new variable 'kill-buffer/delete-auto-save-files'
Lars Ingebrigtsen [Mon, 23 Aug 2021 13:56:50 +0000 (15:56 +0200)]
Add new variable 'kill-buffer/delete-auto-save-files'

* doc/emacs/files.texi (Auto Save Files): Document it.
* lisp/cus-start.el (standard): Add customize form.

* lisp/files.el (delete-auto-save-files): Move definition to C
(since it's used in the C layer).

* src/buffer.c (Fkill_buffer): Use the new variable (and remove
the old code that apparently didn't trigger for
kill-buffer/delete-auto-save-files.
(syms_of_buffer): Add new variable
kill-buffer-delete-auto-save-files and move definition of
delete-auto-save-files here (bug#21612).

3 years agoComplete implementation of `copy-directory-create-symlink' in Tramp
Michael Albinus [Mon, 23 Aug 2021 13:47:19 +0000 (15:47 +0200)]
Complete implementation of `copy-directory-create-symlink' in Tramp

* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Fix the case
NEWNAME is a directory name with a trailing slash.

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Implement `copy-directory-create-symlink'.  (Bug#10897)

* test/lisp/net/tramp-tests.el
(tramp--test-ignore-make-symbolic-link-error): Move up.
(tramp-test15-copy-directory): Extend test.

3 years ago; * doc/lispref/variables.texi (Local Variables): Fix indexing.
Eli Zaretskii [Mon, 23 Aug 2021 11:50:24 +0000 (14:50 +0300)]
; * doc/lispref/variables.texi (Local Variables): Fix indexing.

3 years ago; * etc/NEWS: Fix wording of a recent change.
Eli Zaretskii [Mon, 23 Aug 2021 11:43:35 +0000 (14:43 +0300)]
; * etc/NEWS: Fix wording of a recent change.

3 years ago* lisp/mouse.el (context-menu-toolbar): New function.
Juri Linkov [Mon, 23 Aug 2021 07:33:36 +0000 (10:33 +0300)]
* lisp/mouse.el (context-menu-toolbar): New function.

(context-menu-functions): Add context-menu-toolbar to choice.
(context-menu-region): Bind "Paste" to mouse-yank-at-click
instead of mouse-yank-primary.
https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00735.html

3 years agoClarify :stderr in the make-process doc string
Lars Ingebrigtsen [Mon, 23 Aug 2021 01:53:41 +0000 (03:53 +0200)]
Clarify :stderr in the make-process doc string

* src/process.c (Fmake_process): Elaborate upon what :stderr does
(bug#50166).

3 years agoUpdate NEWS tagging for modules and parse-time-string
Lars Ingebrigtsen [Mon, 23 Aug 2021 00:25:49 +0000 (02:25 +0200)]
Update NEWS tagging for modules and parse-time-string

3 years agoDocument `dlet'
Lars Ingebrigtsen [Mon, 23 Aug 2021 00:13:40 +0000 (02:13 +0200)]
Document `dlet'

* doc/lispref/variables.texi (Local Variables): Document `dlet'.

3 years agoImprove byte-compile-warnings doc string
Lars Ingebrigtsen [Mon, 23 Aug 2021 00:04:55 +0000 (02:04 +0200)]
Improve byte-compile-warnings doc string

* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Mention
'byte-compile-docstring-max-column'.

3 years agoDo command mode markup in xwidget.el
Lars Ingebrigtsen [Sun, 22 Aug 2021 23:52:16 +0000 (01:52 +0200)]
Do command mode markup in xwidget.el

3 years agoMake xwidget-webkit-enable-plugins a defcustom
Lars Ingebrigtsen [Sun, 22 Aug 2021 23:45:10 +0000 (01:45 +0200)]
Make xwidget-webkit-enable-plugins a defcustom

* lisp/xwidget.el (xwidget-webkit-enable-plugins): Make into
defcustom.

3 years agoFix recent parse-partial-sexp argument validation
Basil L. Contovounesios [Sat, 21 Aug 2021 21:55:58 +0000 (22:55 +0100)]
Fix recent parse-partial-sexp argument validation

* src/syntax.c (parse-partial-sexp): Also handle markers as
arguments (bug#49944).  Tweak error message to follow conventions in
"(elisp) Signaling Errors".

3 years agoSet a unique ID for eln files on macOS (bug#45934)
Andrea Corallo [Sun, 22 Aug 2021 21:08:37 +0000 (22:08 +0100)]
Set a unique ID for eln files on macOS (bug#45934)

* src/comp.c (Fcomp__compile_ctxt_to_file): Set gcc's -install_name
parameter to the real filename.

3 years agoSet label for NSToolbarItem (bug#50159)
Masahiro Nakamura [Sun, 22 Aug 2021 01:13:58 +0000 (10:13 +0900)]
Set label for NSToolbarItem (bug#50159)

* src/nsmenu.m (update_frame_tool_bar): Get label text and pass it to ...
([EmacsToolbar addDisplayItemWithImage:idx:tag:labelText:helpText:enabled:]):
... this that sets label for NSToolbarItem.
* src/nsterm.h
([EmacsToolbar addDisplayItemWithImage:idx:tag:labelText:helpText:enabled:]):
Add labelText argument.

3 years agoImplement `copy-directory-create-symlink' for remote files
Michael Albinus [Sun, 22 Aug 2021 18:44:54 +0000 (20:44 +0200)]
Implement `copy-directory-create-symlink' for remote files

* lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory):
Implement `copy-directory-create-symlink'.  (Bug#10897)

* test/lisp/net/tramp-tests.el (tramp-test15-copy-directory):
Extend test.

3 years agoDouble check completions-group customization variable in Icomplete
João Távora [Sun, 22 Aug 2021 15:36:26 +0000 (16:36 +0100)]
Double check completions-group customization variable in Icomplete

bug#48545

* lisp/icomplete.el (icomplete--augment): Double check completions-group.

3 years agoDon't mess up grouping in completion-all-sorted-completions
João Távora [Sun, 22 Aug 2021 14:56:36 +0000 (15:56 +0100)]
Don't mess up grouping in completion-all-sorted-completions

The default sorting order will mess up the naturally grouped order of
the candidates in the table that specified the group-function.

As seen in xref.el when

   (setq xref-show-definitions-function
         'xref-show-definitions-completing-read)
   (setq completions-group t)
   M-x fido-mode

Also partially seen with C-x 8 RET (M-x insert-char) with

   (setq read-char-by-name-sort 'code)

bug#48545

* lisp/minibuffer.el (completion-all-sorted-completions): Don't
use default sort if there's a group-function in the table.

3 years agoRevert "Fix dired switch (that contain quotes and spaces) parsing"
Lars Ingebrigtsen [Sun, 22 Aug 2021 14:58:19 +0000 (16:58 +0200)]
Revert "Fix dired switch (that contain quotes and spaces) parsing"

This reverts commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd.

The dired switches are documented to not follow shell syntax, but instead
uses a lisp-in-string-form kind of quoting.

3 years agoDon't echo empty string in file-name-with-extension
Colin Woodbury [Sun, 22 Aug 2021 14:27:12 +0000 (16:27 +0200)]
Don't echo empty string in file-name-with-extension

* lisp/files.el (file-name-with-extension): Avoid echoing a filename
string known to be empty (bug#50149).

3 years agoAvoid using %n in emacsclient
Omar Polo [Sun, 22 Aug 2021 14:23:54 +0000 (16:23 +0200)]
Avoid using %n in emacsclient

* lib-src/emacsclient.c (local_sockname): Avoid using %n (bug#50155).

3 years agoSome adaptions for Tramp's security key detection.
Michael Albinus [Sun, 22 Aug 2021 12:50:19 +0000 (14:50 +0200)]
Some adaptions for Tramp's security key detection.

* lisp/net/tramp.el (tramp-security-key-timeout-regexp): New defcustom.
(tramp-action-show-and-confirm-message): Don't use timeout, check
for the timeout message of the ssh command.

3 years agoMake Qhide declaration non-target-specific
Mattias Engdegård [Sun, 22 Aug 2021 08:56:39 +0000 (10:56 +0200)]
Make Qhide declaration non-target-specific

* src/xfns.c (syms_of_xfns): Move DEFSYM from here...
* src/menu.c (syms_of_menu): ... to here.
This fixes the NS build after dd7d966eb40b.

3 years ago* lisp/mouse.el (context-menu-mode-map): New variable.
Ergus [Sun, 22 Aug 2021 08:56:01 +0000 (11:56 +0300)]
* lisp/mouse.el (context-menu-mode-map): New variable.

(context-menu--saved-bindings, context-menu--bind-mouse)
(context-menu--restore-bindings): Remove.
(context-menu-mode): Don't use removed functions.

3 years agoDon't show menu titles with the text property 'hide' (bug#50067)
Juri Linkov [Sun, 22 Aug 2021 08:44:55 +0000 (11:44 +0300)]
Don't show menu titles with the text property 'hide' (bug#50067)

* lisp/mouse.el (context-menu-map): Add menu title "Context Menu"
propertized with the text property 'hide'.

* src/menu.c (x_popup_menu_1): Don't show the title with the non-nil
text property 'hide' on GTK and NS.

3 years ago; * lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions): Doc fix.
Eli Zaretskii [Sun, 22 Aug 2021 08:42:05 +0000 (11:42 +0300)]
; * lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions): Doc fix.

3 years agoImprove documentation of 'set-keyboard-coding-system'
Eli Zaretskii [Sun, 22 Aug 2021 08:32:26 +0000 (11:32 +0300)]
Improve documentation of 'set-keyboard-coding-system'

* doc/lispref/nonascii.texi (Terminal I/O Encoding):
* doc/emacs/mule.texi (Terminal Coding):
* lisp/international/mule.el (set-keyboard-coding-system):
Document that 'set-keyboard-coding-system' has no effect on modern
MS-Windows systems.  (Bug#15289)

3 years ago* test/lisp/international/ucs-normalize-tests.el: Save 30m on hydra.
Glenn Morris [Sun, 22 Aug 2021 01:28:38 +0000 (18:28 -0700)]
* test/lisp/international/ucs-normalize-tests.el: Save 30m on hydra.

3 years agomh-x-image-url-sane-p: accept "https" URLs
Stephen Gildea [Sun, 22 Aug 2021 00:25:46 +0000 (17:25 -0700)]
mh-x-image-url-sane-p: accept "https" URLs

* lisp/mh-e/mh-xface.el (mh-x-image-url-sane-p): Accept https URLs.
* test/lisp/mh-e/mh-xface.el: New file, to test mh-x-image-url-sane-p.

3 years ago; MH-E doc: SourceForge repo is no longer current
Stephen Gildea [Sat, 21 Aug 2021 21:37:54 +0000 (14:37 -0700)]
; MH-E doc: SourceForge repo is no longer current

* doc/misc/mh-e.texi, lisp/mh-e/mh-e.el: Update references to
SourceForge with current URLs and a note that MH-E development
no longer occurs in that repository.

3 years ago* test/Makefile.in: Turn off hydra verbose logging for electric-tests.
Glenn Morris [Sat, 21 Aug 2021 19:17:39 +0000 (12:17 -0700)]
* test/Makefile.in: Turn off hydra verbose logging for electric-tests.

3 years ago* test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.
Glenn Morris [Sat, 21 Aug 2021 18:46:40 +0000 (11:46 -0700)]
* test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.

It's just too slow to run these after every commit.

3 years ago; Load xref when needed (not all functions are autoloaded)
Mattias Engdegård [Sat, 21 Aug 2021 18:16:41 +0000 (20:16 +0200)]
; Load xref when needed (not all functions are autoloaded)

3 years ago* test/lisp/electric-tests.el: Un-skip c-mode tests on hydra.
Glenn Morris [Sat, 21 Aug 2021 16:41:16 +0000 (09:41 -0700)]
* test/lisp/electric-tests.el: Un-skip c-mode tests on hydra.

3 years agoFix failures in recent files tests
Lars Ingebrigtsen [Sat, 21 Aug 2021 15:45:24 +0000 (17:45 +0200)]
Fix failures in recent files tests

* test/lisp/files-tests.el (files-tests-buffer-offer-save)
(files-tests-save-buffers-kill-emacs--asks-to-save-buffers):
`read-event' is called with arguments.

3 years agoClarify cl-defstruct doc string and manual entry somewhat
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:50:16 +0000 (16:50 +0200)]
Clarify cl-defstruct doc string and manual entry somewhat

* doc/misc/cl.texi (Structures): Rename the slot "name" in the
examples to "first-name", since we're talking about the names of
slots a lot here, and having a slot with the name "name" makes the
examples somewhat confusing.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Clarify certain
things about slots (bug#14278).

3 years ago; * lisp/dired.el (dired-jump): Doc fix.
Eli Zaretskii [Sat, 21 Aug 2021 14:38:27 +0000 (17:38 +0300)]
; * lisp/dired.el (dired-jump): Doc fix.

3 years agoFix perldb doc string
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:28:51 +0000 (16:28 +0200)]
Fix perldb doc string

* lisp/progmodes/gud.el (perldb): Fix doc string (bug#14588).

3 years agoClarify dired-jump doc string
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:20:30 +0000 (16:20 +0200)]
Clarify dired-jump doc string

* lisp/dired.el (dired-jump): Make the doc string say what happens
in buffers not visiting files (bug#14733).

3 years ago; Fix Texinfo markup of a recent change
Eli Zaretskii [Sat, 21 Aug 2021 14:15:43 +0000 (17:15 +0300)]
; Fix Texinfo markup of a recent change

* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun): Fix
last change.

3 years ago; * src/syntax.c: Remove a stray comment.
Eli Zaretskii [Sat, 21 Aug 2021 14:13:46 +0000 (17:13 +0300)]
; * src/syntax.c: Remove a stray comment.

3 years agoTweak the comment-start-skip example in the manual
Lars Ingebrigtsen [Sat, 21 Aug 2021 14:07:44 +0000 (16:07 +0200)]
Tweak the comment-start-skip example in the manual

* doc/emacs/programs.texi (Options for Comments): Tweak the
example regexp for comment-start-skip (bug#15006).

3 years agoClarify how to do the `count-words-in-defun' recipe
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:43:06 +0000 (15:43 +0200)]
Clarify how to do the `count-words-in-defun' recipe

* doc/lispintro/emacs-lisp-intro.texi (count-words-in-defun):
Clarify the recipe (bug#15069).

3 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 21 Aug 2021 13:38:24 +0000 (16:38 +0300)]
; * etc/NEWS: Fix last change.

3 years agoMake parse-partial-sexp signal an error if TO is smaller than FROM
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:24:15 +0000 (15:24 +0200)]
Make parse-partial-sexp signal an error if TO is smaller than FROM

* src/syntax.c (Fparse_partial_sexp): Signal an error if TO is
smaller than FROM (bug#49944).

3 years agoMention problems with synthetic fonts on macOS
Lars Ingebrigtsen [Sat, 21 Aug 2021 13:03:21 +0000 (15:03 +0200)]
Mention problems with synthetic fonts on macOS

* etc/PROBLEMS: Mention synthetic fonts (bug#18818).

3 years agoFix display bug on macOS (bug#50112)
Alan Third [Sat, 21 Aug 2021 12:09:37 +0000 (13:09 +0100)]
Fix display bug on macOS (bug#50112)

* src/nsterm.m ([EmacsLayer initWithColorSpace:]): Use the colorspace
setter.
([EmacsLayer setColorSpace:]): Sometimes we seem to get null
colorspaces, so set a default in this case.
([EmacsLayer getContext]): Check whether there's been a surface or
graphics context allocation failure and log it.

3 years ago* configure.ac: Make homebrew check for libgccjit match macports.
Alan Third [Tue, 17 Aug 2021 19:38:55 +0000 (20:38 +0100)]
* configure.ac: Make homebrew check for libgccjit match macports.

3 years agoRemove default "Select" title from NS popup menus (bug#50067)
Mattias Engdegård [Fri, 20 Aug 2021 19:21:05 +0000 (21:21 +0200)]
Remove default "Select" title from NS popup menus (bug#50067)

* src/menu.c (x_popup_menu_1): Remove default "Select" title.
* src/nsmenu.m (ns_menu_show): Allow title to be absent.

3 years agoUse overlay arrow to indicate current *xref* selection
Mattias Engdegård [Sat, 21 Aug 2021 10:38:40 +0000 (12:38 +0200)]
Use overlay arrow to indicate current *xref* selection

* lisp/progmodes/xref.el (xref--set-arrow): New function.
(xref-show-location-at-point, xref-goto-xref)
(xref--next-error-function): Call it.
(xref--show-common-initialize): Remove arrow.

3 years agoAdd "Find References" to context menu (bug#50067)
Mattias Engdegård [Fri, 20 Aug 2021 16:19:43 +0000 (18:19 +0200)]
Add "Find References" to context menu (bug#50067)

The new entry appears next to "Find Definition" and like it only
appears when the context menu was invoked on an identifier.

* lisp/progmodes/prog-mode.el (prog-context-menu): New menu entry.
* lisp/progmodes/xref.el (xref-find-references-at-mouse): New
function, analogous to `xref-find-definitions-at-mouse`.