]>
git.eshelyaron.com Git - emacs.git/log
Mattias Engdegård [Fri, 25 Sep 2020 15:00:17 +0000 (17:00 +0200)]
string-search robustness and documentation improvement (bug#43598)
* src/fns.c (Fstring_search): Check START-POS argument range.
Simplify logic. Improve doc string.
* test/src/fns-tests.el (string-search): Add test cases.
* doc/lispref/strings.texi (Text Comparison): Elaborate.
* lisp/emacs-lisp/byte-opt.el (pure-fns): Mark string-search as pure.
Noam Postavsky [Fri, 25 Sep 2020 14:10:56 +0000 (16:10 +0200)]
* CONTRIBUTE: Don't recommend action stamps
* CONTRIBUTE: Remove mention of the "action stamp" thing (bug#20609).
Lars Ingebrigtsen [Fri, 25 Sep 2020 14:06:35 +0000 (16:06 +0200)]
Partially revert previous prolog.el cleanup
* lisp/progmodes/prolog.el (prolog-font-lock-keywords): Partially
revert previous patch -- we want the prolog-warning-face symbol,
not its value.
Lars Ingebrigtsen [Fri, 25 Sep 2020 13:42:35 +0000 (15:42 +0200)]
Fix defcustom type in sql.el for sql-postgres-login-params
* lisp/progmodes/sql.el (sql-login-params): Fix defcustom type to
match sql-postgres-login-params value.
Lars Ingebrigtsen [Fri, 25 Sep 2020 13:38:53 +0000 (15:38 +0200)]
Fix a defcustom type in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-display-source-buffer-action): Fix
defcustom type to match the value.
Lars Ingebrigtsen [Fri, 25 Sep 2020 13:35:23 +0000 (15:35 +0200)]
Fix defcustom type in whitespace.el
* lisp/whitespace.el (whitespace-space-after-tab-regexp)
(whitespace-indentation-regexp): The first string here isn't a
regexp, it's a string (that's expanded with format to be a regexp).
Lars Ingebrigtsen [Fri, 25 Sep 2020 13:17:36 +0000 (15:17 +0200)]
Fix the defcustom type fix in python.el
* lisp/progmodes/python.el (python-pdbtrack-exit-command): Fix
defcustom type (bug#30990).
Lars Ingebrigtsen [Fri, 25 Sep 2020 13:15:21 +0000 (15:15 +0200)]
Fix some defcustom types
* lisp/whitespace.el (whitespace-style):
* lisp/gnus/message.el (message-screenshot-command):
* lisp/progmodes/compile.el (compilation-transform-file-match-alist):
* lisp/progmodes/gdb-mi.el (gdb-default-window-configuration-file):
* lisp/progmodes/python.el (python-pdbtrack-exit-command): Fix the
defcustom types.
* lisp/progmodes/sql.el (sql-password-wallet): Fix the value.
Lars Ingebrigtsen [Fri, 25 Sep 2020 12:46:36 +0000 (14:46 +0200)]
Add an expensive test for defcustom types
* admin/cus-test.el (cus-test-opts): Return the tests.
* test/lisp/custom-tests.el (check-for-wrong-custom-types): Test
custom types (bug#30990).
Lars Ingebrigtsen [Fri, 25 Sep 2020 12:30:13 +0000 (14:30 +0200)]
Mark string-search as being side effect free
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add
string-search.
Noam Postavsky [Fri, 25 Sep 2020 11:39:24 +0000 (13:39 +0200)]
Make the Man completion code work better if man -k fails
* lisp/man.el (Man-completion-table): Check the return code for
"man -k" and assume it failed if there's a non-zero exit code
(bug#16722).
Tino Calancha [Fri, 25 Sep 2020 11:25:08 +0000 (13:25 +0200)]
Use the char history in zap-up-to-char
* lisp/misc.el (zap-up-to-char): Use read-char-from-minibuffer
(bug#39154).
Mattias Engdegård [Fri, 25 Sep 2020 11:15:42 +0000 (13:15 +0200)]
Fix replace-in-string infloop with empty pattern string (bug#43598)
* lisp/subr.el (replace-in-string): Raise an error if FROMSTRING is
empty.
* test/lisp/subr-tests.el (replace-in-string): Add test case.
Lars Ingebrigtsen [Fri, 25 Sep 2020 09:47:59 +0000 (11:47 +0200)]
Tweak updating the process mark in set-process-buffer
* src/process.c (Fset_process_buffer): Only update the process
mark if we actually change the buffer.
Lars Ingebrigtsen [Fri, 25 Sep 2020 09:37:45 +0000 (11:37 +0200)]
Remove more compat code from prolog.el
* lisp/progmodes/prolog.el (prolog-font-lock-keywords): Remove
compat test for a face that's always defined.
Stefan Monnier [Fri, 25 Sep 2020 03:02:06 +0000 (23:02 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-use-smie): Declare obsolete
(ruby-mode-map, ruby-mode-menu): Don't use ruby-for/backward-sexp any more.
(ruby-mode-variables): Always setup SMIE navigation.
Still obey `ruby-use-smie` for indentation.
(ruby-forward-sexp, ruby-backward-sexp): Mark as obsolete.
Lars Ingebrigtsen [Fri, 25 Sep 2020 01:46:59 +0000 (03:46 +0200)]
Remove some XEmacs compat code from prolog.el
* lisp/progmodes/prolog.el (prolog-replace-in-string): Remove XEmacs
compat code and make obsolete.
(prolog-guess-fill-prefix): Adjust callers.
(prolog-uncomment-region): Make obsolete.
(prolog-mode-syntax-table): syntax-propertize-rules is always defined.
(prolog-syntax-propertize-function): Ditto.
(prolog-face-name-p): Make into obsolete alias.
(prolog-font-lock-keywords): Adjust callers.
Lars Ingebrigtsen [Fri, 25 Sep 2020 00:27:01 +0000 (02:27 +0200)]
Clean up replace-in-string slightly
* lisp/subr.el (replace-in-string): Clean up previous fix slightly.
Lars Ingebrigtsen [Fri, 25 Sep 2020 00:07:05 +0000 (02:07 +0200)]
Fix previous replace-in-string rewrite
* lisp/subr.el (replace-in-string): Fix logic errors in previous
patch.
Lars Ingebrigtsen [Thu, 24 Sep 2020 23:53:07 +0000 (01:53 +0200)]
Fix replace-in-string multibyteness problems with string-search
* lisp/subr.el (replace-in-string): Simplify by using the new
string-search function (bug#43598).
Lars Ingebrigtsen [Thu, 24 Sep 2020 23:52:10 +0000 (01:52 +0200)]
Add a new function 'string-search'
* doc/lispref/strings.texi (Text Comparison): Document it.
* src/fns.c (Fstring_search): New function.
Stefan Monnier [Thu, 24 Sep 2020 22:15:39 +0000 (18:15 -0400)]
* lisp/help-fns.el (help-fns--first-release): Use etc/NEWS as well
Glenn Morris [Thu, 24 Sep 2020 18:56:09 +0000 (11:56 -0700)]
Update a failing lisp test
* test/lisp/emacs-lisp/lisp-tests.el (up-list-no-cross-string):
Update for recent "Don't signal scan-error" change.
Juri Linkov [Thu, 24 Sep 2020 19:25:03 +0000 (22:25 +0300)]
Horizontal scrolling for mouse wheel with Shift modifier (bug#43568)
* lisp/mwheel.el (mouse-wheel-scroll-amount): Change 'shift' default value
from 5 to 'hscroll'. Add new option "Scroll horizontally" for 'hscroll'.
(mwheel-scroll): Handle value 'hscroll' and call mwheel-scroll-left-function
or mwheel-scroll-right-function.
* doc/emacs/frames.texi (Mouse Commands): Update for horizontal scrolling
with Shift modifier.
Theodor Thornhill [Thu, 24 Sep 2020 18:59:30 +0000 (21:59 +0300)]
Set mwheel default scroll value to 1 (bug#43380)
* lisp/mwheel.el (mouse-wheel-scroll-amount): Change default value 5 to 1
and shift default value from 1 to 5.
Default value is changed as discussed in etc/TODO.
Juri Linkov [Thu, 24 Sep 2020 18:52:22 +0000 (21:52 +0300)]
* lisp/simple.el (goto-line-read-args): More relevant default line number.
Glenn Morris [Thu, 24 Sep 2020 18:47:11 +0000 (11:47 -0700)]
Add skip condition for some dbus tests
* test/lisp/net/dbus-tests.el (dbus-test01-type-conversion)
(dbus-test01-basic-types): Add skip for hydra.nixos.org failures.
; Standardize license notice
Lars Ingebrigtsen [Thu, 24 Sep 2020 15:14:25 +0000 (17:14 +0200)]
Make set-process-buffer also update the process mark
* src/process.c (Fset_process_buffer): Update the process mark
(bug#43573).
Lars Ingebrigtsen [Thu, 24 Sep 2020 15:08:30 +0000 (17:08 +0200)]
Refactor process mark setting
* src/process.c (update_process_mark): Make into its own function.
(Fmake_process, Fmake_pipe_process, Fmake_serial_process)
(connect_network_socket): Use it.
dickmao [Thu, 24 Sep 2020 14:48:11 +0000 (16:48 +0200)]
Add sanity check for Gnus groups that belong to no topic
* lisp/gnus/gnus-topic.el (gnus-topic-change-level): Do not change
gnus-topic-alist when group is outside "topology" (bug#43582).
Eli Zaretskii [Thu, 24 Sep 2020 14:13:43 +0000 (17:13 +0300)]
Fix last change in resize_mini_window
* src/xdisp.c (resize_mini_window): Prevent recentering the
mini-window once its start position is computed. (Bug#43572)
Lars Ingebrigtsen [Thu, 24 Sep 2020 13:50:25 +0000 (15:50 +0200)]
Fix recent simple.el compilation warning
* lisp/simple.el (goto-line-relative): Suppress byte compilation
warning about goto-line.
Michael Albinus [Thu, 24 Sep 2020 08:17:03 +0000 (10:17 +0200)]
Minor Tramp cleanup
* doc/misc/tramp.texi: Some stylistic changes.
(Frequently Asked Questions): Mention ProxyCommand and ProxyJump.
* lisp/net/tramp-sh.el (tramp-use-ssh-controlmaster-options):
Fix docstring.
Eric Abrahamsen [Wed, 23 Sep 2020 23:01:38 +0000 (16:01 -0700)]
Write Gnus active files with quotes around group names
* lisp/gnus/gnus-util.el (gnus-write-active-file): In case of group
names with spaces in them (see Bug#42823). Names are later read with
`read', so this should be quite robust.
Juri Linkov [Wed, 23 Sep 2020 19:39:32 +0000 (22:39 +0300)]
New command goto-line-relative (bug#5042, bug#9917)
* lisp/simple.el (goto-line-read-args): New function with code from goto-line.
(goto-line): New arg RELATIVE. Also use 'widen-automatically' to
leave all lines accessible in the narrowed buffer.
(goto-line-relative): New command.
* lisp/info.el (Info-mode-map): Remap 'goto-line' to 'goto-line-relative'.
* doc/emacs/basic.texi (Moving Point):
* doc/emacs/display.texi (Optional Mode Line): Mention goto-line-relative.
Stefan Kangas [Wed, 23 Sep 2020 18:53:06 +0000 (20:53 +0200)]
Remove TODO to convert files to unit tests
* test/lisp/textmodes/css-mode-tests.el:
* test/lisp/progmodes/ruby-mode-tests.el: Remove TODO to convert test
files into unit tests. The files are still useful for debugging.
Ref: https://lists.gnu.org/r/emacs-devel/2020-09/msg01906.html
Stefan Kangas [Wed, 23 Sep 2020 17:41:59 +0000 (19:41 +0200)]
Convert some completion.el tests to ERT
* test/lisp/completion-tests.el: New file.
* lisp/completion.el: Move commented out tests to completion-tests.el.
Stefan Kangas [Wed, 23 Sep 2020 16:14:54 +0000 (18:14 +0200)]
Convert allout unit tests to ERT
* test/lisp/allout-tests.el: New file.
* lisp/allout.el (allout-run-unit-tests-on-load)
(allout-run-unit-tests): Remove.
(allout-tests-obliterate-variable)
(allout-tests-globally-unbound, allout-tests-globally-true)
(allout-tests-locally-true, allout-test-resumptions): Move to
allout-tests.el
* test/lisp/allout-widgets-tests.el: New file.
* lisp/allout-widgets.el (allout-widgets-run-unit-tests-on-load)
(allout-widgets-run-unit-tests): Remove.
(allout-test-range-overlaps): Move to allout-widgets-tests.el.
Stefan Kangas [Wed, 23 Sep 2020 14:22:49 +0000 (16:22 +0200)]
* lisp/repeat.el: Remove obsolete comment.
Michael Albinus [Wed, 23 Sep 2020 17:57:03 +0000 (19:57 +0200)]
* test/lisp/net/dbus-tests.el (dbus-test01-basic-types): Adapt test.
Mattias Engdegård [Wed, 23 Sep 2020 16:08:32 +0000 (18:08 +0200)]
; * lisp/emacs-lisp/lisp.el: rename parameter in last change
Mattias Engdegård [Fri, 18 Sep 2020 10:49:33 +0000 (12:49 +0200)]
Don't signal scan-error when moving by sexp interactively
* lisp/emacs-lisp/lisp.el (forward-sexp, backward-sexp, forward-list)
(backward-list, down-list, up-list, mark-sexp, kill-sexp)
(backward-kill-sexp): Remove unsightly scan-error when running
interactively and no further movement by sexp can be made (bug#43489).
Mauro Aranda [Wed, 23 Sep 2020 13:45:29 +0000 (15:45 +0200)]
Allow the newline character in the character widget (Bug#15925)
* lisp/wid-edit.el (widget-specify-field): Extend check for adding the
boundary overlay. Plus, a minor comment indentation fix.
(character widget): Tweak the valid-regexp to allow the newline
character.
* test/lisp/wid-edit-tests.el (widget-test-character-widget-value)
(widget-test-editable-field-widget-value): New tests (bug#15925).
Andrew G Cohen [Wed, 23 Sep 2020 11:47:15 +0000 (19:47 +0800)]
Improve mark handling in gnus nnselect
* lisp/gnus/nnselect.el (numbers-by-group,
nnselect-request-update-info, nnselect-push-info): Handle all three
mark types ('tuple, 'range, 'list) and general speedups.
Alan Mackenzie [Wed, 23 Sep 2020 08:50:11 +0000 (08:50 +0000)]
Handle escaped comment enders correctly in syntax.c, fixing bug #43558
This fixes forward-comment, scan-lists, and parse-partial-sexp.
* src/syntax.c (forw_comment): Detect and skip an escaped comment ender
(e.g. \*/ in C) when comment-end-can-be-escaped is non-nil.
Andrew G Cohen [Wed, 23 Sep 2020 08:46:36 +0000 (16:46 +0800)]
Run gnus-parse-headers-hook when retrieving nnselect headers
* lisp/gnus/nnselect.el (nnselect-retrieve-headers): Run the
gnus-parse-headers-hook when retrieving headers in nnselect, just like
in a real group.
Stefan Monnier [Wed, 23 Sep 2020 03:55:45 +0000 (23:55 -0400)]
test/src/xdisp-tests.el: New file
Andrew G Cohen [Wed, 23 Sep 2020 00:25:56 +0000 (08:25 +0800)]
Use gnus-extra-headers in nnselect header parsing
* lisp/gnus/nnselect.el (nnselect-retrieve-headers): Bind
nnmail-extra-headers to gnus-extra-headers before parsing retrieved
headers.
Lars Ingebrigtsen [Tue, 22 Sep 2020 15:32:51 +0000 (17:32 +0200)]
Ensure that the game directory exists before trying to write to it
* lisp/play/gamegrid.el (gamegrid-add-score-insecure): Make the
directory if it doesn't exist (bug#37836).
martin rudalics [Tue, 22 Sep 2020 14:44:15 +0000 (16:44 +0200)]
Make delete-pair only delete pairs that are part of insert-pair-alist
* lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that
are part of `insert-pair-alist' (bug#4136).
Lars Ingebrigtsen [Tue, 22 Sep 2020 14:20:05 +0000 (16:20 +0200)]
Fix off-by-one error in eldoc--handle-docs
* lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): We have one extra
line to use if we don't show the truncation message (bug#43543).
Lars Ingebrigtsen [Tue, 22 Sep 2020 14:02:37 +0000 (16:02 +0200)]
Speed up shr-insert slightly
* lisp/net/shr.el (shr-insert): Speed up regularising spaces --
the vast majority of the spaces are already OK, so transforming
" " to " " just takes time.
Lars Ingebrigtsen [Tue, 22 Sep 2020 13:10:30 +0000 (15:10 +0200)]
Fix filling problem in shr due to zero-width id tagging
* lisp/net/shr.el (shr-descend): Fix problem with filling lines
that have a zero-width ID tag at the start.
Eli Zaretskii [Tue, 22 Sep 2020 13:52:18 +0000 (16:52 +0300)]
Fix cursor display in mini-window under icomplete-mode
* src/xdisp.c (resize_mini_window): When we show only part of the
mini-window's contents, make sure the window-start position is at
the beginning of a screen line. (Bug#43519)
David Reitter [Tue, 22 Sep 2020 12:38:16 +0000 (13:38 +0100)]
Fix font-panel on NS (bug#43480)
* lisp/term/ns-win.el (ns-respond-to-change-font): Set the font using
customize.
Stefan Kangas [Tue, 22 Sep 2020 11:40:40 +0000 (13:40 +0200)]
Remove broken compat code from EDE
* lisp/cedet/ede/detect.el: Remove broken Emacs 24.1 compat code.
This would never have worked, since the fallback library is missing.
Mattias Engdegård [Tue, 22 Sep 2020 10:32:12 +0000 (12:32 +0200)]
; * test/lisp/progmodes/ps-mode-tests.el: Add missing backslash
Stefan Kangas [Tue, 22 Sep 2020 00:33:42 +0000 (02:33 +0200)]
Fix shellcheck warning
* build-aux/update-subdirs: Fix issue indicated by the shellcheck
linter (warning SC2046).
Stefan Kangas [Tue, 22 Sep 2020 00:04:15 +0000 (02:04 +0200)]
Support shellcheck in compilation-mode
* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Add shellcheck regexp.
* test/lisp/progmodes/compile-tests.el
(compile-tests--test-regexps-data):
(compile-test-error-regexps): Add test for shellcheck.
* etc/compilation.txt: Add shellcheck example.
* etc/NEWS: Announce the change.
foo
Stefan Kangas [Mon, 21 Sep 2020 22:58:59 +0000 (00:58 +0200)]
Remove Emacs 23 compat code from cedet
* lisp/cedet/ede/proj-elisp.el (project-compile-target):
* lisp/cedet/semantic/bovine/grammar.el (bovine-grammar-expand-form):
* lisp/cedet/semantic/ede-grammar.el (project-compile-target):
Remove Emacs 23 compat code.
Stefan Kangas [Mon, 21 Sep 2020 22:57:22 +0000 (00:57 +0200)]
Remove some Emacs 20 compat code
* lisp/apropos.el (apropos-local-value):
* lisp/progmodes/antlr-mode.el (antlr-mode-menu):
* lisp/progmodes/idlwave.el (idlwave-attach-classes):
* lisp/textmodes/artist.el (artist-replace-chars): Remove Emacs 20
compat code.
Stefan Kangas [Mon, 21 Sep 2020 22:54:54 +0000 (00:54 +0200)]
Remove some unnecessary compat code
* test/lisp/emacs-lisp/ert-x-tests.el (ert-test-describe-test):
* test/lisp/wdired-tests.el (wdired-test-unfinished-edit-01):
Remove unnecessary compat code; these tests should never need to run
on older versions of Emacs.
Stefan Kangas [Mon, 21 Sep 2020 22:35:05 +0000 (00:35 +0200)]
Fix thinko in dired-change-marks
* lisp/dired.el (dired-change-marks): Fix my previous broken attempt
to declare advertised-calling-convention.
Stefan Kangas [Wed, 2 Sep 2020 00:45:39 +0000 (02:45 +0200)]
Move several completions from eshell to pcomplete (Bug#10585)
* lisp/eshell/em-unix.el (eshell-complete-hostname)
(pcomplete/ftp, pcomplete/ncftp, pcomplete/ping)
(pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh):
Move from here...
* lisp/pcmpl-unix.el (pcmpl-unix-complete-hostname)
(pcomplete/ftp, pcomplete/ncftp, pcomplete/ping)
(pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh):
...to here. Make old names into aliases.
* lisp/eshell/esh-util.el (eshell-hosts-file)
(eshell-host-names, eshell-host-timestamp)
(eshell-read-hosts-file, eshell-read-hosts)
(eshell-read-host-names): Move from here...
* lisp/pcomplete.el (pcomplete-hosts-file)
(pcomplete--host-name-cache)
(pcomplete--host-name-cache-timestamp)
(pcomplete-read-hosts-file, pcomplete-read-hosts)
(pcomplete-read-host-names): ...to here. Make old names into
aliases.
* lisp/eshell/em-unix.el (eshell-complete-host-reference): Update
caller.
Stefan Kangas [Wed, 2 Sep 2020 00:34:43 +0000 (02:34 +0200)]
Move pcomplete/bcc32 from eshell to pcmpl-x (Bug#10585)
* lisp/eshell/em-xtra.el (pcomplete/bcc32, pcomplete/bcc): Move
from here...
* lisp/pcmpl-x.el (pcomplete/bcc32, pcomplete/bcc): ...to here.
Stefan Kangas [Mon, 21 Sep 2020 15:55:37 +0000 (17:55 +0200)]
Convert a manual test for nxml-mode to unit test
* test/manual/indent/nxml.xml: Delete file.
* test/lisp/nxml/nxml-mode-tests.el
(nxml-mode-test-comment-bug-17264): New test based on deleted file.
Stefan Kangas [Mon, 21 Sep 2020 15:41:45 +0000 (17:41 +0200)]
Convert manual indent test for ruby-mode into unit test
* test/manual/indent/ruby.rb: Move from here...
* test/lisp/progmodes/ruby-mode-resources/ruby.rb: ...to here.
* test/lisp/progmodes/ruby-mode-tests.el
(ruby-mode-tests-data-dir): New variable.
(ruby--indent/converted-from-manual-test): New test.
Stefan Kangas [Mon, 21 Sep 2020 15:32:51 +0000 (17:32 +0200)]
Convert manual indent test for scheme-mode into unit test
* test/manual/indent/scheme.scm: Delete file.
* test/lisp/progmodes/scheme-tests.el: New file with unit test for
scheme-mode based on deleted file.
Stefan Kangas [Mon, 21 Sep 2020 15:19:48 +0000 (17:19 +0200)]
Convert manual indent test for ps-mode into unit test
* test/manual/indent/ps-mode.ps: Delete file.
* test/lisp/progmodes/ps-mode-tests.el (ps-mode-test-indent):
New unit test based on deleted file.
Sam Steingold [Mon, 21 Sep 2020 15:50:29 +0000 (11:50 -0400)]
(json-encode-string): Strip properties to fix bug#43549
Lin Sun [Mon, 21 Sep 2020 15:33:13 +0000 (17:33 +0200)]
Fix problem with ede-mode bugging out on non-existent files
* lisp/cedet/ede/emacs.el: Check whether the directory exists in
ede-emacs-find-in-directories before using it (bug#43547).
Lars Ingebrigtsen [Mon, 21 Sep 2020 15:24:02 +0000 (17:24 +0200)]
Fix recent change to window-max-chars-per-line
* lisp/window.el (window-max-chars-per-line):
line-number-display-width can return a floating point number, but
we want an integer (bug#43548).
Lars Ingebrigtsen [Mon, 21 Sep 2020 15:20:14 +0000 (17:20 +0200)]
Doc string fix for gnus-summary-hide-thread
* lisp/gnus/gnus-sum.el (gnus-summary-hide-thread): Remove text
from doc string apparently copy-pasted from the function above.
dickmao [Mon, 21 Sep 2020 15:19:14 +0000 (17:19 +0200)]
Remove a misleading message in gnus-summary-hide-thread
* lisp/gnus/gnus-sum.el (gnus-summary-hide-thread):
Jump past invisible thread instead of begging off with an out-of-band
diagnostic (bug#43538).
Stefan Kangas [Mon, 21 Sep 2020 14:39:54 +0000 (16:39 +0200)]
Convert manual indent test for opascal-mode into unit test
* test/manual/indent/opascal.pas: Delete file.
* test/lisp/progmodes/opascal-tests.el: New file with unit test for
oposcal-mode based on deleted file.
Stefan Kangas [Mon, 21 Sep 2020 14:23:24 +0000 (16:23 +0200)]
Convert manual indent test for lisp-mode into unit test
* test/manual/indent/lisp.lisp: Delete file.
* test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-defun):
New unit test based on deleted file.
Stefan Kangas [Mon, 21 Sep 2020 14:13:53 +0000 (16:13 +0200)]
Convert manual indent test for elisp-mode into unit test
* test/manual/indent/elisp.el: Delete file.
* test/lisp/progmodes/elisp-mode-tests.el (elisp-indent-basic):
New unit test based on deleted file.
Stefan Kangas [Mon, 21 Sep 2020 14:02:55 +0000 (16:02 +0200)]
; * test/lisp/textmodes/css-mode-tests.el: Add TODO.
Stephen Berman [Mon, 21 Sep 2020 14:35:31 +0000 (16:35 +0200)]
Fix check in `newline' for blank lines
* lisp/simple.el (newline): Clarify doc string and fix check for
blank lines (bug#13810).
Lars Ingebrigtsen [Mon, 21 Sep 2020 14:10:13 +0000 (16:10 +0200)]
Fix line width in M-x term on -nw with line numbers
* lisp/window.el (window-max-chars-per-line): Make the line width
more correct in the presence of display-line-numbers-mode (bug#34513).
Lars Ingebrigtsen [Mon, 21 Sep 2020 13:56:55 +0000 (15:56 +0200)]
Add more isearch submatch faces
* doc/emacs/search.texi (Search Customizations): Adjust
documentation.
* lisp/isearch.el (search-highlight-submatches): Be a boolean.
(isearch-group-{6-9}): New faces.
(isearch-highlight): Use the variable as a boolean.
Stefan Kangas [Mon, 21 Sep 2020 13:41:43 +0000 (15:41 +0200)]
; Fix more trivial typos
Juri Linkov [Mon, 21 Sep 2020 13:05:55 +0000 (15:05 +0200)]
Tweak how Man selects the previous window on failure
* lisp/man.el (Man-bgproc-sentinel): Ensure that we select the
correct previous window (bug#38164).
Stefan Kangas [Mon, 21 Sep 2020 11:29:10 +0000 (13:29 +0200)]
; Fix typos
Lars Ingebrigtsen [Mon, 21 Sep 2020 12:15:34 +0000 (14:15 +0200)]
Allow disabling the verbose eldoc truncation message
* doc/emacs/programs.texi (Lisp Doc): Document it.
* lisp/emacs-lisp/eldoc.el (eldoc-display-truncation-message): New
variable (bug#43543).
(eldoc--handle-docs): Use it.
Nicolas Graner [Mon, 21 Sep 2020 11:57:31 +0000 (13:57 +0200)]
Fix default value in checkboxes in eww
* lisp/net/eww.el (eww-submit): Checked checkboxes need a default
value (bug#43542).
Copyright-paperwork-exempt: yes
Michael Albinus [Mon, 21 Sep 2020 11:41:30 +0000 (13:41 +0200)]
Add D-Bus tests
* doc/misc/dbus.texi (Type Conversion): Precise basic type values.
* lisp/net/dbus.el (dbus-register-property): Send signal directly.
* src/dbusbind.c (xd_signature): Accept non-nil objects for
DBUS_TYPE_BOOLEAN.
* test/lisp/net/dbus-tests.el (dbus-test01-basic-types)
(dbus-test01-compound-types): New tests.
Glenn Morris [Mon, 21 Sep 2020 00:20:08 +0000 (17:20 -0700)]
; * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.
Glenn Morris [Mon, 21 Sep 2020 00:18:16 +0000 (17:18 -0700)]
Merge from origin/emacs-27
02a31c9632 (origin/emacs-27) Minor improvement in the ELisp manual's ...
f750def778 Mention in PROBLEMS the problems with fonts and Uniscribe
082d8a21b1 Minor copyedits in 'line-height' documentation
5b23393bcc ; * src/frame.c (syms_of_frame) <make-pointer-invisible>: ...
Glenn Morris [Mon, 21 Sep 2020 00:18:16 +0000 (17:18 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
c151797da9 * doc/misc/eww.texi: Document the `w' key's double function
Glenn Morris [Mon, 21 Sep 2020 00:18:16 +0000 (17:18 -0700)]
Merge from origin/emacs-27
df04f3e755 Fix a rare segfault in syntax.c
fd1fe1e1ec Add doc to syntax-propertize-function saying it must do a ...
fcd599bbea Minor copyedits of doc of 'with-silent-modifications'
759399cdb1 Improve documentation of 'max-mini-window-height'
3223302aa2 Use modern constant names for the NS pasteboard
985703d380 Fix doc string of 'toggle-menu-bar-mode-from-frame'
184a4977c7 Make vc-bzr tests work with brz 3.1 (bug#43314)
# Conflicts:
# lisp/emacs-lisp/syntax.el
# src/syntax.c
Glenn Morris [Mon, 21 Sep 2020 00:10:50 +0000 (17:10 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
03093baf90 diff-no-select doc string clarification
Glenn Morris [Mon, 21 Sep 2020 00:10:50 +0000 (17:10 -0700)]
Merge from origin/emacs-27
694acda5f2 Fix compilation on TERMINFO platforms with GCC 10
f3373901e5 Fix the font-lock-debug-fontify NEWS entry
# Conflicts:
# etc/NEWS
Lars Ingebrigtsen [Sun, 20 Sep 2020 22:26:54 +0000 (00:26 +0200)]
Fix infloop when folding difficult headers in Message
* lisp/mail/rfc2047.el (rfc2047-fold-field): Return the end point.
* lisp/gnus/message.el (message--fold-long-headers): Use that to
reliably achieve progress.
Lars Ingebrigtsen [Sun, 20 Sep 2020 22:22:22 +0000 (00:22 +0200)]
Allow not selecting messages in Gnus before resending
* lisp/gnus/gnus-msg.el (gnus-summary-resend-message): Allow not
selecting messages. This is faster when resending huge spam messages.
Lars Ingebrigtsen [Sun, 20 Sep 2020 21:32:45 +0000 (23:32 +0200)]
Make xterm-mouse-event check whether the click event is valid
* lisp/xt-mouse.el (xterm-mouse-event): Defensively check against
a situation that shouldn't happen (but does) (bug#17378).
Alan Mackenzie [Sun, 20 Sep 2020 19:57:05 +0000 (19:57 +0000)]
C++ Mode: Modernize the fontification of "using"
Since "using" is now used in three distinct ways in C++, write a special
function to handle these rather than attempting to adapt the old regular
expressions.
* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Amend to allow the
argument TYPES to be a face. This face is given to the declarator being
processed.
(c-font-lock-single-decl): Make an argument to c-font-lock-declarators nil or
t, not merely nil or non-nil.
(c-complex-decl-matchers): Include c-font-lock-c++-using in the C++ value of
this variable.
(c-font-lock-c++-using): New function.
* lisp/progmodes/cc-langs.el (c-using-kwds, c-using-key): New lang
consts/vars.
(c-modifier-kwds): Remove "using" from the C++ value.
Lars Ingebrigtsen [Sun, 20 Sep 2020 19:43:01 +0000 (21:43 +0200)]
Restore the previous minimum-width specs in the line/column mode lines
* lisp/bindings.el (mode-line-position-line-format)
(mode-line-position-column-format)
(mode-line-position-column-line-format, mode-line-position):
Restore the previous min-width specs (bug#28648).
Lars Ingebrigtsen [Sun, 20 Sep 2020 19:30:54 +0000 (21:30 +0200)]
Make (let ((:key 'foo)) :key) signal an error in lexical elisp, too
* src/lread.c (intern_sym): Mark keywords as special (bug#38872).
Lars Ingebrigtsen [Sun, 20 Sep 2020 17:20:57 +0000 (19:20 +0200)]
Fix typo in dbus.texi
* doc/misc/dbus.texi (Type Conversion): Remove spurious { character.