summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Subject: Frame-local tab-bar for numeric value of tab-bar-show (bug#42052)James N. V. Cash2020-06-302-12/+21
| | | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-to): Set frame parameter tab-bar-lines to 1 when tab-bar-show is the same as number of tabs. (tab-bar-close-tab, tab-bar-close-other-tabs): Set frame parameter tab-bar-lines to 0 when tab-bar-show is the same as number of tabs. Copyright-paperwork-exempt: yes
* | CC Mode: optimize for repeated simple operations.Alan Mackenzie2020-06-293-169/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do this by recognising that unterminated strings in a buffer are typically going to be few and close together. Also optimize code for C++ attributes. * lisp/progmodes/cc-defs.el (c-previous-single-property-change): New macro. (c-put-syn-tab, c-clear-syn-tab): Turned from macros into functions, and moved to cc-mode.el. (c-clear-syn-tab-properties): Amended to use c-min/max-syn-tab-mkr. (c-with-extended-string-fences): Removed. * lisp/progmodes/cc-engine-el (c-enclosing-c++-attribute): Rewritten for speed. (c-slow-enclosing-c++-attribute): Removed. (c-semi-pp-to-literal): Remove a superfluous call to c-with-extended-string-fences. * lisp/progmodes/cc-mode.el (c-min-syn-tab-mkr, c-max-syn-tab-mkr): two new marker variables which bound the region occupied by positions with c-fl-syn-tab text properties. (c-basic-common-init): Initialize these two variables. (c-fl-syn-tab-region): Removed. (c-put-syn-tab, c-clear-syn-tab): Functions moved from cc-defs.el. (c-clear-string-fences): Amended to use the new scheme. (c-restore-string-fences): Now takes no arguments; amended to use the new scheme. (c-font-lock-fontify-region): Amended to use the new scheme.
* | * test/src/fns-tests.el (test-secure-hash): Test getrandom format.Paul Eggert2020-06-291-3/+5
| |
* | Update from Gnulib.Paul Eggert2020-06-285-272/+352
| | | | | | | | | | | | | | | | | | This incorporates: 2020-06-28 getrandom: do not depend on ‘open’ on mingw 2020-06-28 getrandom: fix compilation errors on older versions of mingw * build-aux/config.sub, lib/getrandom.c, m4/getrandom.m4: Copy from Gnulib * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* | MS-Windows fixes as followup to import of Gnulib 'getrandom'Eli Zaretskii2020-06-283-15/+3
| | | | | | | | | | | | | | | | | | | | | | * nt/mingw-cfg.site (gl_cv_lib_assume_bcrypt): Set to "no" to disable linking against bcrypt.dll. (Bug#42095) * src/gnutls.c (gnutls_rnd) [WINDOWSNT]: Don't define a function pointer, and don't load it from GnuTLS DLL. (w32_gnutls_rnd) [WINDOWSNT]: Delete unused function. * src/fns.c (gnutls_rnd) [WINDOWSNT]: Don't redirect to w32_gnutls_rnd.
* | Add thread-naming support for OpenBSDTimo Myyrä2020-06-282-1/+10
| | | | | | | | | | | | | | | | | | OpenBSD has pthread_set_name_np; FreeBSD appears to have both this call and pthread_setname_np (the latter call is used in preference). * configure.ac: Detect pthread_set_name_np. * sys/systhread.c: Include <pthread_np.h> and call pthread_set_name_np if available.
* | Use getrandom syscall for noncesPaul Eggert2020-06-274-37/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/merge-gnulib (GNULIB_MODULES): Add getrandom. * doc/lispref/text.texi (Format of GnuTLS Cryptography Inputs): Don’t say that iv-auto uses GNUTLS_RND_NONCE. Also, don’t say that it returns the IV’s actual value, as it never has done that. * src/fns.c, src/sysdep.c: Include sys/random.h, for getrandom. * src/fns.c (Fsecure_hash_algorithms): Use getrandom so that this function does not depend on HAVE_GNUTLS3. * src/sysdep.c: Do not include <gnutls/crypto.h>. (random_seed) [HAVE_LRAND48]: Can be long int now. (init_random) [!WINDOWSNT]: Use getrandom syscall instead of opening /dev/urandom, as this works even on GNU/Linux hosts that lack /dev/urandom. Don’t bother with gnutls_rnd as it’s not needed now that we have getrandom.
* | Update from GnulibPaul Eggert2020-06-2724-424/+1089
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This incorporates: 2020-06-27 getloadavg: don’t depend on fopen-gnu 2020-06-25 c-dtoastr, c-ldtoastr: new modules 2020-06-01 getloadavg: fix double-increment bug 2020-06-01 tempname: use getrandom, not getentropy 2020-05-31 tempname: merge from glibc and coreutils 2020-05-31 getentropy: work around a macOS and Solaris problem 2020-05-31 fnmatch: merge from glibc 2020-05-30 unistd: remove conflicting declaration of getrandom 2020-05-30 don't assume that UNICODE is not defined 2020-05-29 fix compilation error on native Windows 2020-05-28 avoid dynamic loading of Windows API functions when possible 2020-05-28 at-internal: make more robust in multithreaded applications 2020-05-28 getloadavg: make more robust in multithreaded applications 2020-05-27 getloadavg: make more robust in multithreaded applications 2020-05-26 count-one-bits: fix MSVC specific code 2020-05-25 getentropy, getrandom: new modules 2020-05-24 open, openat: really support O_CLOEXEC 2020-05-23 verify: document ‘assume’ better 2020-05-21 regex: configure better with "clang -fsanitize=leak" 2020-05-21 memmem: configure better with "clang -fsanitize=undefined" 2020-05-19 ftoastr: fix ifndef typo * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex: * lib/count-one-bits.h, lib/ftoastr.c, lib/ftoastr.h: * lib/getloadavg.c, lib/gettimeofday.c, lib/libc-config.h: * lib/open.c, lib/openat-proc.c, lib/tempname.c, lib/tempname.h: * lib/unistd.in.h, lib/verify.h, m4/memmem.m4, m4/regex.m4: * m4/unistd_h.m4: Update from Gnulib. * lib/getrandom.c, lib/sys_random.in.h: * m4/getrandom.m4, m4/sys_random_h.m4: New files, copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* | 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.