1. 09 Jul, 2019 1 commit
  2. 07 Jul, 2019 2 commits
    • Phil Sainty's avatar
      fixup! Add so-long library · d73e2bca
      Phil Sainty authored
      Trivial docstring rewording.
      d73e2bca
    • Phil Sainty's avatar
      squash! Add so-long library · 5b0abf0a
      Phil Sainty authored
      Revised log entry:
      
      Add so-long library
      
      * lisp/so-long.el: New library.
      * doc/emacs/trouble.texi (Long Lines): New node covering so-long.el.
      * doc/emacs/emacs.texi (Top): Add menu entry for the Long Lines node.
      * etc/NEWS: Include under "New Modes and Packages in Emacs 27.1"
      5b0abf0a
  3. 29 Jun, 2019 1 commit
  4. 27 Jun, 2019 7 commits
    • Phil Sainty's avatar
      Add tests for so-long.el · 1519d01c
      Phil Sainty authored
      1519d01c
    • 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"
      7d9fbf90
    • 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-epilogue)
      (table--generate-source-scan-rows)
      (table--generate-source-cells-in-a-row): Insert the wiki/mediawiki
      separators.
      
      * 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.
      d64c72f5
    • 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
      (bug#24645).
      573de396
    • 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.
      e3b70e6b
    • 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.
      1d9bb2ff
    • 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.
      f90e0c56
  5. 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:
      https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg01196.html
      https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00967.html
      
      * etc/TODO: Remove gnus-bug from list of obsolete bug-reporting
      commands now that it is implemented in terms of report-emacs-bug.
      ee757886
    • 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.
      cda2f52b
    • 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`.
      85871ae9
    • 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.
      e35708b4
    • 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.
      (Bug#16366)
      
      Copyright-paperwork-exempt: yes
      d4a0e418
    • 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.
      8123f8cf
    • Stefan Monnier's avatar
    • Bruce Stephens's avatar
      baee135c
    • 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).
      4b83e7d0
    • Stefan Monnier's avatar
      Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo" · 0b4e0037
      Stefan Monnier authored
      This reverts commit 698ff554.
      0b4e0037
    • 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
      699fce29
    • 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.
      4e302630
    • Stefan Monnier's avatar
      698ff554
    • 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.
      9233865b
    • 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.
      260b6c2c
    • 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.
      1bc1672f
    • 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
      9552ee4d
    • 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
      c7a59d87
    • Noam Postavsky's avatar
      Merge from emacs-26 · 66aa7709
      Noam Postavsky authored
      2b765c65 Remove outdated comment in winner.el (Bug#36185)
      66aa7709
    • 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...
      ab9e58b8
    • 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
      workaround.
      
      * 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.
      648fdbbc
    • 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
      subforms.
      (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.
      b59ffd22
    • 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.
      29babad7
  6. 25 Jun, 2019 6 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
      characters.
      e8d17430
    • 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
      parser.
      * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
      New test copied from master, with two cases added for this bug.
      e62ad049
    • 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.
      (get_current_dir_name_or_unreachable):
      Use PATH_MAX instead of MAXPATHLEN.
      824f7841
    • 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.
      7dcefa7a
    • 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.
      d7c68362