1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00
Commit graph

144764 commits

Author SHA1 Message Date
Glenn Morris
fa686f0998 Default python-shell-interpreter to python3
* lisp/progmodes/python.el (python-shell-interpreter): Default to
python3 (bug#45655).
2021-01-10 15:48:57 +01:00
David Edmondson
6858b74763 Fix example in the Gnus manual
* doc/misc/gnus.texi (Score Variables): In the example showing how to
use a list of functions for gnus-score-find-score-files-find-function,
return a list of strings from the lambda rather than trying to call
the string as a function (bug#45673).
2021-01-10 15:45:07 +01:00
Lars Ingebrigtsen
9717ba9309 Specify precedence in .authinfo files
* doc/misc/auth.texi (Help for users): Mention placing more
specific entries first (bug#45711).
2021-01-10 15:32:57 +01:00
Lars Ingebrigtsen
e186af261a Improve fill-region-as-paragraph when there's a fill prefix
* lisp/textmodes/fill.el (fill-region-as-paragraph): Try to
improve how line breaks are set on unbreakable text with a fill
prefix area that has spaces within (bug#45720).
2021-01-10 15:04:48 +01:00
k3tu0isui
918a5eae17 Make font locking work in mercury-mode
* lisp/progmodes/prolog.el (prolog-font-lock-keywords): Work in
all modes derived from prolog-mode (bug#45747).
(mercury-mode): Set up variables based on the Prolog system (bug#45747).

Copyright-paperwork-exempt: yes
2021-01-10 15:04:48 +01:00
Basil L. Contovounesios
25dadca0d1
Hyperlink symbol names without word syntax in Help
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Allow single-character symbol names.
* lisp/help-mode.el (help-xref-symbol-regexp): Also match symbol
names starting with symbol syntax (bug#6601, bug#24309).
* test/lisp/help-mode-tests.el (help-mode-tests-xref-button): Test
hyperlink creation for function names without symbol syntax.
2021-01-10 13:37:38 +00:00
Omar Polo
4c55eeee39 Add support for 'process-attributes' on OpenBSD
* src/sysdep.c (make_lisp_timeval):
(system_process_attributes): Implement for OpenBSD (bug#45729).
2021-01-10 14:25:30 +01:00
Basil L. Contovounesios
5960e9cf57
; * lisp/custom.el (defcustom): Fix last change. 2021-01-10 13:20:51 +00:00
Pedro Andres Aranda Gutierrez
13bd909591 Add support for flat buttons
* src/xfaces.c (Finternal_set_lisp_face_attribute):
(realize_gui_face): Add support for `flat-button' (bug#45735).

Copyright-paperwork-exempt: yes
2021-01-10 14:10:18 +01:00
Daniel Martín
e62f71988f Minor shortdoc link improvements
* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use
describe-function as a fallback link when a function is not documented
in any Info manual.  Also make the link respond to mouse-1, like the
rest of *Help* links, and add a proper help-echo property.
* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Same link
improvement as described before, this time for the shortdoc groups
(bug#45750).
2021-01-10 13:45:44 +01:00
Lars Ingebrigtsen
14a1a84a33 Add a link to the manual from the defcustom doc string
* lisp/custom.el (defcustom): Add a link to the manual for the
:type element.
2021-01-10 13:43:12 +01:00
Lars Ingebrigtsen
b84b689746 Revert recent mm-with-part change
* lisp/gnus/mm-decode.el (mm-with-part): Revert
23a887e426 -- this is the wrong
place to handle this peculiarity.
2021-01-10 13:30:31 +01:00
Michael Albinus
2c03bdc887 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2021-01-10 13:27:10 +01:00
Michael Albinus
aa6ee3302f Rework parts of Tramp's insert-directory, bug#45691
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Fix some
unibyte/multibyte inconsistencies.  (Bug#45691)

* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory-one-file):
New test.
2021-01-10 13:26:29 +01:00
Lars Ingebrigtsen
4ad8fc61e7 Add more mm-decode tests 2021-01-10 13:21:06 +01:00
Stefan Kangas
ac9c4ca8c9 * lisp/subr.el (global-map): Doc fix; add cross-reference. 2021-01-10 12:51:04 +01:00
F. Jason Park
09ee2d0095 Create new test file for socks.el
* test/lisp/net/socks-tests.el (socks-tests-auth-filter-url-http): Add
SOCKS5 authentication test and fake server (bug#45162).
2021-01-10 12:40:53 +01:00
Philipp Stephani
690cf6b8d8 Increase probability that a process test succeeds.
* test/src/process-tests.el
(process-tests/fd-setsize-no-crash/make-process): Work around
potential Emacs bug.
2021-01-10 10:14:27 +01:00
Philipp Stephani
302e6d4623 Remove a pointless check for WCOREDUMPED.
WCOREDUMPED can only be used if the process was killed.

* src/process.c (status_convert): Don't check WCOREDUMPED if
WIFEXITED.
2021-01-10 09:50:15 +01:00
Tassilo Horn
7a89b4b5d3 Support keyval style beamer frame labels
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Support keyval
style beamer frame labels.
2021-01-10 09:40:07 +01:00
Eric Abrahamsen
9b57ecfabe Remove reference to gnus-bug-create-help-buffer
* lisp/gnus/gnus-win.el (gnus-buffer-configuration): Variable no
longer exists.
2021-01-09 20:44:54 -08:00
Philipp Stephani
4cebd2ded0 Don't unblock SIGCHLD too early.
We first need to register the received process ID so that
'handle_child_signal' checks it.  Otherwise we might never call
'waitpid' for these processes, risking deadlock.

* src/callproc.c (call_process):
* src/process.c (create_process): Don't unblock SIGCHLD before
registering the process ID to wait for.

* src/callproc.c (emacs_spawn): Accept a signal set from the caller.
2021-01-09 21:26:52 +01:00
João Távora
ace749f2e3 Count Flymake diagnostics in modeline by severity, not type
Originally reported in https://github.com/joaotavora/eglot/issues/588
by Pankaj Jangid.

* lisp/progmodes/flymake.el (flymake--mode-line-counter): Count
diagnostics by severity level, not by type.
(Version): Bump to 1.1.1
2021-01-09 18:50:19 +00:00
Stefan Monnier
981d5eaba8 * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Fix build of gnus-agent.el
Don't burp on "naked" variable let bindings.
2021-01-09 11:35:53 -05:00
Eli Zaretskii
fe7263803c Fix cl-concatenate use in macros
* lisp/emacs-lisp/cl-macs.el (inline): Remove cl-concatenate.
(Bug#45610)
2021-01-09 14:12:14 +02:00
Stefan Monnier
29c7f8c915 * lisp/emacs-lisp/cl-macs.el: Optimize self-calls in tail position
Implement a limited form of tail-call optimization for the special
case of recursive functions defined with `cl-labels`.  Only self-recursion
is optimized, no attempt is made to handle more complex cases such a mutual
recursion.

The main benefit is to reduce the use of the stack, tho in my limited
tests, this can also improve performance (about half of the way to
a hand-written `while` loop).

(cl--self-tco): New function.
(cl-labels): Use it.

* lisp/subr.el (letrec): Optimize single-binding corner case.

* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels): Add tests
to check that TCO is working.
2021-01-08 19:59:31 -05:00
Dmitry Gutov
6e73e07a6f Make sure default-directory relates to the originating buffer
* lisp/progmodes/xref.el (xref--show-xref-buffer):
Pick up default-directory value from the caller
(https://lists.gnu.org/archive/html/emacs-devel/2021-01/msg00551.html).
(xref-show-definitions-buffer-at-bottom): Same.
2021-01-09 02:10:06 +02:00
Stefan Monnier
3b9dad88e0 * lisp/subr.el (letrec): Optimize some non-recursive bindings
* lisp/emacs-lisp/macroexp.el (macroexp--fgrep): Look inside bytecode
objects as well.

* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
* test/lisp/subr-tests.el (subr--tests-letrec): New tests.
2021-01-08 18:44:13 -05:00
Stefan Monnier
9d3d6f8500 * lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Fix last change 2021-01-08 18:28:47 -05:00
Stefan Monnier
768a352793 * lisp/emacs-lisp/macroexp.el (macroexp--fgrep): Rename from pcase--fgrep
* lisp/emacs-lisp/cl-generic.el (cl--generic-fgrep): Delete.
(cl--generic-lambda): Use `macroexp--pacse` instead.

* lisp/emacs-lisp/pcase.el (pcase--fgrep): Rename to `macroexp--fgrep`.
2021-01-08 17:57:26 -05:00
Stefan Kangas
a31bfd5945 Merge recently added kbd tests
* test/lisp/subr-tests.el (subr--kbd): Merge test...
(subr-test-kbd): ...with this one.  Fix thinko in my previous commit.
Thanks to Mattias Engdegård <mattiase@acm.org>.
2021-01-08 15:26:11 +01:00
Stefan Kangas
5ac7b48075 Lift define-prefix-command to Lisp
* lisp/subr.el (define-prefix-command): New defun.
* src/keymap.c (Fdefine_prefix_command): Remove DEFUN.
(syms_of_keymap): Remove defsubr for Fdefine_prefix_command.
* test/lisp/subr-tests.el (subr-test-define-prefix-command): New
test.
2021-01-08 15:16:02 +01:00
Stefan Kangas
f5cfe5a0a9 * test/lisp/subr-tests.el (subr-test-kbd): New test. 2021-01-08 14:00:42 +01:00
Stefan Kangas
705292c200 Remove unused DEFSYM
* src/minibuf.c (syms_of_minibuf) <Qhistory_length>: Remove unused
DEFSYM.
2021-01-08 14:00:42 +01:00
Eli Zaretskii
62e0c67590 Fix syntax of space characters
* lisp/international/characters.el (tbl): Give all the space
characters whose Unicode General Category is Zs the 'space'
syntax.  (Bug#45660)
2021-01-08 13:53:28 +02:00
Michael Albinus
656801f5bb * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process):
Tag it :unstable on hydra.
2021-01-08 09:58:31 +01:00
Juri Linkov
cd56406b62 * lisp/tab-bar.el: Improve tab-bar-show (bug#45556)
* lisp/tab-bar.el (tab-bar-show): Change :set lambda to update all frames.
Improve docstring.
2021-01-07 20:08:44 +02:00
Juri Linkov
c0ca935917 * lisp/mb-depth.el (minibuffer-depth-indicator): Add :group 'minibuffer'. 2021-01-07 19:56:59 +02:00
Stefan Kangas
c8448f6185 Remove an outdated comment
* lisp/subr.el: Remove comment to reflect recent change in the
definition of global-map, esc-map and ctl-x-map.
2021-01-07 18:51:50 +01:00
Lars Ingebrigtsen
3dc3874c76 Further display-buffer doc changes
* lisp/window.el (display-buffer): `display-buffer-alist' is
apparently the variable the user should be directed towards.
2021-01-07 16:47:30 +01:00
Michael Albinus
3e99ff97e5 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2021-01-07 16:43:45 +01:00
Michael Albinus
f5b8e5a757 * test/lisp/filenotify-tests.el (file-notify-test07-many-events-remote):
Mark it as unstable also on emba.
2021-01-07 16:43:27 +01:00
Lars Ingebrigtsen
40a0f8a3a2 Add a display-buffer window selection function that's more like XEmacs
* doc/lispref/windows.texi (Buffer Display Action Functions):
Document it.
* lisp/window.el (display-buffer--action-function-custom-type): Add.
(display-buffer): Mention it.
(display-buffer-use-least-recent-window): New function (bug#45688).

* src/window.c (Fwindow_bump_use_time): New function.
2021-01-07 16:35:48 +01:00
Lars Ingebrigtsen
0e6b74d204 Fix typo in last display-buffer doc string change
* lisp/window.el (display-buffer): Fix typo in last doc string change.
2021-01-07 16:00:58 +01:00
Lars Ingebrigtsen
fa1f41159f Edit the display-buffer doc string slightly
* lisp/window.el (display-buffer): Reword the start of the doc
string (bug#45688).
2021-01-07 15:45:05 +01:00
Lars Ingebrigtsen
23a887e426 Add work-around for nnmaildir encoding problem
* lisp/gnus/mm-decode.el (mm-with-part): Fix problem with
multipart 8bit encoded posts from nnmaildir (bug#44307).
2021-01-07 15:12:23 +01:00
Lars Ingebrigtsen
7e80aecc24 Add tests for mm-decode.el 2021-01-07 14:32:28 +01:00
F. Jason Park
a7fdba7889 Clear socks protocol scratch after authentication
* lisp/net/socks.el (socks-open-connection): Fix incomplete patch
titled "Append incremental message segments in socks-filter," which
addressed chunk ordering but neglected to zero out the work area
following successful username/password authentication (bug#45162).
2021-01-07 13:43:13 +01:00
Andreas Schwab
e15386da5d Fix quoting problem in pop3-uidl-save
* lisp/net/pop3.el (pop3-uidl-save): Quote strings properly
(bug#43896).
2021-01-07 13:20:43 +01:00
Lars Ingebrigtsen
2f6e30cd86 Revert mark-paragraph change and add tests
* lisp/textmodes/paragraphs.el (mark-paragraph): Revert
eb090f65ce (bug#45318).  This restores
the behaviour from Emacs 27 -- further work is needed on this patch.
2021-01-07 13:08:52 +01:00