Commit graph

142390 commits

Author SHA1 Message Date
leo
3345dc8e15 Allow disabling double buffering at build time
* configure.ac: Allow disabling double buffering (bug#32032).

Copyright-paperwork-exempt: yes
2020-08-26 15:03:08 +02:00
Robert Pluim
fca0d6e875 Allow directories to be called .el in -add-subdirs-to-load-path
* lisp/startup.el (normal-top-level-add-subdirs-to-load-path):
Allow the directories to be called "<foo>.el" (bug#32266).
2020-08-26 14:47:22 +02:00
Glenn Morris
f68a8869d1 Fix doc-view problem with file names with spaces in them
* lisp/doc-view.el (doc-view-get-bounding-box): Don't bug out on
file names with spaces in them (bug#33344).
2020-08-26 14:37:13 +02:00
Lars Ingebrigtsen
be7af20e73 Use format-prompt a couple of places
* lisp/ps-print.el (ps-print-preprint):
* lisp/help-fns.el (describe-function): Use `format-prompt'
(bug#12443).
2020-08-26 14:08:21 +02:00
Lars Ingebrigtsen
0985c0e6c6 Implement a way to customize "default" values
* doc/lispref/minibuf.texi (Text from Minibuffer): Document them.

* lisp/minibuffer.el (format-prompt): New function (bug#12443).
(minibuffer-default-prompt-format): New variable.
2020-08-26 14:07:25 +02:00
Lars Ingebrigtsen
a4d57add69 Make the epa key display slightly more informative
* lisp/epa.el (epa--button-key-text): Say what the validity
characters output by GPG mean (bug#34726).
2020-08-26 13:23:00 +02:00
Štěpán Němec
e48c60e7c9 Document ispell comment/string checking commands in the user manual
* doc/emacs/fixit.texi (Spelling): Mention
'ispell-comments-and-strings' and 'ispell-comment-or-string-at-point'.
(bug#6411)
2020-08-26 13:19:46 +02:00
Štěpán Němec
2aefd55904 ispell: Commands to check comments or strings at point or in region
* lisp/textmodes/ispell.el (ispell-comments-and-strings): Accept START
and END arguments, defaulting to active region in interactive calls.
(ispell-comment-or-string-at-point): New command. (bug#6411)
2020-08-26 13:19:46 +02:00
Eli Zaretskii
32f4fa80b5 ; * doc/lispref/backups.texi (Auto-Saving): Fix wording of last change. 2020-08-26 13:46:56 +03:00
Noam Postavsky
7e809b9ef7 Don't recommend redefining auto-save filename functions
* doc/lispref/backups.texi (Auto-Saving): Document
auto-save-file-name-transforms.
* lisp/files.el (make-auto-save-file-name)
(auto-save-file-name-p): Remove suggestion to redefine for
customization (bug#34911).
2020-08-26 12:37:24 +02:00
Phil Sainty
fa3959f5cb term.el: Use correct exit status in suggested dir-tracking functions
* lisp/term.el: Make some of the examples better (bug#43055).
2020-08-26 12:03:32 +02:00
Brian Leung
6d84853de8 eshell: Remove unnecessary check in em-hist
* lisp/eshell/em-hist.el
(eshell-previous-matching-input-string-position): Both before and
within the while loop, n is always smaller than n (bug#43056).

Copyright-paperwork-exempt: yes
2020-08-26 12:01:14 +02:00
Lars Ingebrigtsen
99fe2a2643 Remove side-effect-free markup for assoc-default
* lisp/subr.el (assoc-default): assoc-default isn't
side-effect-free, because it takes a :test parameter that can do
anything (bug#37943).
2020-08-26 11:28:18 +02:00
Mattias Engdegård
1926fe6527 Fix lexical misunderstandings in gnus-icalendar-tests.el (bug#39782)
* test/lisp/gnus/gnus-icalendar-tests.el:
(icalendar-tests--get-ical-event): Remove unused function accidentally
copy-pasted from icalendar-tests.el.
(gnus-icalendar-parse, gnus-icalendary-byday):
Remove unintended initial newlines.
Duplicate comma-escaping backslashes so that they have intended
effects, conforming to RFC 5545.
Remove ineffective comma-escaping backslashes where not intended.
2020-08-26 10:48:44 +02:00
Paul Eggert
e823709d17 regex-emacs: copy less when reallocating
* src/regex-emacs.c (GROW_FAIL_STACK): Copy just the
occupied stack slots, as the rest are garbage.
2020-08-26 00:20:31 -07:00
Paul Eggert
bd5771ff27 regex-emacs: fix leak on memory allocation failure
* src/regex-emacs.c (ENSURE_FAIL_STACK): If the failure
stack cannot be grown, free locally-allocated storage
before returning.
2020-08-26 00:20:31 -07:00
Paul Eggert
4c0a9754ac regex-emacs: subscript-check register numbers
* src/regex-emacs.c (PUSH_FAILURE_REG, POP_FAILURE_REG_OR_COUNT)
(re_match_2_internal): Add some easserts for subscript checking.
2020-08-26 00:20:31 -07:00
Paul Eggert
82c089f532 regex-emacs: omit regstart tests and regend set
* src/regex-emacs.c (PUSH_FAILURE_REG, POP_FAILURE_REG_OR_COUNT)
(re_match_2_internal): Add some assertions that regstart
is set whenever regend is.
(re_match_2_internal): Omit two unnecessary REG_UNSET (regstart ...)s
and one unnecessary assignment to regend.
2020-08-26 00:20:31 -07:00
Paul Eggert
768bea30cb regex-emacs omit allocation of 3 slots
* src/regex-emacs.c (re_match_2_internal): Avoid
unnecessary allocation of REGEND[0], BEST_REGSTART[0],
BEST_REGEND[0].
2020-08-26 00:20:31 -07:00
Paul Eggert
438975bbaa regex-emacs omit POS runtime check
* src/regex-emacs.c (re_match_2_internal): Replace unnecessary
runtime check of POS with some eassumes.
2020-08-26 00:20:30 -07:00
Paul Eggert
b64d04c3d6 Fix gpg2-related test failures on RHEL 7.8
* test/lisp/gnus/mml-sec-tests.el (test-conf)
(mml-secure-en-decrypt-passphrase-no-cache-openpgp-todo)
(mml-secure-run-tests-with-gpg2):
Use epg-find-configuration instead of the obsolescent
epg-configuration.  This fixes test failures on RHEL 7.8,
where ‘gpg’ and ‘gpg2’ are both 2.0.22.
2020-08-25 18:33:48 -07:00
Paul Eggert
ea382a289d mml-secure-en-decrypt-sign-1-2-double is unstable
* test/lisp/gnus/mml-sec-tests.el:
(mml-secure-en-decrypt-sign-1-2-double): Mark this as unstable.
2020-08-25 18:03:16 -07:00
Paul Eggert
d4b5dff482 Update from Gnulib
This incorporates:
2020-08-25 verify: Avoid warnings when assume(0) is used
* lib/verify.h: Copy from Gnulib.
2020-08-25 17:57:38 -07:00
Stefan Kangas
65543b5a87 Add package prefix to jsonrpc defconst
* lisp/jsonrpc.el (jsonrpc-default-request-timeout): Rename from
'jrpc-default-request-timeout'.
(jrpc-default-request-timeout): Make into obsolete variable alias
for 'jsonrpc-default-request-timeout'.  (Bug#40054)
2020-08-26 00:42:06 +02:00
Paul Eggert
375e87409a Omit "V" at the start of DEFVAR_BOOL vars
Problem noted by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00846.html
* src/font.c (xft_ignore_color_fonts):
* src/syntax.c (comment_end_can_be_escaped):
* src/xdisp.c (word_wrap_by_category, display_fill_column_indicator):
Rename these DEFVAR_BOOL variables to avoid the initial "V"
that wrongly suggests that they are Lisp_Object variables.
All uses changed.
2020-08-25 14:28:26 -07:00
Daniel Colascione
9c011a1083 Add undefine keyword to make-mode
* lisp/progmodes/make-mode.el (makefile-gmake-statements): Add
"undefine" to the list of gmake keywords
2020-08-25 11:26:13 -07:00
Stefan Kangas
a17ad0b212 Add "Delete" submenu to Dired "Operate" menu
* lisp/dired.el (dired-mode-map): Add "Delete" submenu to "Operate"
menu with an entry for 'dired-do-flagged-delete'.  (Bug#41524)
2020-08-25 20:24:22 +02:00
Eric Abrahamsen
585beb6c12 Add basic D-Bus integration to Gnus
* lisp/gnus/gnus-dbus.el: New library, registering a signal that
closes all Gnus servers when the system is going to sleep.
* lisp/gnus/gnus-start.el: Check new option
`gnus-dbus-close-on-sleep', and register the appropriate D-Bus signal
if it is non-nil.
* lisp/gnus/gnus.el: New gnus-dbus customization group.
* doc/misc/gnus.texi: Document.
2020-08-25 10:24:08 -07:00
Štěpán Němec
0e01d5aa72 Preserve setf semantics in 'substring', 'cons', 'logand' expanders
* doc/lispref/variables.texi (Adding Generalized Variables): Fix example.
* lisp/emacs-lisp/cl-lib.el (substring)
* lisp/emacs-lisp/gv.el (cons, logand): Return the value being
assigned, as specified for 'setf'.  (bug#35546)
2020-08-25 17:59:05 +02:00
Lars Ingebrigtsen
f3e29733bb Tweak the file/buffer comparison from previous save-some-buffers change
* lisp/files.el (save-some-buffers): Relax the "similarity" regexp
from the previous regexp: Don't show both file and buffer names if
the file is /tmp/foo and the buffer name is foo<zot>.
2020-08-25 17:07:39 +02:00
Lars Ingebrigtsen
7445560d0c Fix problem with folded Gcc headers in Gnus
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Tokenize the gcc
header properly (there may be newlines and tabs in the separators)
(bug#43036).
2020-08-25 16:57:53 +02:00
Lars Ingebrigtsen
6d10b607d0 Possibly mention both file and buffer names in save-some-buffers
* lisp/files.el (save-some-buffers): If the file and buffer names
are dissimilar, mention both their names (bug#8399).
2020-08-25 16:47:10 +02:00
Lars Ingebrigtsen
e8db980dcb Don't bug out in gnus-icalendar when there no recurring event
* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:recurring-days): Fix previous patch
(bug#43038) -- don't bug out when there's no recurring event.
2020-08-25 16:36:15 +02:00
Michael Albinus
665fe1c185 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2020-08-25 16:27:09 +02:00
Michael Albinus
f9754ef74a * admin/admin.el (reminder-for-release-blocking-bugs): New command. 2020-08-25 16:26:30 +02:00
Lars Ingebrigtsen
642c921f4e remove-overlays doc clarification
* lisp/subr.el (remove-overlays): Doc fix (bug#13648).
2020-08-25 16:22:07 +02:00
Lars Ingebrigtsen
1165618288 Doc fix for copy-directory
* lisp/files.el (copy-directory): PARENTS is no longer the last
argument.
2020-08-25 15:32:57 +02:00
Michael Albinus
36f2f67c96 Merge from origin/emacs-27
44104a607a Fix error in GMP test
e26e63444d Add Feature testing for Windows binaries
4e2caef384 ; * src/character.c (str_as_multibyte): Fix the commentary.
d3a4ce8420 Revert "; * etc/NEWS: Remove temporary note on documentati...
16f00e36dc * admin/admin.el (set-version): Trap yet another NEWS error.
121be3e118 ; * etc/NEWS: Remove temporary note on documentation.  (Bu...
5fcb97dabd Fix cond jump table compilation (bug#42919)
2020-08-25 15:29:38 +02:00
Eli Zaretskii
478c2e2362 ; * lisp/info.el (Info-up): Fix a typo in a comment. 2020-08-25 16:03:51 +03:00
Lars Ingebrigtsen
1064b2f65e Extend background colours in shr
* lisp/net/shr.el (shr-colorize-region): Extend backgrounds to the
end (bug#43031).  This avoid ragged edges to the right when, for
instance, the <body> has a bgcolor.
(shr-face-background): Ditto.
2020-08-25 13:57:00 +02:00
Stephen Berman
71209b231a Tweak how "u" works in Info buffers when scroll-conservatively is set
* info.el (Info-up): If scroll-conservatively is non-zero and
less than 101, display as much of the superior node above the
target line as possible (Bug#13690).
2020-08-25 13:30:58 +02:00
Lars Ingebrigtsen
764bad713e Make shadowing warning in describe_map less confusing
* src/keymap.c (describe_map): A binding may be shadowed by
something else than a mode (bug#14086) (just a `define-key'
works), so don't say that it's a mode that shadows it.
2020-08-25 13:14:00 +02:00
Lars Ingebrigtsen
64d2e5a7ad Revert previous hideshow commit
Hideshow has defaults that are overridden if we look for derived modes
in hs-special-modes-alist.  For instance, in lisp-interaction-mode
we'll choose a lookup based on parent modes, and that overrides the
default (bug#43032).

This reverts a415179b56.
2020-08-25 10:07:08 +02:00
Paul Eggert
d494f9e81a Update from Gnulib
This incorporates:
* lib/diffseq.h, m4/inttypes.m4: Copy from Gnulib.
* m4/gnulib-comp.m4: Regenerate.
2020-08-24 16:19:28 -07:00
Phillip Lord
44104a607a Fix error in GMP test
* etc/w32-feature.el: Update to use system-configuration-features for
  GMP test.
2020-08-24 22:44:21 +01:00
Phillip Lord
e26e63444d Add Feature testing for Windows binaries
* etc/w32-feature.el: New file
2020-08-24 22:14:01 +01:00
Paul Eggert
e0345b4e86 replace-buffer-contents cleanups
* src/editfns.c (NOTE_DELETE, NOTE_INSERT): Avoid unnecessary parens.
(Freplace_buffer_contents): Check args before returning results.
Avoid integer overflow when computing too_expensive, and work even
if MAX-COSTS is bignum.  Call alloca and/or malloc just once, not
three times.
(set_bit, bit_is_set): Simplify micro-optimization by using eassume.
2020-08-24 13:17:48 -07:00
Paul Eggert
08a6d14e41 Fix replace-region-contents performance bug
* src/editfns.c (rbc_quitcounter): Remove; the quitcounter
is now part of the context.
(EXTRA_CONTEXT_FIELDS): Remove unused member early_abort_tests.
Add jmp, quitcounter.
(Freplace_buffer_contents): Use setjmp/longjmp to recover from
a compareseq that runs too long.  Omit unnecessary rarely_quit
call.
(buffer_chars_equal): Occasionally check for early abort and
longjmp out if so (Bug#43016).
2020-08-24 13:17:48 -07:00
Lars Ingebrigtsen
519fc10f12 Clarify sorting order by file-backup-file-names
* doc/lispref/backups.texi (Backup Names): Ditto.

* lisp/files.el (file-backup-file-names): Clarify sorting order.
2020-08-24 22:04:28 +02:00
Lars Ingebrigtsen
517285f7ca Rewrite the epa key interface to use buttons instead of widgets
* lisp/epa.el (epa-font-lock-keywords): Removed.
(epa-key-list-mode-map): Bind tab/backtab to button navigation.
(epa-key): Remove widget.
(epa--button-key-text): Return the propertized text instead of
return a widget text.
(epa-key-list-mode): Don't use font locking; everything is output
as it should be.
(epa--insert-keys): Rewrite to just output the data instead of
widgetising.
(epa--select-keys): Insert buttons instead of widgets.
2020-08-24 21:54:56 +02:00