summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow disable the record of keystrokes (lossage)feature/bug#38796-lossage-limitTino Calancha2020-06-265-10/+22
| | | | | | | | | | | | | | | Use 1 as the minimum value for lossage-limit; such a value is equivalent to not recording the keystrokes: having just 1 entry, will be overwritten with the view-lossage call itself. * test/src/keyboard-tests.el (keyboard-lossage-limit): Update test. * src/keyboard.c (MIN_NUM_RECENT_KEYS): Delete it. (lossage_limit): Add security note in the doctring. * lisp/cus-start.el (lossage-limit): Let users choose to disable the record of the keystrokes. * doc/emacs/help.texi (Misc Help): Update manual. * etc/NEWS (Changes in Emacs 28.1): Mention that it's possible to disable the record of keystrokes.
* Give Lisp control on the lossage sizeTino Calancha2020-06-267-24/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an user option to control the maximum number of recorded keystrokes (a.k.a lossage limit) (Bug#38796). * src/keyboard.c (lossage-limit): Add new variable. (MIN_NUM_RECENT_KEYS): Renamed from NUM_RECENT_KEYS. Set it as 100 and use it as the minimum value for lossage-limit. Keep the same default for the vector size as before (300). (update-lossage-limit): New function. (update_recent_keys): Helper function. (command_loop_1) (record_char) (recent-keys) (syms_of_keyboard): Replace NUM_RECENT_KEYS with lossage_limit as the vector size. (clear-this-command-keys): Fix docstring. * lisp/help.el (view-lossage): Mention lossage-limit in the docstring. * lisp/cus-start.el (lossage-limit): Register it as an user option. * lisp/edmacro.el (edit-kbd-macro): Update docstring and commentary header. * etc/NEWS (Changes in Emacs 28.1): Announce the new option. * doc/emacs/help.texi (Misc Help): Document it. * test/src/keyboard-tests.el (keyboard-lossage-limit): Add test.
* Merge from origin/emacs-27Glenn Morris2020-06-269-40/+67
|\ | | | | | | | | | | | | | | | | | | | | | | | | 5280e118c0 (origin/emacs-27) ; * src/xdisp.c (pos_visible_p): Fix las... bb1a9481c9 Fix posn-at-point at beginning of a display string 0c4b033670 Improve documentation of Info node movement commands 632b0119e1 Add Jansson dependency to Windows Build dbfcdab837 Unbreak 'reverse-region' c37de84845 Fix typos and markup in fill column indicator docs f61bff3ee9 ; * CONTRIBUTE: Clarify the preferences for patch formatting. 368e140660 Avoid crashes in 'defconst' 11e3413cff Fix text about Lisp archives in the Emacs FQ 4c81724675 Don't use 'cl' functions in ELisp manual's examples
| * ; * src/xdisp.c (pos_visible_p): Fix last change. (Bug#42039)Eli Zaretskii2020-06-261-13/+4
| |
| * Fix posn-at-point at beginning of a display stringEli Zaretskii2020-06-261-4/+14
| | | | | | | | | | * src/xdisp.c (pos_visible_p): Account for the line-number width when the display string at CHARPOS ends in a newline. (Bug#42039)
| * Improve documentation of Info node movement commandsEli Zaretskii2020-06-261-4/+14
| | | | | | | | | | | | * lisp/info.el (Info-next, Info-prev, Info-forward-node) (Info-backward-node): More detailed descriptions of what each commands does with respect to child and parent nodes. (Bug#42050)
| * Add Jansson dependency to Windows BuildPhillip Lord2020-06-221-0/+1
| | | | | | | | * admin/nt/dist-build/build-dep-zips.py: Add dependency
| * Unbreak 'reverse-region'Richard Copley2020-06-221-3/+2
| | | | | | | | | | | | | | * lisp/sort.el (reverse-region): Unbreak the function. It was broken by a fix for bug#39376. Copyright-paperwork-exempt: yes
| * Fix typos and markup in fill column indicator docsBasil L. Contovounesios2020-06-221-16/+17
| | | | | | | | | | * doc/emacs/display.texi (Displaying Boundaries): Fix typos and Texinfo markup.
| * ; * CONTRIBUTE: Clarify the preferences for patch formatting.Eli Zaretskii2020-06-201-3/+12
| |
| * Avoid crashes in 'defconst'Stephen Berman2020-06-201-0/+1
| | | | | | | | | | * src/eval.c (Fdefconst): Verify that SYMBOL is a known symbol. (Bug#41817)
| * Fix text about Lisp archives in the Emacs FQRichard Stallman2020-06-201-9/+12
| | | | | | | | | | * doc/misc/efaq.texi (Packages that do not come with Emacs): Warn about using Lisp archives other than GNU ELPA.
| * Don't use 'cl' functions in ELisp manual's examplesEli Zaretskii2020-06-201-2/+4
| | | | | | | | | | * doc/lispref/control.texi (pcase Macro): Use 'cl-evenp' instead of 'evenp'. (Bug#41947)
* | ; Fix recent indentation in project.elBasil L. Contovounesios2020-06-261-9/+8
| | | | | | | | | | * lisp/progmodes/project.el (project-ignores, project-find-file-in) (project-eshell, project--read-project-list): Fix indentation.
* | Fix byte-compilation warning in project.elEli Zaretskii2020-06-261-0/+1
| | | | | | | | | | * lisp/emacs-lisp/seq.el (seq-every-p): Autoload it. This fixes byte-compilation warning in project.el.
* | vc-known-roots: Actually updateDmitry Gutov2020-06-261-1/+1
| | | | | | | | | | * lisp/vc/vc-hooks.el (vc-known-roots): Actually update for the change in 733921edfe (bug#41821).
* | project--read-project-list: Add structure verificationDmitry Gutov2020-06-261-2/+10
| | | | | | | | | | * lisp/progmodes/project.el (project--list): Update docstring. (project--read-project-list): Add structure verification.
* | project-known-roots: Rename and improveDmitry Gutov2020-06-261-3/+3
| | | | | | | | | | | | | | * lisp/progmodes/project.el (project-known-project-roots): Rename from 'project-known-roots'. Update the docstring. Make sure the returned value is a list of strings. Update the caller (bug#41821).
* | Rename project-kill-buffers-{skip-conditions,ignores}Dmitry Gutov2020-06-261-4/+5
| | | | | | | | | | | | | | * lisp/progmodes/project.el (project-kill-buffers-ignores): Rename from project-kill-buffers-skip-conditions (bug#41868). Update both references. Add a :package-version attribute.
* | Add NEWS entry for bug-reference auto-setup.Tassilo Horn2020-06-251-2/+15
| | | | | | | | * etc/NEWS: Add entry for bug-reference auto-setup.
* | Fix last changeEli Zaretskii2020-06-252-2/+8
| | | | | | | | | | | | | | | | * lisp/menu-bar.el (menu-bar-describe-menu): Improve the wording and the help-echo of the new list-recent-keystrokes Help menu item. (Bug#41933) * etc/NEWS: Call out the new menu item.
* | Add help menu entry for view-lossageTino Calancha2020-06-251-0/+3
| | | | | | | | | | * lisp/menu-bar.el (menu-bar-describe-menu): Add an entry for view-lossage (Bug#41933).
* | CC Mode. Fix an off by one error. Fixes bug #41809Alan Mackenzie2020-06-251-2/+2
| | | | | | | | * lisp/progmodes/cc-engine.el (c-full-pp-to-literal): Change > to >= (twice).
* | Push action to list of functions in display-buffer-override-next-commandJuri Linkov2020-06-251-3/+3
| | | | | | | | | | | | | | * lisp/window.el (display-buffer-override-next-command): Push action to 'car' of 'display-buffer-overriding-action' and in exitfun remove action from 'car'. https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00803.html
* | Make switch work in AWK Mode. Fixes bug #41923Alan Mackenzie2020-06-241-3/+2
| | | | | | | | | | | | lisp/progmodes/cc-langs.el (c-block-stmt-2-kwds): Insert "switch" into the AWK Mode entry. (c-case-kwds): Remove the special entry for AWK Mode.
* | ; * etc/NEWS: Improve format and wording of recently added entries.Eli Zaretskii2020-06-241-5/+8
| |
* | ; Fix typos in etc/NEWSMichael Albinus2020-06-241-4/+4
| |
* | M-n in read-directory-name of vc commands gets project dirs (bug#41821)Juri Linkov2020-06-245-3/+19
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-known-roots): New autoloaded function. * lisp/vc/vc-hooks.el (vc-known-roots): New function. * lisp/vc/vc.el (vc-root-diff, vc-print-root-log): * lisp/vc/vc-dir.el (vc-dir): Use 'vc-known-roots' for default values for read-directory-name.
* | More not-state-changing vc commands can be used from non-file buffersJuri Linkov2020-06-242-3/+4
| | | | | | | | | | | | | | | | | | * lisp/vc/vc.el (vc-deduce-fileset): Instead of checking for log-view-mode, check for '(not buffer-file-name)' before trying to get the backend for default-directory. Remove the branch that checks for '(not buffer-file-name)' and signals the error because vc-responsible-backend used in previous condition already signals its error. (Bug#41974)
* | Fix problem in tramp-smb.elMichael Albinus2020-06-232-19/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use `directory-file-name'. * test/lisp/net/tramp-tests.el (trace): Require it. (tramp--test-instrument-test-case): Print also function traces. (tramp--test-smb-p): New defun. (tramp-test03-file-name-method-rules) (tramp-test05-expand-file-name-relative) (tramp-test21-file-links, tramp--test-windows-nt-or-smb-p) (tramp--test-check-files): Use it.
* | ; Fix indentation in last changeBasil L. Contovounesios2020-06-231-2/+1
| | | | | | | | | | * lisp/gnus/gnus-cloud.el (gnus-cloud-download-data): Reindent first argument of prog1.
* | Fix gnus-cloud-download-all-data return valueDavid Edmondson2020-06-231-2/+2
| | | | | | | | | | | | * lisp/gnus/gnus-cloud.el (gnus-cloud-download-data): Return the result of calling `gnus-cloud-update-all' when UPDATE is t, as per the documented behaviour. (Bug#40280)
* | Minor improvements as followup to recent RGB string-parsing changeEli Zaretskii2020-06-224-55/+68
| | | | | | | | | | | | | | | | | | | | | | * src/xfaces.c (Finternal_color_values_from_color_spec): Rename to... (Fcolor_values_from_color_spec): ...this. Callers changed. Rename the argument to SPEC and improve the doc string. (parse_color_spec, parse_float_color_comp, parse_hex_color_comp): Improve commentary. (parse_color_spec): Rename the argument S to SPEC. * etc/NEWS: Mention 'color-values-from-color-spec'.
* | project-switch-to-buffer: Improve Ido compatibilityDmitry Gutov2020-06-221-1/+2
| | | | | | | | | | * lisp/progmodes/project.el (project-switch-to-buffer): Check that the entry contains a non-nil CDR.
* | project-switch-to-buffer: Do not require matching inputDmitry Gutov2020-06-221-1/+1
| | | | | | | | | | | | * lisp/progmodes/project.el (project-switch-to-buffer): Do not require matching input, to allow creating buffers as well (bug#41879).
* | Accept lexical lambda in auto-insert-alistMattias Engdegård2020-06-221-1/+1
| | | | | | | | | | | | | | | | This bug was exposed by a previous removal of quoting around lambda expressions in autoinsert-tests.el (1ecd350f38ee), which caused some of those tests to fail. * lisp/autoinsert.el (auto-insert): Cope with lexical closures.
* | Fix spurious error in beginning-of-defun in pascal-mode (bug#41740)Mattias Engdegård2020-06-222-1/+9
| | | | | | | | | | | | * lisp/progmodes/pascal.el (pascal-beg-of-defun): Ignore errors in forward-sexp. * test/lisp/progmodes/pascal-tests.el (pascal-beg-of-defun): New test.
* | Preserve point in pascal-mode completion (bug#41740)Mattias Engdegård2020-06-222-24/+82
| | | | | | | | | | | | | | | | | | Failure to do so caused errors in several cases. Reported by Shinichi Sakata. * lisp/progmodes/pascal.el (pascal-type-completion) (pascal-completion): Wrap code that may move point in save-excursion. * test/lisp/progmodes/pascal-tests.el: New file.
* | Fix display-buffer-override-next-command to call action only once (bug#39722)Juri Linkov2020-06-223-8/+14
| | | | | | | | | | | | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-bookmark-jump): Don't use save-window-excursion. * lisp/window.el (display-buffer-override-next-command): Reset display-buffer-overriding-action after the first buffer display action. * lisp/tab-bar.el (switch-to-buffer-other-tab): Don't reuse frame tabs. (other-tab-prefix): Don't reuse frame tabs.
* | New commands other-window-prefix (C-x 4 4) and other-frame-prefix (C-x 5 5)Juri Linkov2020-06-223-0/+63
| | | | | | | | | | | | | | | | * lisp/window.el (other-window-prefix, same-window-prefix): New commands. (ctl-x-4-map): Bind 'C-x 4 4' to 'other-window-prefix'. (Bug#41691) * lisp/frame.el (other-frame-prefix): New command. (ctl-x-5-map): Bind 'C-x 5 5' to 'other-frame-prefix'.
* | Forward declare eshell-buffer-name in project-eshellTheodor Thornhill2020-06-221-0/+1
| | | | | | | | | | * lisp/progmodes/project.el: Forward declare 'eshell-buffer-name' so that 'project-eshell' can use dynamically scoping with it.
* | ; project-shell, project-eshell: Doc fixesDmitry Gutov2020-06-221-2/+2
| |
* | Consolidate #RGB string parsersMattias Engdegård2020-06-217-286/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a single parser of color strings in the #RGB, rgb:R/G/B and rgbi:R/G/B formats, replacing four existing ones. Previously, error-checking was spotty, handling of the rgbi: format not always present, and normalization of the result was sometimes incorrect. * src/dispextern.h: New prototype. * src/xfaces.c (parse_hex_color_comp, parse_float_color_comp) (parse_color_spec, Finternal-color_values_from_color_spec): New functions. * test/src/xfaces-tests.el (xfaces-internal-color-values-from-color-spec): New test. * lisp/term/tty-colors.el (tty-color-standard-values): Use internal-color-values-from-color-spec, replacing old parser. * src/nsterm.m (ns_get_color): * src/w32fns.c (x_to_w32_color): * src/xterm.c (x_parse_color): Use parse_color_spec, replacing old parsers. (HEX_COLOR_NAME_LENGTH): Remove #define.
* | Revert last change in benchmark.elBasil L. Contovounesios2020-06-211-1/+1
| | | | | | | | | | | | | | | | For discussion, see the following thread: https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00791.html * lisp/emacs-lisp/benchmark.el (benchmark-run-compiled): Revert to giving byte-compile a form rather than a closure.
* | Improve doc strings of 'project-shell' and 'project-eshell'Eli Zaretskii2020-06-211-8/+8
| | | | | | | | | | * lisp/progmodes/project.el (project-shell, project-eshell): Doc fixes.
* | Replace some uses of cl-mapcan with mapcanBasil L. Contovounesios2020-06-213-8/+7
| | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-files, project-files): * lisp/progmodes/xref.el (xref-backend-references) (xref--convert-hits): * test/lisp/emacs-lisp/package-tests.el (package-test-strip-version): Replace cl-mapcan with equivalent calls to mapcan.
* | Fix remaining problems with tramp-crypt.elMichael Albinus2020-06-215-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-compat.el (tramp-compat-make-temp-file): Simplify implementation. * lisp/net/tramp-crypt.el (tramp-crypt-handle-delete-file) (tramp-crypt-handle-file-attributes, tramp-crypt-handle-file-system-info) (tramp-crypt-handle-make-directory): Let-bind `tramp-crypt-enabled' to nil. * lisp/net/tramp.el (tramp-file-name-for-operation): Fix for operations with two arguments. (tramp-handle-load): Suppress `signal-hook-function' when NOERROR is non-nil. * test/lisp/net/tramp-tests.el (tramp-test41-utf8) (tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl) (tramp-test41-utf8-with-ls): Skip if needed.
* | Evaluate some unnecessarily quoted lambdasBasil L. Contovounesios2020-06-217-30/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/complete.el (semantic-displayer-tooltip-max-tags): * lisp/emacs-lisp/benchmark.el (benchmark-run-compiled): * lisp/emacs-lisp/package.el (package--default-summary) (package-menu-filter-by-version): * lisp/eshell/em-pred.el (eshell-pred-file-time): * lisp/progmodes/verilog-mode.el (verilog-auto-lineup) (verilog-auto-reset-widths, verilog-auto-arg-format) (verilog-auto-inst-vector, verilog-auto-inst-template-numbers): * lisp/textmodes/bibtex.el (bibtex-dialect): * test/lisp/autoinsert-tests.el (autoinsert-tests-define-auto-insert-before) (autoinsert-tests-define-auto-insert-after): Remove some unnecessary quoting around anonymous functions.
* | Silence some warnings in testsBasil L. Contovounesios2020-06-214-26/+24
| | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/package-tests.el (package-test-suffix-matches): Evaluate lambda. (package-test-list-filter-marked): * test/lisp/vc/vc-tests.el (vc-test--run-maybe-unsupported-function): * test/src/undo-tests.el (undo-test-skip-invalidated-markers): Silence "unused local variable" warnings. * test/lisp/imenu-tests.el (imenu-simple-scan-deftest): Fix docstring. Don't shadow global major-mode.
* | ; project-shell, project-eshell: Docstring tweaksDmitry Gutov2020-06-211-6/+8
| |