1. 20 Jun, 2019 1 commit
  2. 19 Jun, 2019 2 commits
    • Stefan Monnier's avatar
      * lisp/textmodes/page-ext.el: Further cleanup · a2dc7498
      Stefan Monnier authored
      (pages--ctl-x-ctl-p-map): Rename from ctl-x-ctl-p-map.
      Move initialization into declaration.
      (pages-ctl-x-ctl-p-prefix): Rename from ctl-x-ctl-p-prefix.
      (sort-subr): Remove redundant autoload.
      (pages-set-delimiter): Use explicit `interactively` arg instead of
      `called-interactively`.  Use `setq-local`.
      (pages-directory-for-addresses): Use `setq-local`.
      a2dc7498
    • Lars Ingebrigtsen's avatar
      Fix up the function/variable names in page-ext.el · 816b91a6
      Lars Ingebrigtsen authored
      * lisp/textmodes/page-ext.el (previous-page)
      (search-pages)
      (sort-pages-in-region)
      (sort-pages-buffer)
      (pages-sort-buffer)
      (pages-set-delimiter): Rename to have pages- prefixes and make the
      previous name into aliases for the new names.
      (ctl-x-ctl-p-map): Use the new command names.
      816b91a6
  3. 17 Jun, 2019 1 commit
    • Alex Branham's avatar
      Avoid a flyspell error if point is at beginning of buffer · 1942f4cc
      Alex Branham authored
      * lisp/textmodes/flyspell.el (flyspell-generic-progmode-verify): Check
      if point is at the beginning of the buffer.  This prevents an error
      when e.g. 'flyspell-auto-correct-word' gets called with point at the
      beginning of the buffer.
      
      Bug#35967
      1942f4cc
  4. 16 Jun, 2019 1 commit
  5. 13 Jun, 2019 1 commit
    • Lars Ingebrigtsen's avatar
      Suppress warnings in tildify.el · b334124a
      Lars Ingebrigtsen authored
      * lisp/textmodes/tildify.el (tildify--deprecated-ignore-evironments):
      (tildify-tildify, tildify-mode): Suppress warnings about obsolete
      internal function `tildify--pick-alist-entry'.  Apparently these
      semi-deprecated functions rely on each other.
      b334124a
  6. 10 Jun, 2019 1 commit
  7. 09 Jun, 2019 2 commits
  8. 04 Jun, 2019 3 commits
  9. 02 Jun, 2019 1 commit
  10. 01 Jun, 2019 1 commit
  11. 27 May, 2019 1 commit
  12. 26 May, 2019 3 commits
  13. 25 May, 2019 1 commit
    • Paul Eggert's avatar
      Go back to "Maintainer: emacs-devel@gnu.org" · f744797a
      Paul Eggert authored
      Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is
      no special maintainer for a file.  Although this wasn't documented
      it was common practice and removing the lines didn't have consensus.
      f744797a
  14. 22 May, 2019 1 commit
    • Stefan Monnier's avatar
      * lisp/textmodes/sgml-mode.el: Fix lone `>` in sgml text · 70839740
      Stefan Monnier authored
      (sgml--syntax-propertize-ppss):New variable and function.
      (sgml-syntax-propertize-rules): Use it.
      Don't ignore quotes not followed by a matching quote or a '>' or '<'.
      (sgml-syntax-propertize): Set up sgml--syntax-propertize-ppss.
      
      * test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
      Add test for lone '>'.
      70839740
  15. 20 May, 2019 2 commits
  16. 18 May, 2019 1 commit
  17. 16 May, 2019 1 commit
  18. 15 May, 2019 2 commits
    • Noam Postavsky's avatar
      Fix merge of sgml-syntax-propertize-rules · e7e92dc5
      Noam Postavsky authored
      During the merge of emacs-26, the sgml-syntax-propertize-rules part of
      2019-01-17 "* lisp/textmodes/sgml-mode.el: Try and fix bug#33887." got
      lost in the conflict against 2019-05-09 "Recognize single quote
      attribute values in nxml and sgml (Bug#35381)".
      * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-rules): Reapply
      the 2019-01-17 change to speed up sgml-syntax-propertize-rules, taking
      into account the 2019-05-09 which means we have to handle single
      quotes as well.
      e7e92dc5
    • Mattias Engdegård's avatar
      Add standard unmatchable regexp · 26f735ff
      Mattias Engdegård authored
      Add `regexp-unmatchable' as a standard unmatchable regexp, defined as
      "\\`a\\`".  Use it where such a regexp is needed, replacing slower
      expressions in several places.
      From a suggestion by Philippe Schnoebelen.
      
      * lisp/subr.el (regexp-unmatchable): New defconst.
      * etc/NEWS (Lisp Changes): Mention `regexp-unmatchable'.
      * doc/lispref/searching.texi (Regexp Functions): Document it.
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt)
      * lisp/progmodes/cc-defs.el (cc-conditional-require-after-load)
      (c-make-keywords-re)
      * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
      (c-forward-<>-arglist-recur, c-forward-decl-or-cast-1)
      (c-looking-at-decl-block)
      * lisp/progmodes/cc-fonts.el (c-doc-line-join-re)
      (c-doc-bright-comment-start-re)
      * lisp/progmodes/cc-langs.el (c-populate-syntax-table)
      (c-assignment-op-regexp)
      (c-block-comment-ender-regexp, c-font-lock-comment-end-skip)
      (c-block-comment-start-regexp, c-line-comment-start-regexp)
      (c-doc-comment-start-regexp, c-decl-start-colon-kwd-re)
      (c-type-decl-prefix-key, c-type-decl-operator-prefix-key)
      (c-pre-id-bracelist-key, c-enum-clause-introduction-re)
      (c-nonlabel-token-2-key)
      * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end)
      * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
      (c-noise-macro-name-re, c-make-noise-macro-regexps)
      * lisp/progmodes/octave.el (octave-help-mode)
      * lisp/vc/vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-revision-completion-table)
      * lisp/vc/vc-git.el (vc-git-log-view-mode)
      * lisp/vc/vc-hg.el (vc-hg-log-view-mode)
      * lisp/vc/vc-mtn.el (vc-mtn-log-view-mode):
      Use `regexp-unmatchable'.
      * lisp/textmodes/ispell.el (ispell-non-empty-string):
      Use `regexp-unmatchable', fixing a broken never-match regexp.
      26f735ff
  19. 11 May, 2019 1 commit
  20. 09 May, 2019 1 commit
    • Noam Postavsky's avatar
      Recognize single quote attribute values in nxml and sgml (Bug#35381) · 7dab3ee7
      Noam Postavsky authored
      * lisp/textmodes/sgml-mode.el (sgml-specials): Add single quote.
      (sgml-syntax-propertize-rules): Handle single quote.
      * test/lisp/nxml/nxml-mode-tests.el (nxml-mode-font-lock-quotes): New
      test.
      * test/lisp/textmodes/sgml-mode-tests.el
      (sgml-delete-tag-bug-8203-should-not-delete-apostrophe): Now passes.
      7dab3ee7
  21. 02 Apr, 2019 1 commit
    • Paul Eggert's avatar
      Improve regexp advice again, and unchain ranges · f9ff60e0
      Paul Eggert authored
      * doc/lispref/searching.texi (Regexp Special):
      Mention char classes earlier, in a more-logical place.
      Advise sticking to ASCII letters and digits in ranges.
      Reword negative advice to make it clearer that it’s negative.
      * lisp/files.el (make-auto-save-file-name):
      * lisp/gnus/message.el (message-mailer-swallows-blank-line):
      * lisp/gnus/nndoc.el (nndoc-lanl-gov-announce-type-p)
      (nndoc-generate-lanl-gov-head):
      * lisp/org/org-eshell.el (org-eshell-open):
      * lisp/org/org.el (org-deadline-time-hour-regexp)
      (org-scheduled-time-hour-regexp):
      * lisp/progmodes/bat-mode.el (bat-font-lock-keywords):
      * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp):
      * lisp/textmodes/less-css-mode.el (less-css-font-lock-keywords):
      * lisp/vc/vc-cvs.el (vc-cvs-valid-symbolic-tag-name-p):
      * lisp/vc/vc-svn.el (vc-svn-valid-symbolic-tag-name-p):
      Avoid attempts to chain ranges, as this can be confusing.
      For example, instead of [0-9-_.], use [0-9_.-].
      f9ff60e0
  22. 31 Mar, 2019 3 commits
  23. 27 Mar, 2019 3 commits
    • Paul Eggert's avatar
      Tune css-mode regexp · df167575
      Paul Eggert authored
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Omit unnecessary \(?: \) in regexp.  Suggested by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg01042.html
      df167575
    • Basil L. Contovounesios's avatar
      Avoid recently obsolete seq-contains in css-mode · e50bfaae
      Basil L. Contovounesios authored
      * lisp/textmodes/css-mode.el (css--join-nested-selectors): Replace
      recently obsolete seq-contains with new predicate seq-contains-p.
      e50bfaae
    • Paul Eggert's avatar
      2019-03-26 regex cleanup · 5d6a3144
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg01028.html
      * lisp/align.el (align-rules-list):
      * lisp/speedbar.el (speedbar-check-read-only, speedbar-check-vc):
      * lisp/vc/diff-mode.el (diff-add-change-log-entries-other-window):
      * lisp/woman.el (woman-parse-numeric-arg):
      Put "-" at end of character alternatives, since a range was not intended.
      * lisp/erc/erc.el (font-lock):
      * lisp/mail/footnote.el (cl-seq):
      Avoid duplicate character alternatives by using cl-seq API.
      * lisp/mail/footnote.el (footnote--current-regexp):
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Avoid repetition of repetition.
      * lisp/net/webjump.el (webjump-url-encode):
      Add ~ to character alternatives, and rewrite confusing range.
      * lisp/progmodes/verilog-mode.el (verilog-compiler-directives)
      (verilog-assignment-operator-re):
      Remove duplicate.
      * lisp/progmodes/verilog-mode.el (verilog-preprocessor-re):
      * lisp/textmodes/css-mode.el (css--font-lock-keywords):
      Don’t escape a char that doesn’t need it.
      * lisp/textmodes/picture.el (picture-tab-chars): In docstring,
      do not say regexp characters will be quoted; merely say in
      another way that the syntax is that of character alternatives.
      (picture-set-tab-stops, picture-tab-search): Don’t attempt
      to regexp-quote picture-tab-chars.
      (picture-tab-search): Quote \ in picture-tab-chars for
      skip-chars-backwards, which treats \ differently than
      regexp character alternatives do.
      5d6a3144
  24. 25 Mar, 2019 1 commit
  25. 20 Mar, 2019 1 commit
    • Paul Eggert's avatar
      More minor regex cleanup · e14c0d74
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg00643.html
      plus a few others that I noticed.
      * lisp/auth-source-pass.el (auth-source-pass--parse-data):
      * lisp/org/org-datetree.el (org-datetree--find-create):
      * lisp/org/org-pcomplete.el (org-thing-at-point):
      * lisp/progmodes/js.el (js--end-of-do-while-loop-p):
      * lisp/textmodes/sgml-mode.el:
      (sgml-electric-tag-pair-before-change-function):
      * lisp/textmodes/texnfo-upd.el (texinfo-menu-copy-old-description):
      * lisp/url/url-http.el (url-http-parse-response):
      Fix regular expression and similar syntax.
      e14c0d74
  26. 19 Mar, 2019 1 commit
    • Paul Eggert's avatar
      Fix more regular expression typos · bc2a93d5
      Paul Eggert authored
      Problem reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg00548.html
      except that I didn’t address the issues involving Hebrew,
      or involving comint-prompt-regexp.
      * lisp/align.el (align-rules-list, align-exclude-rules-list):
      * lisp/auth-source-pass.el (auth-source-pass--parse-secret)
      (auth-source-pass--parse-data):
      * lisp/cedet/data-debug.el (data-debug-next)
      (data-debug-prev, data-debug-expand-or-contract):
      * lisp/comint.el (comint-within-quotes):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emulation/viper-ex.el (ex-cmd-complete):
      * lisp/gnus/gnus-cite.el (gnus-message-search-citation-line):
      * lisp/gnus/nnir.el (nnir-imap-end-of-input):
      * lisp/mail/mail-extr.el (mail-extr-all-letters):
      * lisp/minibuffer.el (minibuffer-maybe-quote-filename):
      * lisp/nxml/rng-nxml.el (rng-complete-tag)
      (rng-complete-end-tag, rng-complete-attribute-name):
      * lisp/obsolete/vip.el (vip-get-ex-token, vip-get-ex-pat):
      * lisp/org/org-pcomplete.el (org-thing-at-point):
      * lisp/org/org.el (org-set-tags)
      (org-increase-number-at-point)
      (org-fill-line-break-nobreak-p):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/ada-mode.el (ada-compile-goto-error):
      * lisp/progmodes/cperl-mode.el (cperl-highlight-charclass)
      (cperl-find-pods-heres, cperl-not-bad-style-regexp)
      (cperl-regext-to-level-start):
      * lisp/progmodes/ebnf-yac.el (ebnf-yac-skip-spaces):
      * lisp/progmodes/flymake-proc.el (flymake-proc-master-tex-init):
      * lisp/progmodes/flymake.el (flymake-diag-region):
      * lisp/progmodes/fortran.el (fortran-current-line-indentation):
      * lisp/progmodes/idlw-complete-structtag.el:
      (idlwave-complete-structure-tag):
      * lisp/progmodes/idlwave.el (idlwave-complete-sysvar-or-tag):
      * lisp/progmodes/prolog.el (prolog-pred-end)
      (prolog-clause-info):
      * lisp/progmodes/ruby-mode.el (ruby-forward-sexp)
      (ruby-backward-sexp):
      * lisp/progmodes/verilog-mode.el (verilog-repair-open-comma):
      * lisp/term.el (term-within-quotes):
      * lisp/textmodes/bib-mode.el (bib-capitalize-title-stop-words):
      * lisp/textmodes/refbib.el (r2b-capitalize-title-stop-words):
      * lisp/textmodes/reftex-parse.el (reftex-nth-arg):
      * lisp/textmodes/rst.el (rst-svn-rev):
      * lisp/url/url-http.el (url-http-parse-response):
      * test/lisp/progmodes/f90-tests.el (f90-test-bug3730):
      Fix regular expression typos.
      bc2a93d5
  27. 16 Mar, 2019 1 commit
    • Mattias Engdegård's avatar
      Fix some ineffective backslashes in string literals · 8832cc5f
      Mattias Engdegård authored
      Deal with lone backslashes that have no effect in string literals,
      but indicate that something is amiss.
      
      * lisp/auth-source-pass.el (auth-source-pass-entries):
      * lisp/textmodes/artist.el (artist-figlet-get-font-list-windows):
      * lisp/org/ob-abc.el (org-babel-expand-body:abc, org-babel-execute:abc):
      * lisp/org/ob-forth.el (org-babel-forth-session-execute):
      * lisp/vc/vc-git.el (vc-git--program-version):
      Add backslash in regexp for correctness.
      
      * lisp/gnus/nnmail.el (nnmail-split-abbrev-alist):
      Replace `\||' with `\\|' to follow the obvious regexp intent.
      
      * lisp/org/org-list.el (org-plain-list-ordered-item-terminator):
      Add backslash in doc comment so that it appears as intended.
      
      * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1, c-end-of-decl-1):
      * lisp/progmodes/f90.el (f90-font-lock-keywords-2):
      * lisp/progmodes/etags.el (etags-tags-completion-table):
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
      * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1):
      Remove superfluous backslashes from regexp.
      
      * test/lisp/emacs-lisp/rx-tests.el (rx-char-any):
      Remove superfluous backslash from doc comment.
      8832cc5f
  28. 11 Mar, 2019 1 commit
    • Paul Eggert's avatar
      More regexp corrections and tweaks · e81c44fd
      Paul Eggert authored
      Problems reported by Mattias Engdegård in:
      https://lists.gnu.org/r/emacs-devel/2019-03/msg00247.html
      * lisp/align.el (align-rules-list):
      * lisp/comint.el (comint-output-filter):
      * lisp/language/china-util.el (encode-hz-region):
      * lisp/progmodes/cperl-mode.el (cperl-indent-exp):
      * lisp/progmodes/idlwave.el (idlwave-is-pointer-dereference):
      * lisp/progmodes/scheme.el (dsssl-font-lock-keywords):
      * lisp/textmodes/texinfmt.el (texinfo-accent-commands):
      * test/src/regex-emacs-tests.el (regex-tests-re-even-escapes):
      Fix some regular-expression typos.
      e81c44fd