1. 27 Jan, 2018 7 commits
    • Noam Postavsky's avatar
      Raise limit of regexp repetition (Bug#24914) · 559f1606
      Noam Postavsky authored
      * src/regex.h (RE_DUP_MAX): Raise limit to 2^16-1.
      * etc/NEWS: Announce it.
      * doc/lispref/searching.texi (Regexp Backslash): Document it.
      * test/src/regex-tests.el (regex-repeat-limit): Test it.
      
      * src/regex.h (reg_errcode_t): Add REG_ESIZEBR code.
      * src/regex.c (re_error_msgid): Add corresponding entry.
      (GET_INTERVAL_COUNT): Return it instead of the more generic REG_EBADBR
      when encountering a repetition greater than RE_DUP_MAX.
      
      * lisp/isearch.el (isearch-search): Don't convert errors starting with
      "Invalid" into "incomplete".  Such errors are not incomplete, in the
      sense that they cannot be corrected by appending more characters to
      the end of the regexp.  The affected error messages are:
      
      - REG_BADPAT "Invalid regular expression"
        - \\(?X:\\) where X is not a legal group number
        - \\_X where X is not < or >
      
      - REG_ECOLLATE "Invalid collation character"
        - There is no code to throw this.
      
      - REG_ECTYPE "Invalid character class name"
        - [[:foo:] where foo is not a valid class name
      
      - REG_ESUBREG "Invalid back reference"
        - \N where N is referenced before matching group N
      
      - REG_BADBR "Invalid content of \\{\\}"
        - \\{N,M\\} where N < 0, M < N, M or N larger than max
        - \\{NX where X is not a digit or backslash
        - \\{N\\X where X is not a }
      
      - REG_ERANGE "Invalid range end"
        - There is no code to throw this.
      
      - REG_BADRPT "Invalid preceding regular expression"
        - We never throw this.  It would usually indicate a "*" with no
          preceding regexp text, but Emacs allows that to match a literal
          "*".
      559f1606
    • Noam Postavsky's avatar
      Merge from emacs-26 · f5357b1c
      Noam Postavsky authored
      463f96b4 * doc/lispref/searching.texi: Document regexp repetition l...
      08a61955 ; test/README: Document TEST_LOAD_EL parameter.
      7bbea90b * src/syntax.c (char-syntax): Warn about ignoring text pro...
      50fcbb5f ; * src/process.c (Fprocess_contact): Fix docstring typo.
      81ae9c8c Load mm-util as needed for url-file and url-data (Bug#30258)
      5a1ee67a Another minor copyedit in the manual's "Scroll Bars"
      226a651e Minor fix in documentation of 'equal'
      b26786c8 * lisp/dired-x.el (dired-guess-shell-alist-user): Doc fix....
      5699a824 Minor rewording in Emacs manual's "Help Mode" node
      f35ff015 Fixes for Emacs manual in frames.texi
      6cd4e8dc * doc/misc/cl.texi (Efficiency Concerns): Fix 2012-10-27 t...
      1412cf3e Fix a few issues with latest GTK scaling changes
      59db8dca Use scaled coordinates when calling into GTK
      2892f057 Scale monitor dimensions obtained from GTK
      f5357b1c
    • Noam Postavsky's avatar
    • Noam Postavsky's avatar
      08a61955
    • Noam Postavsky's avatar
    • Noam Postavsky's avatar
    • Noam Postavsky's avatar
      Load mm-util as needed for url-file and url-data (Bug#30258) · 81ae9c8c
      Noam Postavsky authored
      * lisp/url/url-file.el (url-file):
      * lisp/url/url-misc.el (url-data): Require `mm-util' before calling
      `mm-disable-multibyte'.
      * test/lisp/url/url-file-resources/file.txt:
      * test/lisp/url/url-file-tests.el:
      * test/lisp/url/url-misc-tests.el: New tests.
      81ae9c8c
  2. 26 Jan, 2018 10 commits
  3. 25 Jan, 2018 4 commits
    • Juri Linkov's avatar
      * lisp/arc-mode.el (archive-extract): Let-bind `create-lockfiles' to nil · 2e777582
      Juri Linkov authored
      to prevent directory time modification by lock_file on visiting
      a file from archive.  (Bug#30215)
      (archive-summarize): Let-bind `create-lockfiles' to nil
      instead of `buffer-file-truename'.
      2e777582
    • Stefan Monnier's avatar
      Replace (default-value 'enable-multibyte-characters) with t · 9107cf30
      Stefan Monnier authored
      Since Emacs-24, (default-value 'enable-multibyte-characters) can't be
      changed any more, so we can remove all code which checks this value.
      
      * lisp/x-dnd.el (x-dnd-handle-file-name):
      * lisp/w32-fns.el (w32-set-default-process-coding-system):
      * lisp/textmodes/ispell.el (ispell-send-string):
      * lisp/term/internal.el (dos-codepage-setup):
      * lisp/tar-mode.el (tar-header-block-tokenize, tar--extract):
      * lisp/startup.el (command-line):
      * lisp/server.el (server-process-filter):
      * lisp/net/browse-url.el (browse-url-file-url):
      * lisp/menu-bar.el (menu-bar-options-menu, menu-bar-describe-menu):
      * lisp/mail/sendmail.el (mail-setup):
      * lisp/mail/rmail.el (rmail-mode, rmail-get-new-mail):
      * lisp/mail/rfc2047.el (rfc2047-encode-message-header):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * lisp/international/mule-diag.el (mule-diag):
      * lisp/files.el (find-file-noselect-1):
      * lisp/dos-fns.el (dos-set-default-process-coding-system):
      * lisp/arc-mode.el (archive-mode):
      * lisp/international/mule-cmds.el (mule-menu-keymap)
      (set-default-coding-systems, set-language-info)
      (set-language-environment, standard-display-european-internal)
      (set-locale-environment): Simplify code.
      9107cf30
    • Michael Albinus's avatar
      * lisp/simple.el (shell-command-to-string): · f44b50ff
      Michael Albinus authored
      Call `shell-command' in order to respect file name handlers.
      f44b50ff
    • Michael Albinus's avatar
      421e2fb7
  4. 24 Jan, 2018 9 commits
  5. 23 Jan, 2018 7 commits
    • Philipp Stephani's avatar
      Add unit test for Bug#30005. · 4c998b4e
      Philipp Stephani authored
      * test/src/callint-tests.el (call-interactively/embedded-nulls): New
      unit test.
      4c998b4e
    • Stefan Monnier's avatar
      Remove final uses of 'cl' in lisp/net · 18139139
      Stefan Monnier authored
      * lisp/net/pop3.el: Use lexical-binding and cl-lib.
      (pop3-write-to-file): Remove unused var 'start'.
      (pop3-make-date): Remove unused var 'sign'.
      
      * lisp/net/rfc2104.el: Use lexical-binding and cl-lib.
      
      * lisp/net/shr-color.el: Use lexical-binding and cl-lib.
      
      * lisp/net/sieve-manage.el: Use lexical-binding and cl-lib.
      18139139
    • Stefan Monnier's avatar
      * lisp/net/imap.el: Use lexical-binding and cl-lib · e41c1dc9
      Stefan Monnier authored
      Require packages instead of autoloading their functions.
      (imap-send-command): Remove unused vars 'stream' and 'eol'.
      (imap-parse-response): Use pcase.
      (imap-parse-fetch): Remove unused arg 'response'.
      
      * lisp/format-spec.el: Don't require CL.
      e41c1dc9
    • Stefan Monnier's avatar
      * lisp/gnus/message.el: Tweak header font-lock and ecomplete completion · 5ed5f548
      Stefan Monnier authored
      (message-font-lock-make-header-matcher): Delete.
      (message-match-to-eoh): New function to replace it.
      (message-font-lock-keywords): Use it.
      (message-strip-forbidden-properties): Remove redundant binding.
      (message-goto-body): Avoid called-interactively-p, only use
      push-mark when called interactively.
      (message-goto-body-1): Merge into message-goto-body.  Redefine as alias.
      (message-goto-eoh): Call message-goto-body interactively.
      (message--in-tocc-p): New function, extracted from message-display-abbrev.
      (message-ecomplete-capf): New function.
      5ed5f548
    • Stefan Monnier's avatar
      * lisp/ecomplete.el: Add completion-table; use lexical-binding and cl-lib · f2918640
      Stefan Monnier authored
      Also remove redundant :group args.
      (ecomplete-database-file): Use locate-user-emacs-file.
      (ecomplete-completion-table): New completion table.
      (completion-category-defaults): Set default behavior for that table.
      f2918640
    • Eli Zaretskii's avatar
      Support null characters in interactive specs · 6d836771
      Eli Zaretskii authored
      * src/callint.c (Fcall_interactively): Support 'interactive'
      specifications with embedded null characters.  (Bug#30005)
      6d836771
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/ert.el (describe-symbol-backends): Add ourselves · 0a75af91
      Stefan Monnier authored
      (ert-describe-test): Return the description text as well.
      Remove left over version check.
      * lisp/help-mode.el (describe-symbol-backends): Add docstring.
      0a75af91
  6. 22 Jan, 2018 3 commits
    • Philipp Stephani's avatar
      Add a regression test for Bug#30004. · 2df391c2
      Philipp Stephani authored
      * test/src/callint-tests.el
      (call-interactively/incomplete-multibyte-sequence): New unit test.
      2df391c2
    • Philipp Stephani's avatar
    • Juri Linkov's avatar
      Restore isearch correctly after M-e in special modes (bug#30187) · 71e45850
      Juri Linkov authored
      * lisp/isearch.el (isearch-suspended): New defvar.
      (with-isearch-suspended): Set isearch-suspended to t
      at the beginning, then set it back to nil at the end.
      
      * lisp/comint.el (comint-history-isearch-backward)
      (comint-history-isearch-backward-regexp): Set global value of
      comint-history-isearch to t.
      (comint-history-isearch-end): Reevaluate
      comint-history-isearch when isearch-edit-string finishes.
      
      * lisp/dired-aux.el (dired-isearch-filenames)
      (dired-isearch-filenames-regexp): Set global value of
      dired-isearch-filenames to t.
      (dired-isearch-filenames-end): Reevaluate
      dired-isearch-filenames when isearch-edit-string finishes.
      71e45850