1. 06 Jul, 2020 2 commits
  2. 05 Jul, 2020 6 commits
    • Dmitry Gutov's avatar
    • Dmitry Gutov's avatar
      ; Add a couple of FIXMEs · bcde7952
      Dmitry Gutov authored
    • Dmitry Gutov's avatar
      project-switch-to-buffer: Don't filter based on default-directory · 4ca13d98
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-switch-to-buffer):
      Don't filter based on default-directory
      (project-switch-to-buffer): Ditto.
    • Wilson Snyder's avatar
      Verilog-Mode collected updates. · e3ada206
      Wilson Snyder authored
      * lisp/progmodes/verilog-mode.el (verilog-auto-inst): Support regexp of
      what AUTOINST I/O to include, issue #1682.  Reported by Mrainy.
      (verilog-font-lock-keywords-1): Fix highlighting module names with no
      following (, issue #1679.  Reported by Vinam Arora.
      (verilog-font-lock-keywords) Adds syntax highlighting for identifiers in
      declaration statements, #1678.
      (verilog-calculate-indent, verilog-inject-arg)
      (verilog-keywords, verilog-showscopes): Support AMS
      connectmodule/endconnectmodule, #1665. Reported by Dan McMahill.
    • Mattias Engdegård's avatar
      Don't confuse errors with nil in bytecomp-tests.el · 58e27ebb
      Mattias Engdegård authored
      * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-check-1)
      (bytecomp-explain-1, test-byte-opt-arithmetic, bytecomp-lexbind-check-1)
      If an expression raises an error when evaluated, don't treat it as if
      it had succeeded with the value nil; use 'bytecomp-check-error' as the
      result instead.
    • Mattias Engdegård's avatar
      Relax portable number check in byte compiler (bug#42147) · c10293e1
      Mattias Engdegård authored
      With bignums, the set of representable integers is no longer
      platform-dependent, and since we use nothing but IEEE754 64-bit
      floats, all numbers are now portable.  Take advantage of this fact
      to simplify constant-folding in the byte compiler, allowing it to
      be applied more widely.
      * lisp/emacs-lisp/byte-opt.el (byte-opt--portable-max)
      (byte-opt--portable-min, byte-opt--portable-numberp): Remove.
      (byte-opt--arith-reduce, byte-optimize-minus, byte-optimize-1+)
      (byte-optimize-1-): Simplify: any number will do, and if N is a
      number, then so are -N, N+1 and N-1.
  3. 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
  4. 02 Jul, 2020 2 commits
  5. 01 Jul, 2020 4 commits
  6. 30 Jun, 2020 1 commit
  7. 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
  8. 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.
  9. 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.
  10. 26 Jun, 2020 10 commits
  11. 25 Jun, 2020 3 commits