Commit graph

81202 commits

Author SHA1 Message Date
Marco Centurion
a0be0cdbd2 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
2021-09-01 09:38:00 +02:00
Philip Kaludercic
8761d30da0
Avoid failing if vc backend doesn't implement ignore-completion-table
* project.el (project-ignores): Handle vc-not-supported signals
2021-08-31 23:36:55 +02:00
Michael Albinus
e5c481b61c ; Add comment to tramp-read-passwd for debugging 2021-08-31 10:09:38 +02:00
Lars Ingebrigtsen
03dcceeeee 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).
2021-08-31 04:50:18 +02:00
Lars Ingebrigtsen
bd17fe1d9e 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).
2021-08-31 04:31:01 +02:00
Lars Ingebrigtsen
31b06ea36f 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.
2021-08-31 03:47:45 +02:00
Lars Ingebrigtsen
65ddaaf41f Fix abnf parsing of <prose> elements
* lisp/progmodes/ebnf-abn.el (ebnf-abn-lex): Make <prose> parsing
work (bug#39663).
2021-08-31 03:17:21 +02:00
Lars Ingebrigtsen
50765f3f51 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.
2021-08-31 03:04:22 +02:00
Dmitry Gutov
d2ad64b7a5 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.
2021-08-31 02:47:31 +03:00
Harald Jörg
a1887cc5e6 ; 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.
2021-08-30 20:32:41 +02:00
Eli Zaretskii
9e67ef88f2 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)
2021-08-30 15:48:35 +03:00
Eli Zaretskii
b654420b1b 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.
2021-08-30 15:42:32 +03:00
Lars Ingebrigtsen
c221f17b1c Make some non-ASCII work in ebnf2ps
* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Make non-ASCII
work slightly better (bug#39663).
2021-08-30 03:14:08 +02:00
Lars Ingebrigtsen
1dc79aa8fc 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).
2021-08-30 02:03:15 +02:00
Lars Ingebrigtsen
7dabcb1511 Make rfc2368 obsolete and add rfc6068
* lisp/obsolete/rfc2368.el: Moved here and made obsolete.

* lisp/mail/rfc6068.el (rfc6068-unhexify-string): New file.
2021-08-30 01:56:10 +02:00
Lars Ingebrigtsen
5da9b3d2bd 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.
2021-08-29 22:37:30 +02:00
Augusto Stoffel
dce5f7aed6 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'.
2021-08-29 21:32:01 +02:00
Kévin Le Gouguec
6392bc37ab Tweak sh-script-mode indentation further
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Allow more parentheses in a token (bug#44592).
2021-08-29 21:32:01 +02:00
Alan Mackenzie
9a1d54814e 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.
2021-08-29 14:03:57 +00:00
Juri Linkov
55e77a811a * 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)
2021-08-27 20:12:30 +03:00
Juri Linkov
3360f03926 Revert part of 3572613550 (bug#39452)
* lisp/vc/vc-git.el (vc-git-rename-file): Don't use vc-git--literal-pathspecs.
2021-08-27 20:12:30 +03:00
Dario Gjorgjevski
4bb70549f7 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).
2021-08-27 19:08:41 +02:00
Michalis V
9224a86319 Fix completion of extended "..." syntax in eshell
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Expand
"..." (bug#19626).
2021-08-27 18:46:04 +02:00
Lars Ingebrigtsen
e26d628a4e 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.
2021-08-27 18:41:42 +02:00
Lars Ingebrigtsen
185759e07a 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).
2021-08-27 17:27:52 +02:00
Lars Ingebrigtsen
61323c6d76 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.
2021-08-27 17:15:17 +02:00
Thierry Volpiatto
d0693617b8 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).
2021-08-27 17:15:17 +02:00
Christophe Troestler
0d45ad99da 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
2021-08-27 17:15:17 +02:00
Andrea Corallo
f7da671493 * 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.
2021-08-27 15:30:20 +02:00
Juri Linkov
a573d6bd88 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.
2021-08-27 09:24:07 +03:00
Lars Ingebrigtsen
9c1bbad907 python-shell-interpreter doc string clarification
* lisp/progmodes/python.el (python-shell-interpreter): Note what
to do when using ipython3 (bug#44732).
2021-08-27 04:49:57 +02:00
Lars Ingebrigtsen
cc5b6cb6bc 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.
2021-08-27 04:00:58 +02:00
Noah Evans
8567ec8bcf 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
2021-08-27 03:43:19 +02:00
Lars Ingebrigtsen
602419bbca 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.
2021-08-27 03:10:46 +02:00
Lars Ingebrigtsen
ee2ffd9c9e 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).
2021-08-26 19:28:34 +02:00
Philip Kaludercic
869579170b timeclock.el: Update example configuration
* lisp/calendar/timeclock.el: Update comments that were no longer
correct (bug#50211).
2021-08-26 16:23:29 +02:00
Lars Ingebrigtsen
e4ec39e52d 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.
2021-08-26 16:12:17 +02:00
Lars Ingebrigtsen
fc4d3eea5a Revert "Add support for "bright" ANSI colors in ansi-color"
This reverts commit c8e3347ec0.

Jim Porter's paperwork isn't finalised yet.
2021-08-26 15:22:28 +02:00
Lars Ingebrigtsen
2e2400a13f Revert "Add support for "bright" ANSI colors in term-mode"
This reverts commit 2b2a103db0.

Jim Porter's paperwork isn't finalized yet.
2021-08-26 15:21:52 +02:00
Lars Ingebrigtsen
e1ca0ba7d4 Revert "Add missing :version tags to new faces"
This reverts commit 9759fb596b.

Jim Porter's paperwork isn't finalized yet.
2021-08-26 15:21:10 +02:00
Michael Albinus
e5f82c1305 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.
2021-08-26 13:14:19 +02:00
Eli Zaretskii
d54ffa25bd 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>.
2021-08-26 10:40:35 +03:00
Dmitry Gutov
4ac29b943b Rename arguments for clarity
* lisp/vc/vc-git.el (vc-git--literal-pathspecs)
(vc-git--literal-pathspecs):
Rename arguments for clarity (bug#39452).
2021-08-26 04:48:05 +03:00
Dmitry Gutov
2b62b2a019 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).
2021-08-26 04:44:21 +03:00
Stephen Gildea
a8c803db8e ; * lisp/time-stamp.el: Doc string wording improvements. 2021-08-25 18:17:12 -07:00
Stefan Monnier
3b66c4d8f0 * lisp/term/xterm.el (xterm-function-map): Map \e[29~ to menu 2021-08-25 18:27:35 -04:00
Gabriel do Nascimento Ribeiro
46ff443dc0 Handle nil messages in repeat-echo-message.
* lisp/repeat.el (repeat-echo-message): Handle cases where
'current-message' is nil (bug#50176).
2021-08-25 20:10:28 +03:00
Lars Ingebrigtsen
7db376e560 Make thingatpt respect fields
* lisp/thingatpt.el (thing-at-point): Make thingatpt respect
fields (bug#9454).
2021-08-25 18:04:43 +02:00
Lars Ingebrigtsen
ab79950009 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).
2021-08-25 17:33:08 +02:00
João Távora
1155826c98 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.
2021-08-25 16:27:35 +01:00