]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoFilter out the `name' parameter in clone-frame
Lars Ingebrigtsen [Wed, 1 Sep 2021 14:27:06 +0000 (16:27 +0200)]
Filter out the `name' parameter in clone-frame

* lisp/frame.el (clone-frame): Filter out the `name' parameter,
because two frames shouldn't have the same name and this will
lead to a warning.

3 years agoDon't have epg bug out on non-existent packages
Lars Ingebrigtsen [Wed, 1 Sep 2021 10:15:21 +0000 (12:15 +0200)]
Don't have epg bug out on non-existent packages

* lisp/epg.el (epg--start): We may be called from contexts where
the directory doesn't exist, but we need to have an existing
directory here for the process (bug#32004).

3 years agoAdd new macro `with-existing-directory'
Lars Ingebrigtsen [Wed, 1 Sep 2021 10:13:19 +0000 (12:13 +0200)]
Add new macro `with-existing-directory'

* doc/lispref/files.texi (Testing Accessibility): Document it.
* lisp/subr.el (with-existing-directory): New macro (bug#32004).

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Sep 2021 13:45:01 +0000 (06:45 -0700)]
; Auto-commit of loaddefs files.

3 years ago* Add a dll loader entry for gcc_jit_context_new_cast (bug#50315)
Kien Nguyen [Wed, 1 Sep 2021 09:56:51 +0000 (18:56 +0900)]
* Add a dll loader entry for gcc_jit_context_new_cast (bug#50315)

* src/comp.c: Add a dll loader entry for
'gcc_jit_context_new_cast' (bug#50315).

3 years agoAdd new command `clone-frame'
Drew Adams [Wed, 1 Sep 2021 09:42:48 +0000 (11:42 +0200)]
Add new command `clone-frame'

* doc/emacs/frames.texi (Creating Frames): Document it.

* lisp/frame.el (clone-frame): New command and keystroke (bug#34715).

3 years agoMake set-foreground-color display completions using foreground colors
Glenn Morris [Wed, 1 Sep 2021 09:26:51 +0000 (11:26 +0200)]
Make set-foreground-color display completions using foreground colors

* lisp/faces.el (defined-colors-with-face-attributes): Also create
colors for foregrounds (bug#33799).
(read-color): Also allow varying the foreground color.

* lisp/frame.el (set-foreground-color): Vary the foreground color.

3 years agoFix (setf (map-elt map key) (my-func))
Lars Ingebrigtsen [Wed, 1 Sep 2021 08:32:49 +0000 (10:32 +0200)]
Fix (setf (map-elt map key) (my-func))

* lisp/emacs-lisp/map.el (map-elt): Ensure that the value isn't
referenced more than once (bug#50290).

3 years agoAutoload calc-grab-sum-across and calc-grab-sum-down
Lars Ingebrigtsen [Wed, 1 Sep 2021 08:14:33 +0000 (10:14 +0200)]
Autoload calc-grab-sum-across and calc-grab-sum-down

* lisp/calc/calc.el (calc-grab-sum-down):
(calc-grab-sum-across): Autoload, since they can be used from
outside Calc (bug#50311).

3 years agoIn batch mode, avoid killing Emacs with C-g in the minibuffer
Miha Rihtaršič [Wed, 1 Sep 2021 08:10:44 +0000 (10:10 +0200)]
In batch mode, avoid killing Emacs with C-g in the minibuffer

* src/keyboard.c (Fcommand_error_default_function): Don't kill emacs
when handling the minibuffer-quit condition (bug#48603).

3 years agoUse "gzip -d" instead of "gunzip"
Marco Centurion [Wed, 1 Sep 2021 07:37:12 +0000 (09:37 +0200)]
Use "gzip -d" instead of "gunzip"

* lisp/dired-aux.el (dired-compress-file-suffixes): Use "gzip -d"
instead of "gunzip" since we already assume that "gzip" exists on
the system (bug#10990).

Copyright-paperwork-exempt: yes

3 years agoAvoid failing if vc backend doesn't implement ignore-completion-table
Philip Kaludercic [Tue, 31 Aug 2021 20:24:02 +0000 (22:24 +0200)]
Avoid failing if vc backend doesn't implement ignore-completion-table

* project.el (project-ignores): Handle vc-not-supported signals

3 years ago; Add comment to tramp-read-passwd for debugging
Michael Albinus [Tue, 31 Aug 2021 08:09:38 +0000 (10:09 +0200)]
; Add comment to tramp-read-passwd for debugging

3 years agoRename xref--mouse-2 and adjust documentation
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:50:18 +0000 (04:50 +0200)]
Rename xref--mouse-2 and adjust documentation

* doc/emacs/maintaining.texi (Xref Commands): `mouse-1' is bound
to `xref-goto-xref', not `mouse-2' (bug#35376).
(Xref Commands): Mention what `mouse-2' does.

* lisp/progmodes/xref.el (xref--button-map): Adjust.
(xref-select-and-goto-xref): Rename from xref--mouse-2 (bug#35376).

3 years agoFix point placement after ispell-complete-word
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:31:01 +0000 (04:31 +0200)]
Fix point placement after ispell-complete-word

* lisp/textmodes/ispell.el (ispell-complete-word): Leave point at
the end of the inserted word instead of a less than useful amount
of distance from the start of the word (bug#37552).

3 years agocall-process doc string clarification
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:13:58 +0000 (04:13 +0200)]
call-process doc string clarification

* src/callproc.c (Fcall_process): Explicitly say that "output"
means both stdout and stderr (bug#37906).

3 years agoMake calc plotting through gnuplot work on non-X gnuplots
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:47:45 +0000 (03:47 +0200)]
Make calc plotting through gnuplot work on non-X gnuplots

* lisp/calc/calc-graph.el (calc-graph-plot): Fall back on "dumb"
if we don't support the terminal (bug#50237).
(calc-gnuplot-command): Say whether the command errored out.

3 years agoFix abnf parsing of <prose> elements
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:17:21 +0000 (03:17 +0200)]
Fix abnf parsing of <prose> elements

* lisp/progmodes/ebnf-abn.el (ebnf-abn-lex): Make <prose> parsing
work (bug#39663).

3 years agoMake run-at-time try harder to run at integral multiples
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:04:22 +0000 (03:04 +0200)]
Make run-at-time try harder to run at integral multiples

* lisp/emacs-lisp/timer.el (timer): Add new slot integral-multiple.
(timerp): Adjust.
(timer-event-handler): Recompute the delay if requested
(bug#39099).
(run-at-time): Mark the timer as recomputable if given a t
parameter.

* src/keyboard.c (decode_timer): Adjust.

3 years agoMove the expansion of abbreviated names to vc-git.el
Dmitry Gutov [Mon, 30 Aug 2021 23:47:31 +0000 (02:47 +0300)]
Move the expansion of abbreviated names to vc-git.el

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Perform the expansion of abbreviated file names here instead
(bug#39452).

* lisp/vc/vc.el (vc-root-diff, vc-print-root-log):
Undo the recent change.

3 years ago; cperl-mode.el: Fix border cases of inserting with elisp
Harald Jörg [Mon, 30 Aug 2021 16:53:51 +0000 (18:53 +0200)]
; cperl-mode.el: Fix border cases of inserting with elisp

* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Replace
(and extend) inline comment by a docstring.  Handle edge cases when
inserting text with elisp (related to Bug#28962).
(cperl-process-here-doc): Add syntax-type `here-doc-start'.
(cperl-find-pods-heres): Make sure that the results of this
function are immediately visible.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-14343):
Add test cases for "empty" here-documents and inserting at the
edges of a here-document.

