summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* icomplete-vertical simplest approachfeature/icomplete-verticalJimmy Aguilar Mena2020-09-251-45/+110
| | | | | | | | | | | | * lisp/icomplete.el (icomplete--vertical-prospects) : New functions to assert format and correct number of candidates in vertical format. (icomplete--horizontal-prospects) : New functions to assert format and correct number of candidates in horizontal format. (icomplete-minibuffer-setup-hook) : Conditionally initialize the variables for vertical format. (icomplete-completions) : Simplify to separate some calculations unneeded in vertical format. Moved part of its code to icomplete--horizontal-prospects.
* Update a failing lisp testGlenn Morris2020-09-241-1/+1
| | | | | * test/lisp/emacs-lisp/lisp-tests.el (up-list-no-cross-string): Update for recent "Don't signal scan-error" change.
* Horizontal scrolling for mouse wheel with Shift modifier (bug#43568)Juri Linkov2020-09-244-16/+33
| | | | | | | | | | * 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.
* Set mwheel default scroll value to 1 (bug#43380)Theodor Thornhill2020-09-243-7/+8
| | | | | | * 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.
* * lisp/simple.el (goto-line-read-args): More relevant default line number.Juri Linkov2020-09-241-1/+5
|
* Add skip condition for some dbus testsGlenn Morris2020-09-241-11/+15
| | | | | | * test/lisp/net/dbus-tests.el (dbus-test01-type-conversion) (dbus-test01-basic-types): Add skip for hydra.nixos.org failures. ; Standardize license notice
* Make set-process-buffer also update the process markLars Ingebrigtsen2020-09-243-10/+17
| | | | | * src/process.c (Fset_process_buffer): Update the process mark (bug#43573).
* Refactor process mark settingLars Ingebrigtsen2020-09-241-18/+14
| | | | | | * src/process.c (update_process_mark): Make into its own function. (Fmake_process, Fmake_pipe_process, Fmake_serial_process) (connect_network_socket): Use it.
* Add sanity check for Gnus groups that belong to no topicdickmao2020-09-241-3/+1
| | | | | * lisp/gnus/gnus-topic.el (gnus-topic-change-level): Do not change gnus-topic-alist when group is outside "topology" (bug#43582).
* Fix last change in resize_mini_windowEli Zaretskii2020-09-241-0/+3
| | | | | * src/xdisp.c (resize_mini_window): Prevent recentering the mini-window once its start position is computed. (Bug#43572)
* Fix recent simple.el compilation warningLars Ingebrigtsen2020-09-241-1/+2
| | | | | * lisp/simple.el (goto-line-relative): Suppress byte compilation warning about goto-line.
* Minor Tramp cleanupMichael Albinus2020-09-242-38/+44
| | | | | | | | * 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.
* Write Gnus active files with quotes around group namesEric Abrahamsen2020-09-231-1/+1
| | | | | | * 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.
* New command goto-line-relative (bug#5042, bug#9917)Juri Linkov2020-09-235-33/+73
| | | | | | | | | | | | * 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.
* Remove TODO to convert files to unit testsStefan Kangas2020-09-232-4/+0
| | | | | | | * 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
* Convert some completion.el tests to ERTStefan Kangas2020-09-232-121/+170
| | | | | * test/lisp/completion-tests.el: New file. * lisp/completion.el: Move commented out tests to completion-tests.el.
* Convert allout unit tests to ERTStefan Kangas2020-09-234-230/+236
| | | | | | | | | | | | | | | * 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.
* * lisp/repeat.el: Remove obsolete comment.Stefan Kangas2020-09-231-4/+0
|
* * test/lisp/net/dbus-tests.el (dbus-test01-basic-types): Adapt test.Michael Albinus2020-09-231-5/+6
|
* ; * lisp/emacs-lisp/lisp.el: rename parameter in last changeMattias Engdegård2020-09-231-28/+28
|
* Don't signal scan-error when moving by sexp interactivelyMattias Engdegård2020-09-231-45/+95
| | | | | | | * 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).
* Allow the newline character in the character widget (Bug#15925)Mauro Aranda2020-09-232-4/+23
| | | | | | | | | | * 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).
* Improve mark handling in gnus nnselectAndrew G Cohen2020-09-231-75/+142
| | | | | | * 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.
* Handle escaped comment enders correctly in syntax.c, fixing bug #43558Alan Mackenzie2020-09-231-0/+7
| | | | | | | 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.
* Run gnus-parse-headers-hook when retrieving nnselect headersAndrew G Cohen2020-09-231-0/+1
| | | | | | * lisp/gnus/nnselect.el (nnselect-retrieve-headers): Run the gnus-parse-headers-hook when retrieving headers in nnselect, just like in a real group.
* test/src/xdisp-tests.el: New fileStefan Monnier2020-09-221-0/+52
|
* Use gnus-extra-headers in nnselect header parsingAndrew G Cohen2020-09-231-5/+6
| | | | | | * lisp/gnus/nnselect.el (nnselect-retrieve-headers): Bind nnmail-extra-headers to gnus-extra-headers before parsing retrieved headers.
* Ensure that the game directory exists before trying to write to itLars Ingebrigtsen2020-09-221-0/+2
| | | | | * lisp/play/gamegrid.el (gamegrid-add-score-insecure): Make the directory if it doesn't exist (bug#37836).
* Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-222-8/+32
| | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
* Fix off-by-one error in eldoc--handle-docsLars Ingebrigtsen2020-09-221-0/+4
| | | | | * 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).
* Speed up shr-insert slightlyLars Ingebrigtsen2020-09-221-1/+4
| | | | | | * 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.
* Fix filling problem in shr due to zero-width id taggingLars Ingebrigtsen2020-09-221-1/+4
| | | | | * lisp/net/shr.el (shr-descend): Fix problem with filling lines that have a zero-width ID tag at the start.
* Fix cursor display in mini-window under icomplete-modeEli Zaretskii2020-09-221-0/+10
| | | | | | * 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)
* Fix font-panel on NS (bug#43480)David Reitter2020-09-221-8/+14
| | | | | * lisp/term/ns-win.el (ns-respond-to-change-font): Set the font using customize.
* Remove broken compat code from EDEStefan Kangas2020-09-221-10/+0
| | | | | * lisp/cedet/ede/detect.el: Remove broken Emacs 24.1 compat code. This would never have worked, since the fallback library is missing.
* ; * test/lisp/progmodes/ps-mode-tests.el: Add missing backslashMattias Engdegård2020-09-221-1/+1
|
* Fix shellcheck warningStefan Kangas2020-09-221-1/+1
| | | | | * build-aux/update-subdirs: Fix issue indicated by the shellcheck linter (warning SC2046).
* Support shellcheck in compilation-modeStefan Kangas2020-09-224-1/+18
| | | | | | | | | | | | * 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
* Remove Emacs 23 compat code from cedetStefan Kangas2020-09-223-27/+8
| | | | | | | * 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.
* Remove some Emacs 20 compat codeStefan Kangas2020-09-224-32/+14
| | | | | | | | * 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.
* Remove some unnecessary compat codeStefan Kangas2020-09-222-13/+9
| | | | | | | * 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.
* Fix thinko in dired-change-marksStefan Kangas2020-09-221-2/+2
| | | | | * lisp/dired.el (dired-change-marks): Fix my previous broken attempt to declare advertised-calling-convention.
* Move several completions from eshell to pcomplete (Bug#10585)Stefan Kangas2020-09-214-59/+94
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Move pcomplete/bcc32 from eshell to pcmpl-x (Bug#10585)Stefan Kangas2020-09-212-30/+32
| | | | | | * lisp/eshell/em-xtra.el (pcomplete/bcc32, pcomplete/bcc): Move from here... * lisp/pcmpl-x.el (pcomplete/bcc32, pcomplete/bcc): ...to here.
* Convert a manual test for nxml-mode to unit testStefan Kangas2020-09-212-10/+21
| | | | | | * 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.
* Convert manual indent test for ruby-mode into unit testStefan Kangas2020-09-212-0/+19
| | | | | | | | | * 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.
* Convert manual indent test for scheme-mode into unit testStefan Kangas2020-09-212-9/+50
| | | | | | * 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.
* Convert manual indent test for ps-mode into unit testStefan Kangas2020-09-212-14/+24
| | | | | | * 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.
* (json-encode-string): Strip properties to fix bug#43549Sam Steingold2020-09-211-2/+2
|
* Fix problem with ede-mode bugging out on non-existent filesLin Sun2020-09-211-14/+13
| | | | | * lisp/cedet/ede/emacs.el: Check whether the directory exists in ede-emacs-find-in-directories before using it (bug#43547).