1. 04 Jul, 2020 4 commits
    • Alan Mackenzie's avatar
      Remove long obsolete c-looking-at-bos. Make c-at-expression-start-p obsolete · 1560c92c
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-looking-at-bos): Remove.
      (c-at-expression-start-p): Make obsolete, with no alternative function.
    • Alan Mackenzie's avatar
      Fix filling in js-mode and mhtml-mode (js-mode parts), fixing bug #41897 · eae028b9
      Alan Mackenzie authored
      * lisp/progmodes/js.el (js-mode): Use "\\(?:" in the value of
      comment-start-skip rather than "\\(", fixing the second half of bug #41952.
      Call c-foreign-init-lit-pos-cache and install c-foreign-truncate-lit-pos-cache
      on before-change-functions, to connect up correctly with CC Mode's filling
      * lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add prefixes
      "adaptive-fill-", "fill-", "normal-auto-fill-function" and "paragraph-" to
      pull in variables crucial to filling.
      (mhtml-syntax-propertize): Read the current submode from the piece of text
      being propertized rather than one character before it, and do so before
      erasing the submode text-property.
      (mhtml-mode): Set the js-mode value of auto-fill-function to js-do-auto-fill.
      Correctly initialize and use CC Mode's filling facilities, as above.
    • Alan Mackenzie's avatar
      CC Mode: Fix wrong value of comment-start-skip, fixing half of bug #41952 · 697942f9
      Alan Mackenzie authored
      Also add functions to enable correct use of CC Mode's filling functionality
      from major modes which don't initialize CC Mode fully.  These modes are
      currently js-mode and mhtml-mode.
      * lisp/progmodes/cc-langs.el (comment-start-skip): Replace "\\(" by "\\(?:" so
      that (match-end 1) isn't falsely taken to be the start of the comment.
      * lisp/progmodes/cc-engine.el (c-foreign-truncate-lit-pos-cache)
      (c-foreign-init-lit-pos-cache): New functions.
    • Daniel Koning's avatar
      Use 'emacs-lisp-mode-syntax-table' for reading Lisp expressions · 32b3856f
      Daniel Koning authored
      * lisp/simple.el (read--expression): Set syntax table to
      'emacs-lisp-mode-syntax-table' when reading a Lisp expression
      from the minibuffer.  (Bug#41781)
      Copyright-paperwork-exempt: yes
  2. 02 Jul, 2020 2 commits
  3. 01 Jul, 2020 4 commits
  4. 30 Jun, 2020 1 commit
  5. 29 Jun, 2020 3 commits
    • James N. V. Cash's avatar
      Subject: Frame-local tab-bar for numeric value of tab-bar-show (bug#42052) · bc8089a3
      James N. V. Cash authored
      * 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
    • Alan Mackenzie's avatar
      CC Mode: optimize for repeated simple operations. · 519e64f9
      Alan Mackenzie authored
      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
      (c-slow-enclosing-c++-attribute): Removed.
      (c-semi-pp-to-literal): Remove a superfluous call to
      * 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
      (c-font-lock-fontify-region): Amended to use the new scheme.
    • Paul Eggert's avatar
  6. 28 Jun, 2020 3 commits
    • Paul Eggert's avatar
      Update from Gnulib. · 66501445
      Paul Eggert authored
      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.
    • Eli Zaretskii's avatar
      MS-Windows fixes as followup to import of Gnulib 'getrandom' · 162f375b
      Eli Zaretskii authored
      * 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
    • Timo Myyrä's avatar
      Add thread-naming support for OpenBSD · e4028d15
      Timo Myyrä authored
      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.
  7. 27 Jun, 2020 2 commits
    • Paul Eggert's avatar
      Use getrandom syscall for nonces · 5ce5cf64
      Paul Eggert authored
      * 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.
    • Paul Eggert's avatar
      Update from Gnulib · 118c07e0
      Paul Eggert authored
      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.
  8. 26 Jun, 2020 10 commits
  9. 25 Jun, 2020 5 commits
  10. 24 Jun, 2020 3 commits
  11. 23 Jun, 2020 3 commits
    • Juri Linkov's avatar
      M-n in read-directory-name of vc commands gets project dirs (bug#41821) · bfd96e99
      Juri Linkov authored
      * 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.
    • Juri Linkov's avatar
      More not-state-changing vc commands can be used from non-file buffers · 4e04ca84
      Juri Linkov authored
      * 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)
    • Michael Albinus's avatar
      Fix problem in tramp-smb.el · 35e881c5
      Michael Albinus authored
      * 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-test21-file-links, tramp--test-windows-nt-or-smb-p)
      (tramp--test-check-files): Use it.