1. 27 Jun, 2019 6 commits
    • Phil Sainty's avatar
      Add so-long library · 7d9fbf90
      Phil Sainty authored
      * lisp/so-long.el: New library
      * doc/emacs/trouble.texi: Briefly describe the problem and solution
      * etc/NEWS: Include under "New Modes and Packages in Emacs 27.1"
    • Aaron S. Hawley's avatar
      Allow generating wiki and mediawiki tables · d64c72f5
      Aaron S. Hawley authored
      * lisp/textmodes/table.el (table--generate-source-prologue)
      (table--generate-source-cells-in-a-row): Insert the wiki/mediawiki
      * lisp/textmodes/table.el (table-source-languages): Add support
      for wiki and mediawiki tables (bug#13287).
      2019-06-27  Lars Ingebrigtsen  <larsi@gnus.org>
      	* doc/emacs/text.texi (Table Misc): Mention the new wiki and
      	mediawiki formats.
    • Wilfred Hughes's avatar
      Apply font-lock in hexl-mode buffers · 573de396
      Wilfred Hughes authored
      * lisp/hexl.el (hexl-mode): After setting font-lock-defaults, we
      need to call `font-lock-ensure' to apply hexl-mode faces
    • Juanma Barranquero's avatar
      Add :local specifier to defcustom · e3b70e6b
      Juanma Barranquero authored
      * lisp/custom.el (custom-declare-variable): Allow the new :local
      parameter (bug#14591).
      (defcustom): Document it.
    • Paul Eggert's avatar
      Tweak ‘error’ and ‘user-error’ doc strings · 1d9bb2ff
      Paul Eggert authored
      * lisp/net/tramp.el (tramp-user-error):
      * lisp/subr.el (user-error):
      Say that user errors are sometimes called pilot errors.
      * lisp/subr.el (error, user-error):
      Reorder wording to discuss mechanism first, then formatting advice,
      rather than going back and forth between the two topics.
      Tighten up the wording a bit.
    • Stefan Kangas's avatar
      Clarify error and user-error docstrings · f90e0c56
      Stefan Kangas authored
      * lisp/subr.el (error, user-error)
      * lisp/net/tramp.el (tramp-user-error): Change "pilot error" to "user
      error" and improve documentation.
  2. 26 Jun, 2019 23 commits
    • Basil L. Contovounesios's avatar
      Remove gnus-bug from report-emacs-bug TODO entry · ee757886
      Basil L. Contovounesios authored
      For discussion, see the following thread:
      * etc/TODO: Remove gnus-bug from list of obsolete bug-reporting
      commands now that it is implemented in terms of report-emacs-bug.
    • Mattias Engdegård's avatar
      Document bug in `replace-regexp-in-string' · cda2f52b
      Mattias Engdegård authored
      `replace-regexp-in-string' omits the first START characters of the
      input string in its return value.  This is a clear bug, but fixing it
      probably causes more trouble; document the behaviour instead (bug#36372).
      * doc/lispref/searching.texi (Search and Replace)
      * lisp/subr.el (replace-regexp-in-string):
      Document current behaviour.
    • Stefan Monnier's avatar
      * lisp/textmodes/page-ext.el (sort-pages-buffer): Fix typo · 85871ae9
      Stefan Monnier authored
      Reported by Marco Wahl <marcowahlsoft@gmail.com>.
      Update `Commentary:` to use the new command names.
      (pages--ctl-x-ctl-p-map): Fix `mark-page` binding.
      (pages-directory-mode-map): Update `add-new-page` => `pages-add-new-page`.
    • Eli Zaretskii's avatar
      Support invoking Emacs via a symlink on MS-Windows · e35708b4
      Eli Zaretskii authored
      * src/w32.c (w32_my_exename): Resolve symlinks in the
      executable name, to support searching for the pdumper file
      when the executable is found via a symlink.
      * src/emacs.c (load_pdump): Add a comment about symlink
      resolution on Windows.
    • Andrzej P's avatar
      Fix redisplay of registers in gdb-mi · d4a0e418
      Andrzej P authored
      * lisp/progmodes/gdb-mi.el (gdb-update): Call
      gdb-get-changed-registers before updating the GDB-MI buffers.
      Copyright-paperwork-exempt: yes
    • Lars Ingebrigtsen's avatar
      Restrict indirect lookups in Fdocumentation_property · 8123f8cf
      Lars Ingebrigtsen authored
      * src/doc.c (Fdocumentation_property): Only look up indirect
      variables if we've been asked for the variable documentation.
    • Stefan Monnier's avatar
    • Bruce Stephens's avatar
    • Lars Ingebrigtsen's avatar
      Fdocumentation_property: Return doc string for indirect variables · 4b83e7d0
      Lars Ingebrigtsen authored
      * src/doc.c (Fdocumentation_property): When dealing with indirect
      variables (i.e., aliases), also check the symbol being pointed to
      for the doc string (bug #17180).
    • Stefan Monnier's avatar
      Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo" · 0b4e0037
      Stefan Monnier authored
      This reverts commit 698ff554.
    • Johan Claesson's avatar
      help-C-file-name shouldn't error out if we can't find the name · 699fce29
      Johan Claesson authored
      * lisp/help-fns.el (help-C-file-name): Make help-C-file-name
      return nil instead of signalling an error if we can't find the
      file name (bug#17250).
      Copyright-paperwork-exempt: yes
    • Stefan Monnier's avatar
      * test/lisp/calc/calc-tests.el (test-math-bignum, test-calc-23889): Disable · 4e302630
      Stefan Monnier authored
      Not applicable any more with native bignums.
    • Stefan Monnier's avatar
    • Noam Postavsky's avatar
      Fix (rx-to-string (and (literal STR) (regexp STR)) regression · 9233865b
      Noam Postavsky authored
      * lisp/emacs-lisp/rx.el (rx-regexp, rx-literal): Check the cadr of the
      form for stringness, not the form itself.
      * test/lisp/emacs-lisp/rx-tests.el (rx-to-string-lisp-forms): New test.
    • Mattias Engdegård's avatar
      Merge consecutive constant `concat' args (bug#14769) · 260b6c2c
      Mattias Engdegård authored
      Suggested by Shigeru Fukaya <shigeru.fukaya@gmail.com>
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-concat): New.
      (concat): Add byte-optimizer.
    • Stefan Monnier's avatar
      * lisp/calc/calc.el: Take advantage of native bignums. · 1bc1672f
      Stefan Monnier authored
      Remove redundant :group args.
      (calc-trail-mode): Use inhibit-read-only.
      (math-bignum-digit-length, math-bignum-digit-size)
      (math-small-integer-size): Delete constants.
      (math-normalize): Use native bignums.
      (math-bignum, math-bignum-big): Delete functions.
      (math-make-float): The mantissa can't be a calc bignum any more.
      (math-neg, math-scale-left, math-scale-right, math-scale-rounding)
      (math-add, math-sub, math-mul, math-idivmod, math-quotient)
      (math-format-number, math-read-number, math-read-number-simple):
      Don't bother handling calc bignums.
      (math-div10-bignum, math-scale-left-bignum, math-scale-right-bignum)
      (math-add-bignum, math-sub-bignum, math-mul-bignum, math-mul-bignum-digit)
      (math-div-bignum, math-div-bignum-digit, math-div-bignum-big)
      (math-div-bignum-part, math-div-bignum-try, math-format-bignum)
      (math-format-bignum-decimal, math-read-bignum): Delete functions.
      (math-numdigs): Don't presume that native ints are small enough to use
      a slow algorithm.
      * lisp/calc/calc-aent.el (calc-do-quick-calc):
      * lisp/calc/calc-vec.el (calcFunc-vunpack):
      * lisp/calc/calc-alg.el (math-beforep): Don't bother handling calc bignums.
      * lisp/calc/calc-bin.el (math-bignum-logb-digit-size)
      (math-bignum-digit-power-of-two): Remove constants.
      (calcFunc-and, math-binary-arg, calcFunc-or, calcFunc-xor)
      (calcFunc-diff, calcFunc-not, math-clip, math-format-twos-complement):
      Use Emacs's builtin bignums.
      (math-and-bignum, math-or-bignum, math-xor-bignum, math-diff-bignum)
      (math-not-bignum, math-clip-bignum)
      (math-format-bignum-radix, math-format-bignum-binary)
      (math-format-bignum-octal, math-format-bignum-hex): Delete functions.
      (math-format-binary): Fix old copy&paste error.
      * lisp/calc/calc-comb.el (calc-prime-factors): Adjust for unused arg.
      (math-prime-test): math-fixnum is now the identity.
      * lisp/calc/calc-ext.el: Require cl-lib.
      (math-oddp): Use cl-oddp.  Don't bother with calc bignums.
      (math-integerp, math-natnump, math-ratp, math-realp, math-anglep)
      (math-numberp, math-scalarp, math-vectorp, math-objvecp, math-primp)
      (math-num-natnump, math-objectp, math-check-integer, math-compare):
      Don't bother handling calc bignums.
      (math-check-fixnum): Use fixnump.
      (math-fixnum, math-fixnum-big, math-bignum-test): Remove functions.
      (math--format-integer-fancy): Rename from math-format-bignum-fancy.
      Adjust for internal bignums.
      * lisp/calc/calc-funcs.el (calcFunc-besJ): Use cl-isqrt.
      * lisp/calc/calc-macs.el (Math-zerop, Math-integer-negp)
      (Math-integer-posp, Math-negp, Math-posp, Math-integerp)
      (Math-natnump, Math-ratp, Math-realp, Math-anglep, Math-numberp)
      (Math-scalarp, Math-vectorp, Math-objectp, Math-objvecp)
      (Math-integer-neg, Math-primp, Math-num-integerp):
      Don't bother handling calc bignums.
      (Math-bignum-test): Delete function.
      * lisp/calc/calc-math.el (math-use-emacs-fn): Remove unused `fx`.
      (math-isqrt, math-sqrt): Use cl-isqrt.  Don't bother handling calc bignums.
      (math-isqrt-bignum, math-isqrt-bignum-iter, math-isqrt-small):
      Delete function.
      * lisp/calc/calc-misc.el (math-fixnump, math-fixnatnump): Use fixnump.
      (math-evenp): Use cl-evenp.
      (math-zerop, math-negp, math-posp, math-div2): Don't bother handling
      calc bignums.
      (math-div2-bignum): Delete function.
    • Noam Postavsky's avatar
      Merge from emacs-26 · 9552ee4d
      Noam Postavsky authored
      e62ad049 Fix sgml-mode handling of quotes within parens (Bug#36347)
      06b35b2f ; * lisp/frame.el: Enhance add-variable-watcher commentary.
      572e34bb Rename 'make-symbolic-link' argument NEWNAME to LINKNAME
      04477ade Check that length of data returned by sysctl is non-zero
      81535eea * test/lisp/progmodes/python-tests.el (python-virt-bin): D...
      9d48979c Fix Python tests depending on system-type
      fcf6cc31 Fix problem with wdired test when symlinks cannot be created.
      4701e066 Improve wording of documentation of click events
      # Conflicts:
      #	lisp/textmodes/sgml-mode.el
      #	test/lisp/textmodes/sgml-mode-tests.el
    • Noam Postavsky's avatar
      ; Merge from emacs-26 · c7a59d87
      Noam Postavsky authored
      The following commit was skipped:
      bea31a37 Backport: Fix typo in regexp-opt example code
    • Noam Postavsky's avatar
      Merge from emacs-26 · 66aa7709
      Noam Postavsky authored
      2b765c65 Remove outdated comment in winner.el (Bug#36185)
    • Noam Postavsky's avatar
      ; Merge from emacs-26 · ab9e58b8
      Noam Postavsky authored
      The following commit was skipped:
      f87a9e35 Fix accidential change in tramp-tests; do not merge with m...
    • Noam Postavsky's avatar
      Don't bind search-spaces-regexp around possible autoload (Bug#35802) · 648fdbbc
      Noam Postavsky authored
      * lisp/isearch.el (isearch-search-fun-default): Move possible autoload
      trigger outside let-binding of search-spaces-regexp.
      * lisp/char-fold.el (char-fold-make-table): Remove no longer needed
      * lisp/info.el (Info-search-whitespace-regexp):
      * lisp/isearch.el (search-whitespace-regexp):
      * src/search.c (syms_of_search) <search-spaces-regexp>: Add warning
      about adding capturing groups to the value.
      * test/lisp/char-fold-tests.el: Remove, binding search-spaces-regexp
      to a different should be considered a bug.
    • Noam Postavsky's avatar
      Support (rx (and (regexp EXPR) (literal EXPR))) (Bug#36237) · b59ffd22
      Noam Postavsky authored
      * lisp/emacs-lisp/rx.el (rx-regexp): Allow non-string forms.
      (rx-constituents): Add literal constituent, which is like a plain
      STRING form, but allows arbitrary lisp expressions.
      (rx-literal): New function.
      (rx-compile-to-lisp): New variable.
      (rx--subforms): New helper function for handling subforms, including
      non-constant case.
      (rx-group-if, rx-and, rx-or, rx-=, rx->=, rx-repeat, rx-submatch)
      (rx-submatch-n, rx-kleene, rx-atomic-p): Use it to handle non-constant
      (rx): Document new form, wrap non-constant forms with concat call.
      * test/lisp/emacs-lisp/rx-tests.el (rx-tests--match): New macro.
      (rx-nonstring-expr, rx-nonstring-expr-non-greedy): New tests.
      * etc/NEWS: Announce changes.
    • Juanma Barranquero's avatar
      Fix PATH_MAX change to lib-src/emacsclient.c · 29babad7
      Juanma Barranquero authored
      * lib-src/emacsclient.c (get_current_dir_name): Declare pwdlen.
  3. 25 Jun, 2019 11 commits
    • Lars Ingebrigtsen's avatar
      Fix previous patch to dired-mark-if · e8d17430
      Lars Ingebrigtsen authored
      * lisp/dired.el (dired-mark-if): Don't use looking-at to check for
    • Noam Postavsky's avatar
      Fix sgml-mode handling of quotes within parens (Bug#36347) · e62ad049
      Noam Postavsky authored
      * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize): Use
      syntax-ppss-table if set.  This is only needed on the release branch,
      on master the caller (syntax-propertize) already does this.
      (sgml-mode): Set syntax-ppss-table to sgml-tag-syntax-table.  This
      correctly classifies parens as punctuation, so they won't confuse the
      * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
      New test copied from master, with two cases added for this bug.
    • Noam Postavsky's avatar
    • Paul Eggert's avatar
      Prefer PATH_MAX to MAXPATHLEN · 824f7841
      Paul Eggert authored
      PATH_MAX is standardized, MAXPATHLEN is not.
      Also, the Gnulib pathmax module fixes some rare bugs with PATH_MAX.
      So prefer PATH_MAX to MAXPATHLEN unless we know the latter is
      also correct (for some platform-specific code).
      * admin/merge-gnulib (GNULIB_MODULES): Add pathmax.
      This module was already present, as a dependency of canonicalize-lgpl,
      but now Emacs is using it directly.  Sort.
      * lib-src/emacsclient.c: Include stdint.h, pathmax.h.
      (get_current_dir_name): Sync to current src/sysdep.c.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * src/sysdep.c: Include pathmax.h.
      Use PATH_MAX instead of MAXPATHLEN.
    • Dima Kogan's avatar
      View-search-... now hit all the matches, regardless of window position · 7dcefa7a
      Dima Kogan authored
      * lisp/view.el (view-search): Jump to the next/prev occurrence of
      the search, even if it's displayed in the buffer (bug#18131).
      This seems more logical than the previous (undocumented) behaviour.
    • Paul Eggert's avatar
      Avoid some strlen work, primarily via strnlen · d7c68362
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add strnlen.
      * lib-src/etags.c (find_entries):
      * src/emacs.c (main):
      * src/nsmenu.m (parseKeyEquiv:):
      * src/nsterm.m (ns_xlfd_to_fontname):
      * src/term.c (vfatal):
      Prefer !*X to !strlen (X).
      * lib-src/etags.c (pfnote, add_regex):
      * lib-src/pop.c (pop_open):
      * lib-src/update-game-score.c (main):
      * lwlib/lwlib.c (lw_separator_p):
      * src/doprnt.c (doprnt):
      * src/emacs.c (main):
      * src/inotify.c (inotifyevent_to_event):
      * src/keyboard.c (menu_separator_name_p, parse_tool_bar_item):
      * src/sysdep.c (get_current_dir_name_or_unreachable):
      * src/xdisp.c (store_mode_line_string):
      Use strnlen to avoid unnecessary work with strlen.
      * lib-src/etags.c (Prolog_functions, prolog_pr)
      (Erlang_functions, erlang_func):
      Prefer ptrdiff_t to size_t when either will do.
      (prolog_pr, erlang_func): New arg LASTLEN, to avoid
      unnecessary strlen call. All callers changed.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/strnlen.c, m4/strnlen.m4: New files, copied from Gnulib.
      * lwlib/lwlib.c (lw_separator_p):
      * src/json.c (json_has_prefix):
      Use strncmp to avoid unecessary work with strlen + memcmp.
      * src/process.c (set_socket_option): Use SBYTES instead of strlen.
    • Emilio C. Lopes's avatar
      Support opening a new connection when reverting a telnet buffer · 349b778d
      Emilio C. Lopes authored
      * net/telnet.el (telnet-connect-command): New variable.
      (telnet-revert-buffer): New function.
      (telnet-mode): Use `telnet-revert-buffer' as `revert-buffer-function'.
      (telnet, rsh): Set `telnet-connect-command' accordingly (bug#18312).
      Copyright-paperwork-exempt: yes
    • Arash Esbati's avatar
      Suppress warning about unix-sync in nnmaildir.el · 52e17e53
      Arash Esbati authored
      * nnmaildir.el (nnmaildir-request-replace-article): Check if the
      function `unix-sync' is bound before running it.
    • Ivan Shmakov's avatar
      Check labels in smerge-mode · 39428214
      Ivan Shmakov authored
      * lisp/vc/diff.el (diff-check-labels): Separated out into its own
      function (bug#18850)...
      (diff-no-select): ... from here.
      * lisp/vc/smerge-mode.el (smerge-diff): Use diff-check-labels.
    • Basil L. Contovounesios's avatar
      Avoid using subr-x.el function in files.el · 4217398d
      Basil L. Contovounesios authored
      * lisp/files.el (file-size-human-readable): Open code string-empty-p
      call.  This was the single occurrence of a subr-x.el function in
      files.el, which does not (yet) load subr-x.el.
    • Stefan Monnier's avatar