]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoBetter treatment of line length limits for the Python inferior
Augusto Stoffel [Thu, 9 Sep 2021 13:48:37 +0000 (15:48 +0200)]
Better treatment of line length limits for the Python inferior

* lisp/comint.el (comint-max-line-length): New constant reflecting a
safe maximum line size that can be sent to an inferior process.
* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter): Send setup
code to the inferior process only once and at this stage.
(python-shell-eval-setup-code, python-shell-eval-file-setup-code):
Move, unchanged, to an earlier point to avoid byte-compiler warnings.
(python-shell-send-string-no-output): Revert changes of e32c7d2a8d
(python-shell-send-string): Use 'comint-max-line-length' to decide
when to resort to temp files.
(python-shell-send-string, python-shell-send-file): Don't send setup
code each time (bug#49822).

3 years agoClarify Gnus vs. font locking in the Gnus manual
Lars Ingebrigtsen [Thu, 9 Sep 2021 13:42:00 +0000 (15:42 +0200)]
Clarify Gnus vs. font locking in the Gnus manual

* doc/misc/gnus.texi (Formatting Variables): Explicitly mention
that font locking doesn't work in Gnus buffers (bug#50474).

3 years agoRemove the "Real meaning of copyleft" node in efaq
Lars Ingebrigtsen [Thu, 9 Sep 2021 13:19:56 +0000 (15:19 +0200)]
Remove the "Real meaning of copyleft" node in efaq

* doc/misc/efaq.texi (Real meaning of copyleft): Remove the
section (bug#50446).
(Common acronyms): Add a link to the GNU site's page about licenses.

3 years ago; Add NEWS about tab bar mouse commands
Juri Linkov [Thu, 9 Sep 2021 07:54:14 +0000 (10:54 +0300)]
; Add NEWS about tab bar mouse commands

3 years agoMerge branch 'feature/tab-bar-events'
Juri Linkov [Thu, 9 Sep 2021 07:52:41 +0000 (10:52 +0300)]
Merge branch 'feature/tab-bar-events'

3 years ago; Remove NEWS about tab bar mouse commands to avoid merge conflicts
Juri Linkov [Thu, 9 Sep 2021 07:49:43 +0000 (10:49 +0300)]
; Remove NEWS about tab bar mouse commands to avoid merge conflicts

3 years agoDocument restriction of completion styles with remote file names
Michael Albinus [Wed, 8 Sep 2021 14:57:12 +0000 (16:57 +0200)]
Document restriction of completion styles with remote file names

* doc/misc/tramp.texi (File name completion): Mention restriction
of completion styles.

3 years agoDon't ding at the user in pop-mark
Lars Ingebrigtsen [Wed, 8 Sep 2021 10:21:12 +0000 (12:21 +0200)]
Don't ding at the user in pop-mark

* lisp/simple.el (pop-mark): Don't ding at the user if there's no
mark to pop (bug#44375).  This function is used (in some
circumstances) when the user mouse-1-clicks links (in *Help*
buffer, for instance), which will then ding at the user before
following the link.

3 years agoFurther tweak describe-variable look
Lars Ingebrigtsen [Wed, 8 Sep 2021 08:28:15 +0000 (10:28 +0200)]
Further tweak describe-variable look

* lisp/help-fns.el (describe-variable): Tweak how long variable
values are shown.

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 8 Sep 2021 08:27:09 +0000 (11:27 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years ago; * admin/README: Add descriptions of more subdirectories.
Eli Zaretskii [Wed, 8 Sep 2021 08:26:17 +0000 (11:26 +0300)]
; * admin/README: Add descriptions of more subdirectories.

3 years ago; * admin/README: Mention 'coccinelle'.
Richard Stallman [Wed, 8 Sep 2021 03:25:17 +0000 (23:25 -0400)]
; * admin/README: Mention 'coccinelle'.

3 years ago* etc/NEWS: macOS alternative context menu mouse binding.
Mattias Engdegård [Wed, 8 Sep 2021 08:17:23 +0000 (10:17 +0200)]
* etc/NEWS: macOS alternative context menu mouse binding.

3 years agoFix previous help-fns change
Lars Ingebrigtsen [Wed, 8 Sep 2021 08:13:47 +0000 (10:13 +0200)]
Fix previous help-fns change

* lisp/help-fns.el (help-fns--run-describe-functions): Fix the
test for whether the function inserted anything.

3 years agoAdjust test to describe-function changes
Lars Ingebrigtsen [Wed, 8 Sep 2021 07:45:45 +0000 (09:45 +0200)]
Adjust test to describe-function changes

The doc now always ends with an empty line

3 years agoAllow kmacros to end with C-g in minibuffer
Miha Rihtaršič [Wed, 8 Sep 2021 07:40:28 +0000 (09:40 +0200)]
Allow kmacros to end with C-g in minibuffer

* src/keyboard.c (cmd_error): If a command causes a minibuffer-quit
condition, record its key in a keyboard macro (bug#48603).

3 years agoAdd support for keypad `=' key in xterm.el
Lars Ingebrigtsen [Wed, 8 Sep 2021 07:24:11 +0000 (09:24 +0200)]
Add support for keypad `=' key in xterm.el

* lisp/term/xterm.el (xterm-function-map): Add support for keypad
= key (bug#16645).

3 years agoDon't disable ipython as a native interpreter
Lars Ingebrigtsen [Wed, 8 Sep 2021 06:59:29 +0000 (08:59 +0200)]
Don't disable ipython as a native interpreter

* lisp/progmodes/python.el
(python-shell-completion-native-disabled-interpreters): Remove
ipython from list, because it apparently works fine these days
(bug#50458).

3 years agoFix mail-user-agent defcustom type
Lars Ingebrigtsen [Wed, 8 Sep 2021 06:56:07 +0000 (08:56 +0200)]
Fix mail-user-agent defcustom type

* lisp/simple.el (mail-user-agent): Any symbol can be used as the
value (bug#50460).

3 years agoMove the indented *Help* block to after the doc string
Lars Ingebrigtsen [Wed, 8 Sep 2021 06:50:27 +0000 (08:50 +0200)]
Move the indented *Help* block to after the doc string

* lisp/help-fns.el (describe-function-1): Move indented admin
block to the end (bug#50463).
(describe-variable): Ditto (bug#50463).

3 years agoDon't output "probably introduced" if we know the answer for sure
Lars Ingebrigtsen [Wed, 8 Sep 2021 06:37:11 +0000 (08:37 +0200)]
Don't output "probably introduced" if we know the answer for sure

* lisp/help-fns.el (help-fns--customize-variable-version):
Factored out from `help-fns--customize-variable' to be able to see
whether it outputs anything.
(help-fns--run-describe-functions): New function.
(help-fns--activated-functions): New internal variable.
(describe-variable): Use new function.
(describe-face, describe-function-1): Ditto (bug#50463).

3 years agoCenter Emacs logo above text on the splash screen
Stefan Kangas [Wed, 8 Sep 2021 01:57:11 +0000 (03:57 +0200)]
Center Emacs logo above text on the splash screen

* lisp/startup.el (fancy-splash-head): Center Emacs logo above
text on the splash and about screen.

3 years agoHave Git backend actions accept nil filenames again
Dmitry Gutov [Tue, 7 Sep 2021 23:33:24 +0000 (02:33 +0300)]
Have Git backend actions accept nil filenames again

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Move the nil check to the beginning (bug#50422).

3 years agocperl-mode.el: Use rx sequences for Perl grammar
Harald Jörg [Tue, 7 Sep 2021 20:11:41 +0000 (22:11 +0200)]
cperl-mode.el: Use rx sequences for Perl grammar

Following advice by Mattias Engdegård, most uses of rx-to-string
were eliminated, and rx sequences used instead to define Perl
grammar components.
* lisp/progmodes/cperl-mode.el: (cperl-block-declaration-p): New
function, replaces regexp literals.
(cperl-imenu--function-name-regexp-perl): Deleted, use rx
sequences to find imenu entries instead.
(cperl-indent-line): Use rx components instead of regexp literals.
(cperl-sniff-for-indent): use `cperl-block-declaration-p' to
increase accuracy, use rx sequence for labels to replace
inaccurate regexp literals.
(cperl-block-p): Replace inline comment by docstring.  Use
`cperl-block-declaration-p'.
(cperl-after-block-p): Use `cperl-block-declaration-p'.
(cperl-after-block-and-statement-beg): Replace inline comment by
docstring.
(cperl-imenu-package-keywords), (cperl-imenu-sub-keywords),
(cperl-imenu-pod-keywords) : New variables to sort imenu
entries into categories.
(cperl-imenu--create-perl-index): Use rx sequences to collect
imenu entries.
(cperl-init-faces): Use rx components instead of regexp literals
for labels.

* test/lisp/progmodes/cperl-mode-tests.el: Test rx sequences
instead of regexp strings

3 years agoDon't let nndiary.el alter variables when loading file
Eric Abrahamsen [Tue, 7 Sep 2021 18:51:39 +0000 (11:51 -0700)]
Don't let nndiary.el alter variables when loading file

* lisp/gnus/nndiary.el (nndiary-open-server): Move the manipulation of
`gnus-extra-headers' and `nnmail-extra-headers' into this function: it
should only happen if we're actually firing up an nndiary server.
Previously, simply attempting to complete a gnus-* prefixed symbol
could end up loading this file, and changing the variable values.

3 years ago; Improve resolution of previous merge conflict
Glenn Morris [Tue, 7 Sep 2021 16:41:38 +0000 (09:41 -0700)]
; Improve resolution of previous merge conflict

3 years agoIncrease jit-lock-chunk-size from 500 to 1500 for performance reasons
Alan Mackenzie [Tue, 7 Sep 2021 16:31:16 +0000 (16:31 +0000)]
Increase jit-lock-chunk-size from 500 to 1500 for performance reasons

* lisp/jit-lock.el (jit-lock-chunk-size): Increase to 1500.

See also https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg00540.html.

3 years ago; * doc/emacs/maintaining.texi (Project File Commands): Fix wording.
Eli Zaretskii [Tue, 7 Sep 2021 16:22:48 +0000 (19:22 +0300)]
; * doc/emacs/maintaining.texi (Project File Commands): Fix wording.

3 years agoEncode urls more before using in browse-url
Lars Ingebrigtsen [Tue, 7 Sep 2021 15:46:52 +0000 (17:46 +0200)]
Encode urls more before using in browse-url

* lisp/net/browse-url.el (browse-url-default-windows-browser)
(browse-url-default-macosx-browser): Encode the URL before using
(in case it contains spaces) (bug#50435).

3 years agoFix encoding in browse-url-encode-url
Lars Ingebrigtsen [Tue, 7 Sep 2021 15:41:31 +0000 (17:41 +0200)]
Fix encoding in browse-url-encode-url

* lisp/net/browse-url.el (browse-url-url-encode-chars): Document
what the argument really is, and simplify the implementation
(bug#50435).
(browse-url-encode-url): Encode spaces.

3 years agoAdd a new Gnus command to toggle whether to use fonts in shr
Alex Bochannek [Tue, 7 Sep 2021 15:12:39 +0000 (17:12 +0200)]
Add a new Gnus command to toggle whether to use fonts in shr

* doc/misc/gnus.texi (Article Washing): Document it.

* lisp/gnus/gnus-art.el (gnus-article-toggle-fonts): New command
and key binding (bug#50383).

3 years agoImprove the Info mode line further
Lars Ingebrigtsen [Tue, 7 Sep 2021 14:59:52 +0000 (16:59 +0200)]
Improve the Info mode line further

* lisp/info.el (Info-set-mode-line): Improve the Info mode line
further (bug#13776).

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 7 Sep 2021 15:45:35 +0000 (18:45 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoFix a recent documentation change
Eli Zaretskii [Tue, 7 Sep 2021 15:44:26 +0000 (18:44 +0300)]
Fix a recent documentation change

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref):
* etc/NEWS: Fix wording and typos.

3 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 7 Sep 2021 15:31:22 +0000 (08:31 -0700)]
Merge from origin/emacs-27

97aa8240d2 (origin/emacs-27) * doc/misc/efaq.texi: Misc copyedits.
e1050492d1 * doc/misc/efaq.texi (Reporting bugs): Refer to the Emacs ...

# Conflicts:
# doc/misc/efaq.texi

3 years agoAdapt tramp-test26-file-name-completion
Michael Albinus [Tue, 7 Sep 2021 14:28:41 +0000 (16:28 +0200)]
Adapt tramp-test26-file-name-completion

* test/lisp/net/tramp-tests.el (tramp-test26-file-name-completion):
Do not check for default method.

3 years agoImprove documentation of new Xref options
Eli Zaretskii [Tue, 7 Sep 2021 13:03:27 +0000 (16:03 +0300)]
Improve documentation of new Xref options

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): More accurate description in the
doc strings.

* doc/emacs/maintaining.texi (Looking Up Identifiers)
(Identifier Search, List Identifiers, Project File Commands): Fix
the documentation of 'xref-auto-jump-to-first-definition' and
'xref-auto-jump-to-first-xref' to be more accurate.

* etc/NEWS: More accurate wording of the entry about
'xref-auto-jump-to-first-definition' and
'xref-auto-jump-to-first-xref'.

3 years agoDo not expand default method, user, host in remote file name completion
Michael Albinus [Tue, 7 Sep 2021 12:36:06 +0000 (14:36 +0200)]
Do not expand default method, user, host in remote file name completion

* lisp/net/tramp.el (tramp-completion-handle-file-name-all-completions):
Do not expand default method, user, host.  (Bug#50387)
(tramp-get-completion-methods): `partial-method' can be nil.

3 years agoFix display of tab-bar buttons
Eli Zaretskii [Tue, 7 Sep 2021 10:24:01 +0000 (13:24 +0300)]
Fix display of tab-bar buttons

* src/xterm.c (x_draw_image_relief):
* src/w32term.c (w32_draw_image_relief): Fix calculation of relief
thickness for tab-bar buttons.

* lisp/tab-bar.el (tab-bar--load-buttons)
(tab-bar-history-mode): Fix the :margin specification for tab-bar
buttons.  (Bug#50424)

3 years ago* test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak.
A [Tue, 7 Sep 2021 02:12:00 +0000 (19:12 -0700)]
* test/lisp/vc/vc-tests.el (vc-test--version-diff): Git env tweak.

3 years agoSupport specifying just one command in project-switch-commands
Dmitry Gutov [Tue, 7 Sep 2021 01:44:38 +0000 (04:44 +0300)]
Support specifying just one command in project-switch-commands

* lisp/progmodes/project.el (project-switch-commands):
Describe the new possible type of value.
(project--switch-project-command):
New function, extract from project-switch-project.
(project-switch-project): If project-switch-commands's value is a
symbol, invoke that command without showing a menu.

Co-authored-by: Jiacai Liu <hello@liujiacai.net>
3 years agoSmall FAQ fixes
Stefan Kangas [Tue, 7 Sep 2021 01:17:27 +0000 (03:17 +0200)]
Small FAQ fixes

* doc/misc/efaq.texi (Colors on a TTY): Remove reference to
ancient Emacs version 22.
(Finding Emacs on the Internet): Use more current terminology.

3 years agoRemove Emacs FAQ maintainer
Stefan Kangas [Tue, 7 Sep 2021 00:55:16 +0000 (02:55 +0200)]
Remove Emacs FAQ maintainer

* doc/misc/efaq.texi: Remove maintainer Romain Francoise after private
communication.

3 years ago* etc/NEWS: Some further re-organization.
Stefan Kangas [Tue, 7 Sep 2021 00:00:22 +0000 (02:00 +0200)]
* etc/NEWS: Some further re-organization.

3 years ago* etc/NEWS: Clarify entry about the "*Completions*" buffer.
Stefan Kangas [Mon, 6 Sep 2021 23:48:40 +0000 (01:48 +0200)]
* etc/NEWS: Clarify entry about the "*Completions*" buffer.

3 years agoAdd possibility to override the default highlighting
Tassilo Horn [Mon, 6 Sep 2021 19:47:38 +0000 (21:47 +0200)]
Add possibility to override the default highlighting

* lisp/progmodes/bug-reference.el (bug-reference-fontify): Highlight
99th group if it exists.
(bug-reference-bug-regexp): Document that regexp group 99 can be used
to override the default behavior of highlighting the complete match.
(bug-reference--run-auto-setup): Use run-hook-with-args-until-success
instead of throw/catch.

3 years ago; * etc/NEWS: revert a change that changed the meaning slightly
Mattias Engdegård [Mon, 6 Sep 2021 17:24:53 +0000 (19:24 +0200)]
; * etc/NEWS: revert a change that changed the meaning slightly

3 years agoNormalise nested `progn` forms in byte-code optimiser
Mattias Engdegård [Mon, 6 Sep 2021 12:41:26 +0000 (14:41 +0200)]
Normalise nested `progn` forms in byte-code optimiser

* lisp/emacs-lisp/byte-opt.el (byte-optimize-body): Flatten body.
This simplifies the source tree and reduces the number of different
cases that other optimisations need to take into account.

3 years agoMore robust optimisation of `ignore`
Mattias Engdegård [Thu, 10 Jun 2021 19:27:16 +0000 (21:27 +0200)]
More robust optimisation of `ignore`

Treat `ignore` as any other function during source-level optimisation,
to avoid having its warning-suppression effects cancelled by repeated
passes.  Instead, define a custom code generation function.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't treat `ignore' specially here.
(side-effect-free-fns): Don't mark `ignore` as side-effect-free
or error-free (although it is), since that would allow the optimiser
to elide calls.
* lisp/emacs-lisp/bytecomp.el (ignore, byte-compile-ignore):
Define and register a code-gen function.

3 years agoOptimise `member` and `assoc` (etc) with constant empty list
Mattias Engdegård [Wed, 28 Jul 2021 19:07:58 +0000 (21:07 +0200)]
Optimise `member` and `assoc` (etc) with constant empty list

* lisp/emacs-lisp/byte-opt.el
(byte-optimize-assq): New.
(byte-optimize-member, byte-optimize-assoc, byte-optimize-memq):
When the list argument is constant nil, the result is always nil.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.

3 years agoFixup dired-do-find-regexp-and-replace
Dmitry Gutov [Mon, 6 Sep 2021 14:07:25 +0000 (17:07 +0300)]
Fixup dired-do-find-regexp-and-replace

* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
Disregard the customized value of xref-auto-jump-to-first-xref
(it breaks the xref-query-replace-in-results invocation).

* lisp/progmodes/xref.el (xref-auto-jump-to-first-xref):
Mention the caveat for users or xref distributed through ELPA.

3 years agoRevert an accidential change in etc/NEWS
Michael Albinus [Mon, 6 Sep 2021 13:16:51 +0000 (15:16 +0200)]
Revert an accidential change in etc/NEWS

3 years ago; Fix typos in etc/NEWS
Michael Albinus [Mon, 6 Sep 2021 13:06:07 +0000 (15:06 +0200)]
; Fix typos in etc/NEWS

3 years agoMake calc-grab-region work with rectangular selects
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:56:02 +0000 (12:56 +0200)]
Make calc-grab-region work with rectangular selects

* lisp/calc/calc.el (calc-grab-region): Heed `rectangle-mark-mode'
(bug#50403).

3 years agoRestore the debugging window size more reliably
martin rudalics [Mon, 6 Sep 2021 10:48:07 +0000 (12:48 +0200)]
Restore the debugging window size more reliably

* lisp/emacs-lisp/debug.el (debug): Restore the debugging window
size more reliably (bug#12921).

3 years agoAdd a tooltip to the comint-mode mode line format
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:36:32 +0000 (12:36 +0200)]
Add a tooltip to the comint-mode mode line format

* lisp/comint.el (comint-mode): Add a tooltip to say what the :run
bit means (bug#13776).

3 years agoImprove the info-mode mode line
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:33:22 +0000 (12:33 +0200)]
Improve the info-mode mode line

* lisp/info.el (Info-set-mode-line): Add a help echo to help
explain what the thing in parentheses is (bug#13776).

3 years ago; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix.
Eli Zaretskii [Mon, 6 Sep 2021 10:13:22 +0000 (13:13 +0300)]
; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix.

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Sep 2021 10:12:54 +0000 (13:12 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Sep 2021 10:12:30 +0000 (13:12 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoSimplify `image-dired-dired-file-marked-p'
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:10:37 +0000 (12:10 +0200)]
Simplify `image-dired-dired-file-marked-p'

* lisp/image-dired.el (image-dired-dired-file-marked-p): Use
`dired-re-mark' instead of open-coding the opposite regexp (bug#14925).

3 years ago; * etc/NEWS: Rearrange and fix wording of some entries.
Eli Zaretskii [Mon, 6 Sep 2021 10:10:16 +0000 (13:10 +0300)]
; * etc/NEWS: Rearrange and fix wording of some entries.

3 years agoImprove the gnus-group-default-list-level doc string
Lars Ingebrigtsen [Mon, 6 Sep 2021 09:12:00 +0000 (11:12 +0200)]
Improve the gnus-group-default-list-level doc string

* lisp/gnus/gnus-group.el (gnus-group-default-list-level): Improve
doc string.

3 years agoReset gnus-group-use-permanent-levels when Gnus restarts
Lars Ingebrigtsen [Mon, 6 Sep 2021 09:07:55 +0000 (11:07 +0200)]
Reset gnus-group-use-permanent-levels when Gnus restarts

* lisp/gnus/gnus-start.el (gnus-clear-system): Reset
`gnus-group-use-permanent-levels' upon Gnus restart (bug#50416).

3 years agoMake `gnus-group-use-permanent-levels' work better
Allen Li [Mon, 6 Sep 2021 08:59:54 +0000 (10:59 +0200)]
Make `gnus-group-use-permanent-levels' work better

* lisp/gnus/gnus-group.el (gnus-group-default-level): Removed implicit
setting of gnus-group-use-permanent-levels.
(gnus-group-list-groups): Set gnus-group-use-permanent-levels
explicitly.
(gnus-group-get-new-news): Set gnus-group-use-permanent-levels
explicitly (bug#50417).
(gnus-group-get-new-news): When the user has given a numeric
prefix, use that as the list level.

3 years ago; * etc/NEWS: Restore entry that had been inadvertently deleted.
Stefan Kangas [Mon, 6 Sep 2021 06:47:10 +0000 (08:47 +0200)]
; * etc/NEWS: Restore entry that had been inadvertently deleted.

3 years ago* etc/NEWS: Reorder "Isearch and Replace" items
Juri Linkov [Mon, 6 Sep 2021 06:32:39 +0000 (09:32 +0300)]
* etc/NEWS: Reorder "Isearch and Replace" items

3 years ago* doc/emacs/maintaining.texi (Xref Commands): Fix indexing.
Eli Zaretskii [Mon, 6 Sep 2021 04:28:05 +0000 (07:28 +0300)]
* doc/emacs/maintaining.texi (Xref Commands): Fix indexing.

3 years ago* etc/NEWS: Improve file organization.
Stefan Kangas [Mon, 6 Sep 2021 02:27:12 +0000 (04:27 +0200)]
* etc/NEWS: Improve file organization.

3 years agoImprove documentation of save-place-abbreviate-file-names
Stefan Kangas [Sun, 5 Sep 2021 07:27:00 +0000 (09:27 +0200)]
Improve documentation of save-place-abbreviate-file-names

* lisp/saveplace.el (save-place-abbreviate-file-names): Document why
you might want to enable this option.

3 years ago* etc/NEWS: Don't mention a fixed bug.
Stefan Kangas [Sun, 5 Sep 2021 05:54:35 +0000 (07:54 +0200)]
* etc/NEWS: Don't mention a fixed bug.

3 years ago; * test/lisp/newcomment-tests.el: Fix copyright year.
Stefan Kangas [Sat, 4 Sep 2021 20:25:02 +0000 (22:25 +0200)]
; * test/lisp/newcomment-tests.el: Fix copyright year.

3 years agoproject--files-in-directory: Fix handling of ignores
Dmitry Gutov [Mon, 6 Sep 2021 02:01:07 +0000 (05:01 +0300)]
project--files-in-directory: Fix handling of ignores

* lisp/progmodes/project.el (project--files-in-directory):
Pass "." as the DIR argument to 'find' because otherwise the ignore
expression can match the project root directory name, which we don't
want to happen (bug#50240).  Fixup the resulting file names at the end
with concatenation.
Originally I thought it could lead to worse performance, but the
results show equal or slightly better timings.

* lisp/progmodes/xref.el (xref-matches-in-directory):
Apply a similar fix.
(xref--find-ignores-arguments): Use file-name-as-directory, so
that when passed "." replace-match still had the expected effect.

* test/lisp/progmodes/project-tests.el (project-ignores-bug-50240):
New test.

* test/lisp/progmodes/xref-tests.el
(xref-matches-in-directory-filters-with-ignores): New test.

3 years agoTry to fix vc-test-git06-version-diff on Hydra
Dmitry Gutov [Sun, 5 Sep 2021 23:32:46 +0000 (02:32 +0300)]
Try to fix vc-test-git06-version-diff on Hydra

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Fix Git backend when running in clean environment.
(vc-test-git06-version-diff): Unskip on Hydra.

3 years ago* doc/misc/efaq.texi: Misc copyedits.
Glenn Morris [Sun, 5 Sep 2021 22:50:50 +0000 (15:50 -0700)]
* doc/misc/efaq.texi: Misc copyedits.

Prefer mailing lists to newgroups.
(History of Emacs): Rename from "Status of Emacs".
Move XEmacs node here.
(Emacs for other operating systems): Merge all the "non-Unix"
systems into a single node.

3 years ago* test/lisp/vc/vc-tests.el (vc-test-git06-version-diff): Skip on hydra.
Glenn Morris [Sun, 5 Sep 2021 21:04:43 +0000 (14:04 -0700)]
* test/lisp/vc/vc-tests.el (vc-test-git06-version-diff): Skip on hydra.

3 years ago* lisp/progmodes/xref.el: Bump the version again.
Dmitry Gutov [Sun, 5 Sep 2021 19:25:15 +0000 (22:25 +0300)]
* lisp/progmodes/xref.el: Bump the version again.

3 years ago; * lisp/indent.el (tab-first-completion): Fix :version tag.
Eli Zaretskii [Sun, 5 Sep 2021 18:24:22 +0000 (21:24 +0300)]
; * lisp/indent.el (tab-first-completion): Fix :version tag.

3 years agoImprove tab-bar event handling (bug#41343)
Juri Linkov [Sun, 5 Sep 2021 17:16:33 +0000 (20:16 +0300)]
Improve tab-bar event handling (bug#41343)

* lisp/tab-bar.el (tab-bar--key-to-number): Rename from tab--key-to-number.
(tab-bar--event-to-item): New function from tab-bar-handle-mouse.
(tab-bar-mouse-select-tab, tab-bar-mouse-close-tab)
(tab-bar-mouse-context-menu, tab-bar-mouse-move-tab):
Use tab-bar--event-to-item.

* src/menu.c (x_popup_menu_1): Handle Qtab_bar in the second list element.

* src/xdisp.c (tty_get_tab_bar_item): Change arg 'end' to bool 'close_p'.
(tty_get_tab_bar_item): Detect if the close button was clicked.
(tty_handle_tab_bar_click): Return a list with caption that has
text properties.

3 years agoAutoload cl-struct-slot-info
Lars Ingebrigtsen [Sun, 5 Sep 2021 14:52:11 +0000 (16:52 +0200)]
Autoload cl-struct-slot-info

* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-info): Autoload
(bug#50301).

* test/lisp/emacs-lisp/memory-report-tests.el: Don't require cl-macs.

3 years ago; * etc/NEWS: Fix a recent change.
Eli Zaretskii [Sun, 5 Sep 2021 10:33:46 +0000 (13:33 +0300)]
; * etc/NEWS: Fix a recent change.

3 years agoImprove the documentation around the read-key/minibuffer prompting
Lars Ingebrigtsen [Sun, 5 Sep 2021 10:02:16 +0000 (12:02 +0200)]
Improve the documentation around the read-key/minibuffer prompting

* lisp/subr.el (read-char-choice-use-read-key): Explain the
difference.
(read-char-choice): Mention the variables.
(y-or-n-p-use-read-key): Explain the difference.
(y-or-n-p): Mention the variable (bug#50390).

3 years agoClarify completion-list-mode NEWS entry
Lars Ingebrigtsen [Sun, 5 Sep 2021 09:34:32 +0000 (11:34 +0200)]
Clarify completion-list-mode NEWS entry

* etc/NEWS: Clarify completion-list-mode entry (bug#50394).

3 years ago; * doc/emacs/maintaining.texi (Looking Up Identifiers): Fix last change.
Eli Zaretskii [Sun, 5 Sep 2021 09:30:35 +0000 (12:30 +0300)]
; * doc/emacs/maintaining.texi (Looking Up Identifiers): Fix last change.

3 years ago* lisp/progmodes/xref.el: Fix defcustoms (bug#50067)
Juri Linkov [Sun, 5 Sep 2021 08:36:30 +0000 (11:36 +0300)]
* lisp/progmodes/xref.el: Fix defcustoms (bug#50067)

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref, xref-search-program): Fix defcustoms.

3 years agoImprove documentation of new Xref options
Eli Zaretskii [Sun, 5 Sep 2021 07:59:07 +0000 (10:59 +0300)]
Improve documentation of new Xref options

* doc/emacs/maintaining.texi (Looking Up Identifiers):
* etc/NEWS: Document the new Xref user options.  Move a lost
Xref-related entry to the rest of them.

3 years agoFixes for 'python-shell-send-string' and 'python-shell-send-file'
Augusto Stoffel [Sat, 4 Sep 2021 09:16:11 +0000 (11:16 +0200)]
Fixes for 'python-shell-send-string' and 'python-shell-send-file'

* lisp/progmodes/python.el (python-shell-send-string): use a temporary
file for sufficiently long strings.
(python-shell-send-file, python-shell-eval-file-setup-code): Avoid
showing "plumbing code" in the traceback (bug#32042).

3 years agoFix error handling in 'ispell-init-process'
Ian W [Sat, 4 Sep 2021 03:53:24 +0000 (20:53 -0700)]
Fix error handling in 'ispell-init-process'

* lisp/textmodes/ispell.el (ispell-init-process): When Ispell
initialization reports an error, call 'ispell-accept-output' only
if the Ispell process is still alive.  (Bug#50370)

Copyright-paperwork-exempt: yes

3 years agoCleanup tramp-tests.el
Michael Albinus [Sun, 5 Sep 2021 07:23:30 +0000 (09:23 +0200)]
Cleanup tramp-tests.el

* test/lisp/net/tramp-tests.el
(tramp--test--deftest-direct-async-process): Fix macro declaration.
(tramp-test29-start-file-process, tramp-test30-make-process):
Do not run connection type test for direct async processes.

3 years ago* test/lisp/vc/vc-tests.el (vc-test-sccs06-version-diff): Fix it.
Glenn Morris [Sun, 5 Sep 2021 01:39:20 +0000 (18:39 -0700)]
* test/lisp/vc/vc-tests.el (vc-test-sccs06-version-diff): Fix it.

3 years agoBelated fix
Dmitry Gutov [Sun, 5 Sep 2021 00:52:29 +0000 (03:52 +0300)]
Belated fix

* lisp/progmodes/xref.el: (xref--show-xref-buffer):
Fix support for xref-auto-jump-to-first-xref.

3 years ago* lisp/progmodes/xref.el: Bump version.
Dmitry Gutov [Sun, 5 Sep 2021 00:36:30 +0000 (03:36 +0300)]
* lisp/progmodes/xref.el: Bump version.

3 years agoXref: automatic jumping to the first definition or reference
Dmitry Gutov [Sun, 5 Sep 2021 00:35:43 +0000 (03:35 +0300)]
Xref: automatic jumping to the first definition or reference

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): New user options.
Discussed in bug#50067.
(xref--show-xrefs, xref--show-defs): Use them here.
(xref--auto-jump-first): New function, handles different values.
(xref-show-definitions-buffer)
(xref-show-definitions-buffer-at-bottom): Use it.

3 years agoFix test on machines with Bzr not set up
Dmitry Gutov [Sat, 4 Sep 2021 23:44:08 +0000 (02:44 +0300)]
Fix test on machines with Bzr not set up

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Add EMAIL= to the environment to avoid potential failure.

3 years agoAdd tests for vc-version-diff
Matthias Meulien [Sat, 4 Sep 2021 23:32:49 +0000 (02:32 +0300)]
Add tests for vc-version-diff

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
New function.
(vc-test-%s06-version-diff): New family of tests.

3 years agoRename xref-select-and-{goto,show}-xref
Dmitry Gutov [Sat, 4 Sep 2021 22:45:46 +0000 (01:45 +0300)]
Rename xref-select-and-{goto,show}-xref

* lisp/progmodes/xref.el (xref-select-and-show-xref):
Rename from xref-select-and-goto-xref (bug#35376).
Update all references.

3 years agoAvoid segfault in command-modes
Basil L. Contovounesios [Sat, 4 Sep 2021 16:04:26 +0000 (17:04 +0100)]
Avoid segfault in command-modes

* src/data.c (Fcommand_modes): Check that bytecode object is
interactive before accessing its interactive spec to avoid
segfaulting (bug#50376).

3 years ago; * etc/NEWS: Fix copyright year; file recreated in 2019 for 28.1.
Stefan Kangas [Sat, 4 Sep 2021 18:11:12 +0000 (20:11 +0200)]
; * etc/NEWS: Fix copyright year; file recreated in 2019 for 28.1.

3 years ago; * etc/NEWS: Fix markup in recent example.
Basil L. Contovounesios [Sat, 4 Sep 2021 16:06:39 +0000 (17:06 +0100)]
; * etc/NEWS: Fix markup in recent example.

3 years ago* lisp/emacs-lisp/timer.el (timer-create): Don't inline it
Stefan Monnier [Fri, 3 Sep 2021 23:41:23 +0000 (19:41 -0400)]
* lisp/emacs-lisp/timer.el (timer-create): Don't inline it