1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 05:00:47 -08:00
Commit graph

143783 commits

Author SHA1 Message Date
Basil L. Contovounesios
d7a2d7250d Modify only local send hook in submit-emacs-patch
* lisp/mail/emacsbug.el (submit-emacs-patch): Don't modify global
message-send-hook.
2020-10-29 23:33:29 +00:00
Noah Friedman
da6234e2df Make sure pixel sizes are zero when setting window size for ptys.
* sysdep.c (set_window_size): Initialize data to zero to avoid
passing any garbage from the stack to ioctl.
2020-10-29 14:55:37 -07:00
Harald Jörg
96e371b44a cperl-mode: Make timeout test more robust
* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-bug-10483): Increase the timeout to 2 seconds
and mark the test as expensive.  Also, suppress it for Emacs
versions below 28, where the test times out though the function
works in manual tests.  (Bug#44317)
2020-10-29 22:44:47 +01:00
Basil L. Contovounesios
a6cb425240 Simplify some bibtex.el variable definitions
* lisp/textmodes/bibtex.el (bibtex-include-OPTkey)
(bibtex-user-optional-fields, bibtex-BibTeX-entry-alist)
(bibtex-biblatex-entry-alist, bibtex-generate-url-list): Use :risky
tag instead of risky-local-variable property.

(bibtex-entry-format, bibtex-maintain-sorted-entries)
(bibtex-sort-entry-class, bibtex-dialect)
(bibtex-autokey-name-case-convert-function): Use :safe tag instead
of safe-local-variable property.

(bibtex-autokey-name-case-convert-function): Let custom function
default to 'identity', not 'ignore'.

(bibtex-strings, bibtex-reference-keys): Define with defvar-local
instead of defvar+make-variable-buffer-local.
2020-10-29 20:42:31 +00:00
Stefan Kangas
020a334992 * lisp/reposition.el: Use lexical-binding. 2020-10-29 19:21:15 +01:00
Stefan Monnier
7b02d9ba48 * lisp/progmodes/tcl.el: Better match Tcl string formation rules (bug#39277)
(tcl--word-delimiters): New const.
(tcl--syntax-of-quote): New function.
(tcl-syntax-propertize-function): Use them.
(tcl-mode): Enable `syntax-propertize-multiline`.

* test/manual/indent/tcl.tcl: New file.
2020-10-29 13:38:59 -04:00
Michael Albinus
372739b406 Handle several children of PATH in dbus-managed-objects-handler
* lisp/net/dbus.el (dbus-managed-objects-handler): Handle several
children of PATH.  (Bug#44298)

* src/dbusbind.c (xd_signature, xd_append_arg): Check object path.

* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects):
Tag it :expensive-test.  Remove superfluous check.
2020-10-29 16:56:40 +01:00
Michael Albinus
f5e080fb1f Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2020-10-29 16:55:12 +01:00
Stefan Kangas
be59466be7 Fix CUA Mode menu entry to be less confusing
Note that the old text was incorrect; shift-selection is controlled by
the variable shift-select-mode.

* lisp/menu-bar.el (menu-bar-options-menu): Make CUA Mode menu entry
less confusing when cua-enable-cua-keys is nil.  (Bug#43322)
2020-10-29 15:50:21 +01:00
Ken Brown
2d15296db1 Fix failure of 'emacs --daemon' on Cygwin
* src/emacs.c (DAEMON_MUST_EXEC): Define unconditionally on
Cygwin, not just if HAVE_NTGUI is defined.  This fixes the failure
of 'emacs --daemon' to start on the non-w32 Cygwin builds.
(Bug#44285)
2020-10-29 08:45:29 -04:00
Lars Ingebrigtsen
ada9b7c9ce Tweak previous article-treat-ansi-sequences fix
* lisp/gnus/gnus-art.el (article-treat-ansi-sequences): Redo the
previous fix to avoid a compilation warning (bug#44299).
2020-10-29 12:38:13 +01:00
Hugh Daschbach
1fb85fb138 * test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): New test. 2020-10-29 12:16:45 +01:00
Andreas Schwab
8cd0ce9b85 Don't spill ansi-color across parts in articles
* lisp/gnus/gnus-art.el (article-treat-ansi-sequences): Reset
ansi-color-context-region.  (Bug#44299)
2020-10-29 10:21:17 +01:00
Juri Linkov
eae31b01a2 * lisp/bindings.el (narrow-map): Bind C-x n g to goto-line-relative (bug#9917) 2020-10-29 11:18:33 +02:00
Juri Linkov
46b3db5579 Widen buffer before going to point found by xref-find-definitions (bug#44294)
* lisp/progmodes/elisp-mode.el (xref-location-marker): Widen before going
to the found position.

* lisp/progmodes/etags.el (etags-goto-tag-location): Rerun after removing
narrowing.

* lisp/simple.el (goto-line-read-args): Use buffer-narrowed-p.
2020-10-29 11:09:20 +02:00
Mattias Engdegård
bb3d13ac35 ; * lisp/emacs-lisp/shortdoc.el (regexp): less contrived rx example 2020-10-28 15:05:35 +01:00
Stefan Kangas
bd3ecfef84 Run substitute-command-keys on shortdoc section headings
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Run
substitute-command-keys on section headings before displaying.
2020-10-28 14:46:43 +01:00
Stefan Kangas
6b3ed2375b Extend the regexp shortdoc group
* lisp/emacs-lisp/shortdoc.el (regexp): New section "Match Data"; add
save-match-data.  New section "The `rx' Structured Regexp Notation".
2020-10-28 14:46:28 +01:00
Lars Ingebrigtsen
5de5b63e57 Document all parameters on `indent-relative'
* doc/lispref/text.texi (Relative Indent): Mention the FIRST-ONLY
parameter (bug#39330).
2020-10-28 12:47:00 +01:00
Lars Ingebrigtsen
63b8f25b88 Disable mml-sec-tests on MacOS
* test/lisp/gnus/mml-sec-tests.el (test-conf): Disable tests on
MacOS (bug#44259).
2020-10-28 11:54:53 +01:00
Alan Mackenzie
8abce5b0c6 CC Mode: Only recognize foo (*bar) as a function pointer when followed by (
* lisp/progmodes/cc-engine.el (c-forward-over-decl-or-cast-1): (after CASE 2)
test variables got-suffix-after-parens and at-decl-end before invoking
c-fdoc-shift-type-backward.
2020-10-28 10:22:37 +00:00
Lars Ingebrigtsen
0cb44eed6c Display times in a more human-readable way in list-timers
* lisp/emacs-lisp/timer-list.el (list-timers): Format the
intervals in a more human-readable way (bug#39956).
2020-10-28 10:08:09 +01:00
Stefan Kangas
e6f8f68e37 * lisp/net/hmac-def.el: Use lexical-binding. 2020-10-28 09:50:39 +01:00
Lars Ingebrigtsen
c6fb23873a Adjust python tests after fix for bug#39398 2020-10-28 09:13:53 +01:00
Stefan Kangas
9f6bb7c9c7 * lisp/net/eudc-vars.el: Use lexical-binding. 2020-10-28 06:04:21 +01:00
Stefan Kangas
94ddb1987e ; Fix license statement in several files
Add the line "This file is part of GNU Emacs."
2020-10-28 03:41:55 +01:00
Stefan Kangas
039ffaf69f Use lexical-binding in netrc.el and add tests
* lisp/net/netrc.el: Use lexical-binding.
(netrc-file): Remove redundant :group arg.
* test/lisp/net/netrc-resources/authinfo:
* test/lisp/net/netrc-resources/services:
* test/lisp/net/netrc-tests.el: New files.
2020-10-28 03:24:18 +01:00
Stefan Kangas
01d67bc845 Warn against using the MD4 hash function
* lisp/md4.el (md4): Warn against using it, since its security is
non-existent and it has been declared obsolete.  It should probably
only be used by our NTLM support.  Point users to secure-hash instead.
2020-10-28 02:45:17 +01:00
Dmitry Gutov
2efff5e61c css--complete-property-value: Limit the backward search
* lisp/textmodes/css-mode.el (css--complete-property-value):
Don't search back when ppss-innermost-start is nil (bug#44214).
2020-10-28 03:43:47 +02:00
Stefan Kangas
9944385cfb Remove Emacs 20 compat code from ede/files.el
* lisp/cedet/ede/files.el (ede--put-inode-dir-hash)
(ede--get-inode-dir-hash, ede-project-directory-remove-hash)
(ede--directory-project-from-hash)
(ede--directory-project-add-description-to-hash): Remove Emacs 20
compat code.
2020-10-28 02:08:39 +01:00
Stefan Kangas
86cfabc0c1 Remove some compat code from feedmail.el
* lisp/mail/feedmail.el (feedmail-message-action-help-blat)
(feedmail-run-the-queue, feedmail-queue-send-edit-prompt-inner)
(feedmail-send-it-immediately): Remove compat code for XEmacs,
Emacs 19 and 20.
2020-10-28 02:07:05 +01:00
Stefan Kangas
12505df89f Remove some Emacs 20 compat code from speedbar.el
* lisp/speedbar.el (speedbar-easymenu-definition-trailer): Remove
Emacs 20 compat code.
2020-10-27 22:32:37 +01:00
Lars Ingebrigtsen
8c8349e4b5 Tweak how `C-c C-r' computes the region in python-mode
* lisp/progmodes/python.el (python-shell-buffer-substring): Don't
extend the region to the start of the line (bug#39398), but allow
sending the actual region as marked.
2020-10-27 20:29:08 +01:00
Lars Ingebrigtsen
f1bf89e383 Make gnus-output-to-rmail appending work better
* lisp/gnus/gnus-util.el (gnus-output-to-rmail): Ensure we have a
blank line before the next line when using mbox format (bug#39580).
2020-10-27 19:29:02 +01:00
Lars Ingebrigtsen
15a67102dd Fix intermittent rmail-summary-delete-forward problem
* lisp/mail/rmailsum.el (rmail-summary-delete-forward):
`rmail-delete-message' may apparently clear
`rmail-current-message' sometimes, so save the message number
before deleting (bug#39612).
2020-10-27 19:29:02 +01:00
Mattias Engdegård
3a6d55b792 gdb-mi: use lexical lambdas
* lisp/progmodes/gdb-mi.el (gdb-tooltip-print-1, gud-watch)
(gdb-var-list-children, gdb-edit-value)
(gdb-bind-function-to-buffer, gdb-place-breakpoints)
(gdb-preempt-existing-or-display-buffer):
Expose lambdas to the compiler as lexical closures instead of building
them the old-fashioned way.  Remove #' before lambda.
2020-10-27 19:10:25 +01:00
Mattias Engdegård
5a2b03043c Remove unused function in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-var-evaluate-expression-handler):
Remove.  (It was left behind in an old code reorganisation.)
2020-10-27 19:10:25 +01:00
Lars Ingebrigtsen
045d2a50dd Revert "Fontify strings in {} better in tcl-mode"
This reverts commit 7f32224dc3.

The changes led to things like

    proc foo5 () {
        return 6
    }

being fontified as a string, which is wrong.
2020-10-27 18:46:16 +01:00
Mauro Aranda
5cb9b8c24d Small fix to the new link for inherited faces in Customize
* lisp/cus-edit.el (cus--face-link): Link to the current value of the
widget, rather than to the widget's value upon creation (bug#44154).
2020-10-27 18:34:40 +01:00
Clemens Radermacher
85d1d8d768 Fix NEWS entry for fix of Bug#44080 2020-10-27 18:31:47 +01:00
Eli Zaretskii
2443b15a91 * src/buffer.c (syms_of_buffer) <fill-column>: Improve doc string. 2020-10-27 17:43:29 +02:00
Mattias Engdegård
7b257dff01 gdb-mi: Don't use bindat for field access
Replace uses of bindat-get-field with a simpler accessor,
since nothing here uses the bindat machinery in any way.

* lisp/progmodes/gdb-mi.el (gdb-mi--field): New.
(gdb-get-many-fields): Remove.
(gdb-var-create-handler, gdb-var-list-children-handler)
(gdb-var-update-handler, gdb-current-buffer-frame)
(gdb-update-gud-running, gdb-thread-exited, gdb-thread-selected)
(gdb-running, gdb-stopped, gdb-breakpoints-list-handler-custom)
(gdb-place-breakpoints, gdb-thread-list-handler-custom)
(def-gdb-thread-buffer-simple-command, gdb-select-thread)
(def-gdb-thread-buffer-gud-command, gdb-read-memory-custom)
(gdb-invalidate-disassembly, gdb-disassembly-handler-custom)
(gdb-disassembly-place-breakpoints, gdb-toggle-breakpoint)
(gdb-delete-breakpoint, gdb-goto-breakpoint, gdb-frame-location)
(gdb-stack-list-frames-custom, gdb-select-frame)
(gdb-edit-locals-value, gdb-locals-handler-custom)
(gdb-registers-handler-custom, gdb-changed-registers-handler)
(gdb-register-names-handler, gdb-frame-handler):
Use gdb-mi--field.
2020-10-27 16:36:16 +01:00
Glenn Morris
a8426f4672 Temporarily mark two failing tests
; Persistently failing tests can cause problems for automated builds,
; and make it harder to spot new failures.

* test/lisp/xt-mouse-tests.el (xt-mouse-tracking-basic)
(xt-mouse-tracking-utf-8): Currently failing.
2020-10-27 08:35:10 -07:00
Glenn Morris
0dfb896be2 Merge from origin/emacs-27
e0de9f3295 (origin/emacs-27) Don't skip empty lines when fitting mini...
a4ec03fa9b ; * etc/tutorials/TUTORIAL.de: Fix grammar (Bug#44246)
20c02e628c Improve documentation of display-fill-column-indicator
e2005f1f2a * INSTALL: Mention efaq.texi for installation of intlfonts.
71661b2872 Use WebKit sandboxing

# Conflicts:
#	etc/NEWS
2020-10-27 08:24:56 -07:00
Glenn Morris
dcd1095bc4 ; Merge from origin/emacs-27
The following commit was skipped:

8b1ccf5e7b Fix tramp-sh-handle-make-process; don't merge with master
2020-10-27 08:18:05 -07:00
Glenn Morris
606c6bf515 Merge from origin/emacs-27
c847d5998f Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs i...
2020-10-27 08:18:05 -07:00
Glenn Morris
fbf6c7b65c ; Merge from origin/emacs-27
The following commit was skipped:

8101083c7a Fix an error in tramp-sh-handle-make-process.  Dont' merge...
2020-10-27 08:18:05 -07:00
Glenn Morris
30ba1fcd1b Merge from origin/emacs-27
8b87ea6844 Recommend lexical-binding in Coding Conventions
e29cace60a Avoid rare crashes while producing line numbers
2020-10-27 08:18:05 -07:00
Simen Heggestøyl
d34082671a Complete property values in multi-line CSS declarations
* lisp/textmodes/css-mode.el (css--complete-property-value): Complete
property values even when preceded by a newline (bug#44214).
2020-10-27 15:19:58 +01:00
Lars Ingebrigtsen
608c821716 Fix history problem in `M-x shell' when started twice
* lisp/comint.el (comint-input-ring-file-name): Avoid having this
variable being killed on mode restart while the other ring
variables aren't (bug#39667).  This would mean that `M-x
shell'/`C-d'/`M-x shell' didn't save commands entered after the
second `M-x shell'.
2020-10-27 13:44:16 +01:00