3 years agoImplement proper type conversion in native compiler
Andreas Schwab [Mon, 30 Aug 2021 16:26:46 +0000 (18:26 +0200)]
Implement proper type conversion in native compiler

* src/comp.c (enum cast_kind_of_type): Remove.
(comp_t): Add cast_ptr_to_int, cast_int_to_ptr, remove
cast_type_sizes, cast_type_kind, cast_type_names, cast_union_fields,
cast_union_field_biggest_type.
(emit_coerce): Remove check for type size.
(struct cast_type): Remove bytes_size.
(define_type_punning): New function.
(define_cast_from_to): Implement proper type conversion.
(define_cast_functions): Adjust.  (bug#50230)

3 years ago(cperl-test-bug-14343): Make it work for perl-mode
Stefan Monnier [Mon, 30 Aug 2021 14:52:25 +0000 (10:52 -0400)]
(cperl-test-bug-14343): Make it work for perl-mode

* test/lisp/progmodes/cperl-mode-tests.el (cperl--tests-heredoc-face):
New const.
(cperl-test-heredocs, cperl-test-bug-14343): Use it.
(cperl-test-identify-no-heredoc): Remove left-over message.

3 years ago* test/lisp/progmodes/cperl-mode-tests.el: Adjust here-doc tests for perl-mode
Stefan Monnier [Mon, 30 Aug 2021 14:47:16 +0000 (10:47 -0400)]
* test/lisp/progmodes/cperl-mode-tests.el: Adjust here-doc tests for perl-mode

(cperl-test-identify-heredoc, cperl-test-identify-no-heredoc):
Tweak tests so they can also be used for perl-mode.

3 years ago* etc/NEWS: Fix typo
Stefan Monnier [Mon, 30 Aug 2021 13:16:21 +0000 (09:16 -0400)]
* etc/NEWS: Fix typo

3 years agoImprove documentation of 'ispell-hunspell-add-multi-dic'
Eli Zaretskii [Mon, 30 Aug 2021 12:48:35 +0000 (15:48 +0300)]
Improve documentation of 'ispell-hunspell-add-multi-dic'

* lisp/textmodes/ispell.el (ispell-hunspell-add-multi-dic):
Explain in the doc string how to call from Lisp.  (Bug#50241)

3 years agoMinor improvement in 'get-locale-names' on MS-Windows
Eli Zaretskii [Mon, 30 Aug 2021 12:42:32 +0000 (15:42 +0300)]
Minor improvement in 'get-locale-names' on MS-Windows

* lisp/international/mule-cmds.el (get-locale-names): Delete
duplicate locales from the list returned by the MS-Windows
implementation.

3 years agoFix typo in kill-buffer-delete-auto-save-files NEWS entry
Lars Ingebrigtsen [Mon, 30 Aug 2021 02:54:12 +0000 (04:54 +0200)]
Fix typo in kill-buffer-delete-auto-save-files NEWS entry

3 years agoMake some non-ASCII work in ebnf2ps
Lars Ingebrigtsen [Mon, 30 Aug 2021 01:14:08 +0000 (03:14 +0200)]
Make some non-ASCII work in ebnf2ps

* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Make non-ASCII
work slightly better (bug#39663).

3 years agoFix typo in previous custom.texi change
Lars Ingebrigtsen [Mon, 30 Aug 2021 00:23:37 +0000 (02:23 +0200)]
Fix typo in previous custom.texi change

* doc/emacs/custom.texi (Init Syntax): Fix typo in previous change
-- it's customize-set-variable.

3 years agoMake epg use rfc6068 for decoding %-encoded strings
Lars Ingebrigtsen [Mon, 30 Aug 2021 00:03:15 +0000 (02:03 +0200)]
Make epg use rfc6068 for decoding %-encoded strings

* lisp/epg.el (epg--decode-percent-escape-as-utf-8): Make obsolete
and adjust callers.
(epg--decode-hexstring): Ditto.

* lisp/mail/rfc6068.el (rfc6068-unhexify-string): Allow returning
non-decoded octets (bug#39689).

3 years agoMake rfc2368 obsolete and add rfc6068
Lars Ingebrigtsen [Sun, 29 Aug 2021 23:56:10 +0000 (01:56 +0200)]
Make rfc2368 obsolete and add rfc6068

* lisp/obsolete/rfc2368.el: Moved here and made obsolete.

* lisp/mail/rfc6068.el (rfc6068-unhexify-string): New file.

3 years agoOnly look for the port command on MacOS
Lars Ingebrigtsen [Sun, 29 Aug 2021 23:20:30 +0000 (01:20 +0200)]
Only look for the port command on MacOS

* configure.ac: Only look for the port command on MacOS (bug#50259).

3 years agoMove vc-branch-p and vc-branch-part from vc.el to vc-rcs.el and rename
Lars Ingebrigtsen [Sun, 29 Aug 2021 20:37:30 +0000 (22:37 +0200)]
Move vc-branch-p and vc-branch-part from vc.el to vc-rcs.el and rename

* lisp/vc/vc-rcs.el (vc-rcs-branch-p): Renamed from `vc-branch-p'
(old name made into obsolete alias) and moved from vc.el.
(vc-rcs-branch-part): Renamed from `vc-branch-part'
(old name made into obsolete alias) and moved from vc.el.

3 years agoFix vc test for RCS
Lars Ingebrigtsen [Sun, 29 Aug 2021 19:56:22 +0000 (21:56 +0200)]
Fix vc test for RCS

* test/lisp/vc/vc-tests.el (vc-test--rename-file): Fix test for RCS.

3 years agoMention `set-variable' in the Init Syntax Emacs manual node
Lars Ingebrigtsen [Sun, 29 Aug 2021 19:31:57 +0000 (21:31 +0200)]
Mention `set-variable' in the Init Syntax Emacs manual node

* doc/emacs/custom.texi (Init Syntax): Mention set-variable
(bug#50248).
(Init Examples): Add an example.

3 years agoChange --with-nativecomp to --with-native-compilation in messages
Clément Pit-Claudel [Sun, 29 Aug 2021 19:15:06 +0000 (21:15 +0200)]
Change --with-nativecomp to --with-native-compilation in messages

* configure.ac:
* test/infra/Dockerfile.emba:
* test/infra/gitlab-ci.yml: Fix mentions of --with-nativecomp
(bug#50255).

3 years agoAdd support for OSC 7 in comint (current directory tracking)
Augusto Stoffel [Sun, 29 Aug 2021 18:56:11 +0000 (20:56 +0200)]
Add support for OSC 7 in comint (current directory tracking)

* lisp/comint.el (comint-osc-directory-tracker, comint-osc-handlers):
Define and register a handler for OSC 7.
(comint-osc-process-output): Do fewer checks on
'comint-last-output-start'.

3 years agoTweak sh-script-mode indentation further
Kévin Le Gouguec [Sun, 29 Aug 2021 18:27:56 +0000 (20:27 +0200)]
Tweak sh-script-mode indentation further

* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Allow more parentheses in a token (bug#44592).

3 years agoImprove compatibility with musl-libc (Bug#48789)
Philipp Stephani [Sun, 29 Aug 2021 18:51:39 +0000 (20:51 +0200)]
Improve compatibility with musl-libc (Bug#48789)

* lib-src/seccomp-filter.c (export_filter): Remove use of
nonstandard macro TEMP_FAILURE_RETRY.

3 years ago; * src/xfaces.c (gui_supports_face_attributes_p): Fix typo in comment.
Eli Zaretskii [Sun, 29 Aug 2021 15:03:28 +0000 (18:03 +0300)]
; * src/xfaces.c (gui_supports_face_attributes_p): Fix typo in comment.

3 years agoC++ Mode: handle compound identifiers preceding brace lists correctly
Alan Mackenzie [Sun, 29 Aug 2021 14:03:57 +0000 (14:03 +0000)]
C++ Mode: handle compound identifiers preceding brace lists correctly

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): early in
function, check alternatively for c-back-over-compound-identifier when doing
c-backward-token-2.

* bracelist-36.{cc,res}: New test files.

3 years agoFix libexec installation on NS (bug#50250)
Alan Third [Sun, 29 Aug 2021 12:07:54 +0000 (13:07 +0100)]
Fix libexec installation on NS (bug#50250)

* lib-src/Makefile.in (ns_applibexecdir): New variable.

3 years agoBetter document obsolescence of 'values'
Eli Zaretskii [Sun, 29 Aug 2021 11:47:02 +0000 (14:47 +0300)]
Better document obsolescence of 'values'

* doc/lispref/eval.texi (Eval): Mention that 'values' is obsolete.
* etc/NEWS: Add a rationale for obsoleting 'values'.

3 years ago; Copy contents of oldXMenu/copyright.h into oldXMenu/*.[ch] files
Eli Zaretskii [Sun, 29 Aug 2021 11:28:36 +0000 (14:28 +0300)]
; Copy contents of oldXMenu/copyright.h into oldXMenu/*.[ch] files

3 years agoDisable the NS app when no frames are left (bug#14619, bug#21357, bug#23586)
Alan Third [Wed, 25 Aug 2021 20:00:07 +0000 (21:00 +0100)]
Disable the NS app when no frames are left (bug#14619, bug#21357, bug#23586)

* src/nsfns.m (Fx_create_frame): Enable the app.
* src/nsterm.m (ns_delete_terminal): Disable the app.

3 years ago; Remove copypasta accident
Dmitry Gutov [Sun, 29 Aug 2021 00:58:01 +0000 (03:58 +0300)]
; Remove copypasta accident

3 years agoAdd tests for vc-rename-file
Dmitry Gutov [Sun, 29 Aug 2021 00:17:08 +0000 (03:17 +0300)]
Add tests for vc-rename-file

* test/lisp/vc/vc-tests.el (vc-test--rename-file): New function.
(vc-test-%s05-rename-file): New family of tests (bug#39452).

3 years ago* etc/NEWS: Document the recent xterm.el change for `\e[29~`
Stefan Monnier [Sat, 28 Aug 2021 14:25:16 +0000 (10:25 -0400)]
* etc/NEWS: Document the recent xterm.el change for `\e[29~`

3 years ago* lisp/progmodes/flymake.el: Bind mouse-3 to flymake-menu on mode-line.
Juri Linkov [Fri, 27 Aug 2021 17:11:45 +0000 (20:11 +0300)]
* lisp/progmodes/flymake.el: Bind mouse-3 to flymake-menu on mode-line.

* lisp/progmodes/flymake.el (flymake--mode-line-title):
Bind [mode-line down-mouse-3] to flymake-menu (bug#50067)

3 years agoRevert part of 3572613550f5d1d0b3392dbc809b32f3989e2981 (bug#39452)
Juri Linkov [Fri, 27 Aug 2021 17:09:08 +0000 (20:09 +0300)]
Revert part of 3572613550f5d1d0b3392dbc809b32f3989e2981 (bug#39452)

* lisp/vc/vc-git.el (vc-git-rename-file): Don't use vc-git--literal-pathspecs.

3 years agoFix shell-script-mode indentation of continuation lines
Dario Gjorgjevski [Fri, 27 Aug 2021 17:08:41 +0000 (19:08 +0200)]
Fix shell-script-mode indentation of continuation lines

* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Fix indentation of continuation lines (bug#44592).

3 years agoFix completion of extended "..." syntax in eshell
Michalis V [Fri, 27 Aug 2021 16:46:04 +0000 (18:46 +0200)]
Fix completion of extended "..." syntax in eshell

* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Expand
"..." (bug#19626).

3 years agoDon't overly truncate tabulated-list headers
Lars Ingebrigtsen [Fri, 27 Aug 2021 16:41:42 +0000 (18:41 +0200)]
Don't overly truncate tabulated-list headers

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
Don't overly truncate headers that are before a right-aligned
column (bug#44594).
(tabulated-list--available-space): Separated out into own
function...
(tabulated-list-print-col): ... from here.

3 years agoFix `M-X TAB' completion for commands marked for multiple modes
Lars Ingebrigtsen [Fri, 27 Aug 2021 15:27:52 +0000 (17:27 +0200)]
Fix `M-X TAB' completion for commands marked for multiple modes

* lisp/simple.el (command-completion-using-modes-p): Fix
completion over commands that are defined for multiple modes
(bug#50228).

3 years agoPut advice documentation at the end of the displayed doc string
Lars Ingebrigtsen [Fri, 27 Aug 2021 15:13:00 +0000 (17:13 +0200)]
Put advice documentation at the end of the displayed doc string

* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Put the
advice things at the end of the documentation (bug#50222).  It's
important to have the first line of the original documentation
remain the first line, because it's used when doing one-line
summaries of the function.

3 years agoMake `eshell-command' also work when asynchronous
Thierry Volpiatto [Fri, 27 Aug 2021 15:01:21 +0000 (17:01 +0200)]
Make `eshell-command' also work when asynchronous

* lisp/eshell/esh-cmd.el (eshell-eval-command): Make asynchronous
`eshell-command' work (e.g. `M-x eshell-command RET sleep 10 &')
(bug#50209).

3 years agolisp/newcomment.el: Uncommenting with whitespace `comment-continue'
Christophe Troestler [Fri, 27 Aug 2021 14:37:53 +0000 (16:37 +0200)]
lisp/newcomment.el: Uncommenting with whitespace `comment-continue'

* lisp/newcomment.el (uncomment-region-default-1): Make
all-whitespace `comment-continue' work (bug#50226).

Copyright-paperwork-exempt: yes

3 years ago* Forward `comp-file-preloaded-p' to async workers
Andrea Corallo [Fri, 27 Aug 2021 13:30:20 +0000 (15:30 +0200)]
* Forward `comp-file-preloaded-p' to async workers

* lisp/emacs-lisp/comp.el (comp-run-async-workers): Forward
`comp-file-preloaded-p' to async workers.

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.