1. 27 Feb, 2020 6 commits
  2. 26 Feb, 2020 4 commits
    • Mattias Engdegård's avatar
      Don't complain about the regexp "[:-:]" · 3766bf72
      Mattias Engdegård authored
      Suggested by Clément Pit-Claudel.
      * src/regex-emacs.c (regex_compile):
      * test/src/regex-emacs-tests.el (regexp-invalid): Tolerate ranges.
    • Mattias Engdegård's avatar
      Signal an error for the regexp "[:alnum:]" · 8d5e8cdd
      Mattias Engdegård authored
      Omitting the extra brackets is a common mistake; see discussion at
      * src/regex-emacs.c (reg_errcode_t, re_error_msgid): Add REG_ECLASSBR.
      (regex_compile): Check for the mistake.
      * test/src/regex-emacs-tests.el (regexp-invalid): Test.
      * etc/NEWS: Announce.
    • Michael Albinus's avatar
      Finish Tramp's implementation of 'nofollow · 2261f893
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
      Do not use 'nofollow.
      * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
      * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes):
      Handle FLAG properly.
      (tramp-get-remote-chmod-h): Adapt implementation.
      * test/lisp/net/tramp-tests.el (tramp-get-remote-chmod-h): Declare.
      (tramp--test-ignore-make-symbolic-link-error): Revert last change.
      (tramp-test20-file-modes): Adapt test.
    • Ryan Olson's avatar
      Show friendly message after package install · 4a948813
      Ryan Olson authored
      * lisp/emacs-lisp/package.el (package-install): Once we know the
      package has successfully been installed using the `package-install`
      command, instead of relying on the compile "Done" message, give a
      message that tells the user that the package has been
      installed.  (Bug#21857)
      Copyright-paperwork-exempt: yes
  3. 25 Feb, 2020 8 commits
    • Mark Oteiza's avatar
      Expose ElDoc functions in a hook (Bug#28257) · c0fcbd2c
      Mark Oteiza authored
      * lisp/emacs-lisp/eldoc.el: Update commentary.
      (eldoc--eval-expression-setup): Use new hook.
      (eldoc--supported-p): Accomodate new hook.
      (eldoc-documentation-functions): New hook.
      (eldoc-documentation-default, eldoc-documentation-compose): New
      (eldoc-documentation-function): Use 'eldoc-documentation-default' as new
      default value.  Update documentation and custom attributes.
      (eldoc-print-current-symbol-info): Accomodate possible null value for
      * etc/NEWS: Mention them.
      * doc/emacs/programs.texi (Emacs Lisp Documentation Lookup): Mention
      new hook and changes to 'eldoc-documentation-function'.
      * lisp/hexl.el (hexl-mode, hexl-revert-buffer-function):
      * lisp/ielm.el (inferior-emacs-lisp-mode):
      * lisp/progmodes/cfengine.el (cfengine3-mode):
      * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
      * lisp/progmodes/octave.el (octave-mode):
      * lisp/progmodes/python.el (python-mode): Use new hook.
    • Mattias Engdegård's avatar
      Generate 'substring' byte op (bug#39709) · 03c07c88
      Mattias Engdegård authored
      The 'substring' byte op was not emitted, apparently by mistake.  Fix.
      Suggested by Mark Oteiza <mvoteiza@udel.edu>.
      * lisp/emacs-lisp/bytecomp.el (byte-defop-compiler): Add '1-3' clause.
      (byte-compile-one-to-three-args): New.
      * lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-free-ops):
      Add 'byte-substring'.
      * test/lisp/emacs-lisp/bytecomp-tests.el
      (byte-opt-testsuite-arith-data): Test 'substring'.
    • Michael Albinus's avatar
      Finish implementation of {set-}file-modes FLAG arg in Tramp · 64af3c94
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy): Do not use
      'nofollow for temporary files.  Use `tramp-compat-set-file-modes'.
      (tramp-adb-handle-write-region): Do not use 'nofollow for
      temporary files.
      (tramp-adb-handle-set-file-modes): Implement FLAG.
      * lisp/net/tramp-compat.el (tramp-compat-file-modes)
      (tramp-compat-set-file-modes): New defaliases.
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes):
      Make explicit check (eq flag 'nofollow).
      * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes): Implement FLAG.
      (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
      Do not use 'nofollow for temporary files.
      (tramp-get-remote-chmod-h): New defun.
      * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
      Implement FLAG.
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
      Implement FLAG.
      (tramp-sudoedit-handle-write-region): Use `tramp-compat-set-file-modes'.
      * lisp/net/tramp.el (tramp-default-file-modes): Optional argument FLAG.
      (tramp-handle-file-modes): Use `file-truename' instead of
      `file-chase-links'.  The latter function does not work for remote
      file names.
      (tramp-handle-write-region): Call `tramp-default-file-modes' with
      'nofollow if needed.  Do not use 'nofollow for temporary files.
      * test/lisp/net/tramp-tests.el
      (tramp--test-ignore-make-symbolic-link-error): Check also for
      "Cannot chmod .* with nofollow flag" error.
      (tramp-test20-file-modes): Extend test.
      (tramp--test-emacs28-p): New defun.
    • Mattias Engdegård's avatar
      Fix mistake in regexp cleanup · 22524a6e
      Mattias Engdegård authored
      This error was introduced in 770f76f0.
      * lisp/org/org.el (org-ts-regexp-inactive): Match up to the first ']'.
    • Eli Zaretskii's avatar
    • Paul Eggert's avatar
      Update from Gnulib · a3d146fd
      Paul Eggert authored
      This incorporates:
      2020-02-24 getloadavg: don't use /usr/local when cross-compiling on AIX
      2020-02-24 fcntl: add witness of gnulib override
      * lib/fcntl.in.h, m4/getloadavg.m4: Copy from Gnulib.
    • Juri Linkov's avatar
    • Juri Linkov's avatar
  4. 24 Feb, 2020 3 commits
    • Eli Zaretskii's avatar
      Adapt the MS-Windows build to 'nofollow' changes · 7dfe90a6
      Eli Zaretskii authored
      * nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_fchmodat)
      (OMIT_GNULIB_MODULE_lchmod): Set to true to omit building these
      modules on MS-Windows.
      * nt/mingw-cfg.site (ac_cv_func_fchmodat)
      (gl_cv_func_fchmodat_works, ac_cv_func_lchmod): Disable tests on
      * src/w32.c (chmod_worker, lchmod, fchmodat): New functions.
      (sys_chmod): Move most of the code to chmod_worker.
      * src/w32.h (fchmodat, lchmod): Add prototypes.
    • Paul Eggert's avatar
      Add 'nofollow' flag to set-file-modes etc. · 9d626dff
      Paul Eggert authored
      This avoids some race conditions (Bug#39683).  E.g., if some other
      program changes a file to a symlink between the time Emacs creates
      the file and the time it changes the file’s permissions, using the
      new flag prevents Emacs from inadvertently changing the
      permissions of a victim in some completely unrelated directory.
      * admin/merge-gnulib (GNULIB_MODULES): Add fchmodat.
      * doc/lispref/files.texi (Testing Accessibility, Changing Files):
      * doc/lispref/os.texi (File Notifications):
      * etc/NEWS:
      Adjust documentation accordingly.
      * lib/chmodat.c, lib/fchmodat.c, lib/lchmod.c, m4/fchmodat.m4:
      * m4/lchmod.m4: New files, copied from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      * lisp/dired-aux.el (dired-do-chmod):
      * lisp/doc-view.el (doc-view-make-safe-dir):
      * lisp/emacs-lisp/autoload.el (autoload--save-buffer):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file):
      * lisp/eshell/em-pred.el (eshell-pred-file-mode):
      * lisp/files.el (backup-buffer-copy, copy-directory):
      * lisp/gnus/mail-source.el (mail-source-movemail):
      * lisp/gnus/mm-decode.el (mm-display-external):
      * lisp/gnus/nnmail.el (nnmail-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy)
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-directly):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-write-region):
      * lisp/net/tramp.el (tramp-handle-write-region)
      * lisp/server.el (server-ensure-safe-dir):
      * lisp/url/url-util.el (url-make-private-file):
      When getting or setting file modes, avoid following symbolic links
      when the file is not supposed to be a symbolic link.
      * lisp/doc-view.el (doc-view-make-safe-dir):
      Omit no-longer-needed separate symlink test.
      * lisp/gnus/gnus-util.el (gnus-set-file-modes):
      * lisp/net/tramp.el (tramp-handle-file-modes):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes):
      * src/fileio.c (symlink_nofollow_flag): New function.
      (Ffile_modes, Fset_file_modes):
      Support an optional FLAG arg.  All C callers changed.
      * lisp/net/ange-ftp.el (ange-ftp-set-file-modes):
      * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes):
      * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes):
      * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
      Accept an optional FLAG arg that is currently ignored,
      and add a FIXME comment for it.
      * m4/gnulib-comp.m4: Regenerate.
    • Paul Eggert's avatar
      Update from Gnulib · c4ca8219
      Paul Eggert authored
      This incorporates:
      2020-02-23 use 'restrict'
      * lib/careadlinkat.h, lib/md5.h, lib/sha1.h, lib/sha256.h:
      * lib/sha512.h, lib/strftime.h, lib/string.in.h, m4/nstrftime.m4:
      Copy from Gnulib.
      * m4/gnulib-comp.m4: Regenerate.
  5. 23 Feb, 2020 10 commits
    • Wilson Snyder's avatar
      Add `verilog-auto-inst-template-required'. · b95f78ed
      Wilson Snyder authored
      * lisp/progmodes/verilog-mode.el (verilog-auto-inst-template-required)
      (verilog-auto-inst): Add `verilog-auto-inst-template-required' to only
      insert AUTOINST ports inside an AUTO_TEMPLATE, msg3170. Reported by Ted
      Huang, Brian Magnuson.
    • Glenn Morris's avatar
      Merge from origin/emacs-27 · eb34c108
      Glenn Morris authored
      ba7004b2 (origin/emacs-27) Shorten some ppss struct field names
      693749c6 Java Mode: Fix fontification of variable decl inside `for'
      884b68ca CC Mode: Fontify foo in "const auto foo :" correctly
      # Conflicts:
      #	etc/NEWS
    • Glenn Morris's avatar
      ; Merge from origin/emacs-27 · 43329648
      Glenn Morris authored
      The following commit was skipped:
      aff8bca7 * lisp/replace.el (occur-engine-line): Revert part of fb16...
    • Glenn Morris's avatar
      Merge from origin/emacs-27 · 3f01a17d
      Glenn Morris authored
      dd575643 Move more logic to vc-ignore from vc-default-ignore
      2aed279b Warn about the likes of "[:alnum:]" in regexps
      0273f261 Don't write absolute filenames and duplicate strings to CV...
      d7c22338 Fix cursor-sensor--detect when current buf != selected win...
      2e39fc83 * doc/emacs/sending.texi (Mail Sending): Fix index entries.
      b410f902 Document 'message-send-mail-function' in the Emacs manual
      ac054661 Fix reference to 'message-send-and-exit' in Emacs manual
      cd6a9b8f Skip shell prompt on current line in Eshell even if it's p...
    • Noam Postavsky's avatar
      Shorten some ppss struct field names · ba7004b2
      Noam Postavsky authored
      * lisp/emacs-lisp/syntax.el (ppss): Capitalize docstrings.
      (ppss-comment-depth): Renamed from ppss-comment-nesting.
      (ppss-quoted-p): Renamed from ppss-after-quote-p.
      (ppss-min-depth): Renamed from ppss-minimum-paren-depth.
      (ppss-open-parens): Renamed from ppss-open-paren-positions.
      * etc/NEWS: Announce the ppss-* accessors.
    • Alan Mackenzie's avatar
      Java Mode: Fix fontification of variable decl inside `for' · 693749c6
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-forward-declarator): In place of a test for
      C++ Mode, test for either C++ Mode or Java Mode.
    • Alan Mackenzie's avatar
      CC Mode: Fontify foo in "const auto foo :" correctly · 884b68ca
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While attempting to
      find a declaration's identifier, recast the latest found id. as that
      identifier when there is no other type identifier and the result of the most
      recent c-forward-type call is 'maybe or 'found.  In the latter case, remove
      the id. from the found types list, too.
    • Paul Eggert's avatar
      Update from Gnulib · b6be1ce6
      Paul Eggert authored
      This incorporates:
      2020-02-22 fchmodat, lchmod: simplify
      2020-02-22 lchmod: fix link error on Solaris 10
      2020-02-22 use 'restrict' in all POSIX function declarations
      2020-02-22 chmodat, chownat: new modules
      * lib/gnulib.mk.in: Regenerate.
      * lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
      * lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
      * lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
      * m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
      * m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
      * m4/unistd_h.m4: Copy from Gnulib.
    • Juri Linkov's avatar
    • Juri Linkov's avatar
      * lisp/replace.el (occur-engine-line): Revert part of fb163130 (bug#39597) · aff8bca7
      Juri Linkov authored
      ; Do not merge to master.
  6. 22 Feb, 2020 5 commits
    • Dmitry Gutov's avatar
      Move more logic to vc-ignore from vc-default-ignore · dd575643
      Dmitry Gutov authored
      * lisp/vc/vc-dir.el (vc-dir-ignore):
      Pass relative file names to vc-ignore.
      * lisp/vc/vc.el (vc-ignore): Move the responsibility of
      constructing the ignore pattern (right now, most often a relative
      file name) using a file name received from the user, here.
      (vc-default-ignore): ...from here (bug#37189, see discussion).
      Also clarify the docstring.
    • Paul Eggert's avatar
      Update from Gnulib · c87a1650
      Paul Eggert authored
      This incorporates:
      2020-02-21 largefile: remove _DARWIN_USE_64_BIT_INODE
      2020-02-21 Add ‘extern "C"’ to count-one-bits.h etc.
      * lib/count-leading-zeros.h, lib/count-one-bits.h:
      * lib/count-trailing-zeros.h, m4/largefile.m4: Copy from Gnulib.
    • Paul Eggert's avatar
      Restore runtime check for invalid tag · 202c3319
      Paul Eggert authored
      * src/data.c (wrong_type_argument): Restore check that the
      object’s tag is valid, since invalid tags exist again.
      * src/lisp.h (Lisp_Type_Unused0): New constant.
    • Eli Zaretskii's avatar
      Warn about the likes of "[:alnum:]" in regexps · 2aed279b
      Eli Zaretskii authored
      * doc/lispref/searching.texi (Char Classes): Warn about erroneous
      usage of named character classes.  Suggested by Stephen Leake
    • Wolfgang Scherer's avatar
      Don't write absolute filenames and duplicate strings to CVS ignore files · 0273f261
      Wolfgang Scherer authored
      * lisp/vc/vc-cvs.el (vc-cvs-ignore): Expand filename correctly
      and pass on only the basename as the pattern.
      (vc-cvs-append-to-ignore) Do not write duplicate strings to
      .cvsignore.  New optional parameter SORT to more explicitly
      control sorting of the ignore entries.  (Bug#37215)
      * lisp/vc/pcvs.el (cvs-mode-ignore): Call 'vc-cvs-append-to-ignore'
      with SORT argument.
  7. 21 Feb, 2020 4 commits