1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00
Commit Graph

149867 Commits

Author SHA1 Message Date
Augusto Stoffel
195da78e2e Properly encode all strings sent to Python shell
* lisp/progmodes/python.el: Now depends on Emacs 28.
(python-shell-package-enable, python-shell-completion-get-completions)
(python-ffap-module-path, python-eldoc--get-doc-at-point): Enconde
Python strings using 'python-shell--encode-string' instead of triple
quotes.
(python-shell-completion-string-code, python-eldoc-string-code)
(python-ffap-string-code): Remove defcustoms. (bug#50503).
2021-09-10 16:39:13 +02:00
Stephen Gildea
5ee6583cb2 Tramp: honor default file modes in make-directory
* lisp/net/tramp-sh.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-sudoedit.el:
* lisp/net/tramp-gvfs.el: Add support for default file modes to
relevant Tramp back ends for make-directory.  (Closes: Bug#50410)
* test/lisp/net/tramp-tests.el (tramp-test13-make-directory-with-file-modes):
New test.
* etc/NEWS: Note this enhancement.

Thanks to Michael Albinus for helping improve this patch.
2021-09-10 06:30:06 -07:00
Eli Zaretskii
f94b915e2f Doc string followup to last change.
* lisp/progmodes/xref.el (xref-find-apropos): Mention
'tags-apropos-additional-actions' in the doc string.
* lisp/progmodes/etags.el (tags-apropos-additional-actions):
Mention 'xref-find-apropos' in the doc string.
2021-09-10 15:02:41 +03:00
Eli Zaretskii
b4158a75c0 Document 'tags-apropos-additional-actions' with Xref
* doc/emacs/maintaining.texi (Looking Up Identifiers): Rearrange
and reword documentation of 'xref-find-apropos' and
'xref-auto-jump-to-first-definition'.  Add the description of
'tags-apropos-additional-actions'.  Delete the comment with
not-yet implemented features that were available with
'tags-apropos'.

* etc/NEWS: Augment the wording of 'xref-find-apropos' entry.
2021-09-10 14:57:38 +03:00
Lars Ingebrigtsen
28ce3bf5c9 Further fix for the search-whitespace-regexp change
* lisp/isearch.el (search-whitespace-regexp): Fix yet another typo
in this one-line change (bug#21278).
2021-09-10 12:56:22 +02:00
Gregory Heytings
f3cfd47898 New user options to move between isearch matches
* lisp/isearch.el (isearch-allow-motion,
isearch-motion-changes-direction): New user options.
(isearch-pre-command-hook): Handle the new options.

* etc/NEWS: Mention the new user options.

* doc/emacs/search.texi: Document the new user options.
2021-09-10 12:43:45 +02:00
Lars Ingebrigtsen
150ff9c157 Fix typo in previous search-whitespace-regexp change
* lisp/isearch.el (search-whitespace-regexp): Fix typo in last
checkin for this variable.
2021-09-10 12:42:22 +02:00
Gregory Heytings
061f8f2800 Fix behavior of isearch-{beginning,end}-of-buffer
* lisp/isearch.el (isearch-beginning-of-buffer)
(isearch-end-of-buffer): Fix their behavior when
isearch-repeat-on-direction-change is non-nil (bug#50466).
2021-09-10 12:39:33 +02:00
Lars Ingebrigtsen
74d091a0a6 Change the default value of search-whitespace-regexp
* lisp/isearch.el (search-whitespace-regexp): Change the default
to always exclude newlines from the set (bug#21278).  It used to
be mode-dependent whether newlines were included or not, and this
was confusing as a user interface.
2021-09-10 12:27:28 +02:00
Dmitry Gutov
44ba8278a6 * lisp/progmodes/ruby-mode.el (ruby-current-indentation): Tweak obsoletion. 2021-09-10 03:44:49 +03:00
Dmitry Gutov
b2c44706b6 Support tags-apropos-additional-actions in etags Xref backend
* lisp/progmodes/etags.el (xref-etags-apropos-location):
New class.
(xref-location-marker): New method definition.
(xref-make-etags-apropos-location): New function.
(etags--xref-apropos-additional): New function.
(xref-backend-apropos): Use it here.
2021-09-10 03:18:15 +03:00
Eli Zaretskii
ceb60225ba ; * lisp/progmodes/python.el (python-shell-send-string): Fix last change. 2021-09-09 21:04:13 +03:00
Eli Zaretskii
d92db04a9d Improve documentation of tab-bar functions and variables
* etc/NEWS: Improve wording of tab-bar related entries.

* lisp/tab-bar.el (tab-bar-show, tab-bar-select-tab-modifiers):
Improve and clarify the doc strings.
2021-09-09 21:01:53 +03:00
Eli Zaretskii
bac632aaec Fix a recent change wrt 'comint-max-line-length'
* lisp/progmodes/python.el (python-shell-send-string): Only heed
'comint-max-line-length' for subprocesses with which we
communicate via PTYs.  (Bug#49822)

* lisp/comint.el (comint-max-line-length): Doc fix.  Add a value
for MS-Windows.
2021-09-09 20:08:56 +03:00
Stefan Monnier
8c023e5ea1 Change ruby-align-chained-calls indendation
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Align with the
first sibling on the previous line instead of the last (bug#32496).

That is, before it used to be

one.two.three
       .four

and now it is

one.two.three
   .four
2021-09-09 16:24:57 +02:00
Augusto Stoffel
e27385ec37 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).
2021-09-09 15:48:37 +02:00
Lars Ingebrigtsen
2be75990a7 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).
2021-09-09 15:42:00 +02:00
Lars Ingebrigtsen
8da1f03151 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.
2021-09-09 15:19:56 +02:00
Juri Linkov
3d1274f3ba ; Add NEWS about tab bar mouse commands 2021-09-09 10:54:14 +03:00
Juri Linkov
14d5145441 Merge branch 'feature/tab-bar-events' 2021-09-09 10:52:41 +03:00
Juri Linkov
3a8b8df478 ; Remove NEWS about tab bar mouse commands to avoid merge conflicts 2021-09-09 10:49:43 +03:00
Michael Albinus
8ac5510a0e Document restriction of completion styles with remote file names
* doc/misc/tramp.texi (File name completion): Mention restriction
of completion styles.
2021-09-08 16:57:12 +02:00
Lars Ingebrigtsen
439ca062c8 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.
2021-09-08 12:21:12 +02:00
Lars Ingebrigtsen
2bd26ed697 Further tweak describe-variable look
* lisp/help-fns.el (describe-variable): Tweak how long variable
values are shown.
2021-09-08 10:28:19 +02:00
Eli Zaretskii
24f370df13 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-09-08 11:27:09 +03:00
Eli Zaretskii
f9aa6c74e4 ; * admin/README: Add descriptions of more subdirectories. 2021-09-08 11:26:17 +03:00
Richard Stallman
6c2823dff3 ; * admin/README: Mention 'coccinelle'. 2021-09-08 11:18:25 +03:00
Mattias Engdegård
188f4e6d2b * etc/NEWS: macOS alternative context menu mouse binding. 2021-09-08 10:17:23 +02:00
Lars Ingebrigtsen
e297c4fbee Fix previous help-fns change
* lisp/help-fns.el (help-fns--run-describe-functions): Fix the
test for whether the function inserted anything.
2021-09-08 10:13:47 +02:00
Lars Ingebrigtsen
30aaea1888 Adjust test to describe-function changes
The doc now always ends with an empty line
2021-09-08 09:45:45 +02:00
Miha Rihtaršič
d80552df71 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).
2021-09-08 09:40:28 +02:00
Lars Ingebrigtsen
f12df3b5a0 Add support for keypad `=' key in xterm.el
* lisp/term/xterm.el (xterm-function-map): Add support for keypad
= key (bug#16645).
2021-09-08 09:24:11 +02:00
Lars Ingebrigtsen
afddd5529d 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).
2021-09-08 08:59:29 +02:00
Lars Ingebrigtsen
663f7e3fcc Fix mail-user-agent defcustom type
* lisp/simple.el (mail-user-agent): Any symbol can be used as the
value (bug#50460).
2021-09-08 08:56:07 +02:00
Lars Ingebrigtsen
53edc2ba8e 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).
2021-09-08 08:50:27 +02:00
Lars Ingebrigtsen
79c5e0fca1 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).
2021-09-08 08:37:11 +02:00
Stefan Kangas
26d5b510e1 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.
2021-09-08 04:18:44 +02:00
Dmitry Gutov
ff2c4a8353 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).
2021-09-08 02:33:24 +03:00
Harald Jörg
81677cb699 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
2021-09-07 22:31:06 +02:00
Eric Abrahamsen
6cca705aa6 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.
2021-09-07 11:51:39 -07:00
Glenn Morris
0cd410fb82 ; Improve resolution of previous merge conflict 2021-09-07 09:41:57 -07:00
Alan Mackenzie
400b3c9376 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.
2021-09-07 16:32:49 +00:00
Eli Zaretskii
91afb9363d ; * doc/emacs/maintaining.texi (Project File Commands): Fix wording. 2021-09-07 19:22:48 +03:00
Lars Ingebrigtsen
743a53343c 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).
2021-09-07 17:46:55 +02:00
Lars Ingebrigtsen
8448782b40 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.
2021-09-07 17:46:55 +02:00
Alex Bochannek
6b2d5ad615 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).
2021-09-07 17:46:55 +02:00
Lars Ingebrigtsen
f10a4aad33 Improve the Info mode line further
* lisp/info.el (Info-set-mode-line): Improve the Info mode line
further (bug#13776).
2021-09-07 17:46:55 +02:00
Eli Zaretskii
4128186cc9 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-09-07 18:45:35 +03:00
Eli Zaretskii
11b56fa0b4 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.
2021-09-07 18:44:26 +03:00
Glenn Morris
f7c26e7b31 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
2021-09-07 08:31:22 -07:00