1. 07 Sep, 2020 1 commit
  2. 28 Mar, 2020 1 commit
    • Juri Linkov's avatar
      Switch to literal mode with message when regexp is too big in char-fold search · d1b8179f
      Juri Linkov authored
      * lisp/char-fold.el (char-fold-to-regexp): Don't use regexp-quote
      when the length of regexp reaches 5000.  (Bug#40216)
      
      * lisp/isearch.el (isearch-search): On big regexp in char-fold mode
      gracefully fall back to literal mode, try to search again and display
      momentary-message about switching to literal mode.
      (isearch--momentary-message): Add optional arg SECONDS.
      d1b8179f
  3. 01 Jan, 2020 1 commit
  4. 10 Dec, 2019 1 commit
  5. 28 Jul, 2019 2 commits
  6. 23 Jul, 2019 2 commits
    • Juri Linkov's avatar
      Customizable char-fold with char-fold-symmetric, char-fold-include (bug#35689) · 376f5df3
      Juri Linkov authored
      * doc/emacs/search.texi (Lax Search): Document
      char-fold-symmetric, char-fold-include, char-fold-exclude.
      
      * lisp/char-fold.el (char-fold--default-include)
      (char-fold--default-exclude, char-fold--default-symmetric)
      (char-fold--previous): New defconsts.
      (char-fold-include, char-fold-exclude, char-fold-symmetric):
      New defcustoms.
      (char-fold-make-table): Use them.
      (char-fold-update-table): New function called at top-level.
      
      * test/lisp/char-fold-tests.el (char-fold--test-no-match-exactly)
      (char-fold--permutation): New functions.
      (char-fold--test-without-customization)
      (char-fold--test-with-customization): New tests.
      376f5df3
    • Robert Pluim's avatar
      Follow decomposition chains when constructing char-fold-table · f9337bc3
      Robert Pluim authored
      * lisp/char-fold.el (char-fold-make-table): Decompose the
      decomposition of each character, adding equivalences to the original
      character, until no more decompositions are left.
      f9337bc3
  7. 04 Jul, 2019 1 commit
  8. 26 Jun, 2019 1 commit
    • 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
  9. 03 Jun, 2019 1 commit
  10. 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
  11. 20 May, 2019 1 commit
  12. 01 Jan, 2019 1 commit
  13. 30 Oct, 2018 1 commit
    • Michael Heerdegen's avatar
      Don't quote self-quoting pcase patterns · 049bd5d2
      Michael Heerdegen authored
      * admin/bzrmerge.el:
      * lisp/char-fold.el:
      * lisp/dired.el:
      * lisp/emacs-lisp/derived.el:
      * lisp/emacs-lisp/easy-mmode.el:
      * lisp/emacs-lisp/easymenu.el:
      * lisp/emacs-lisp/eieio-core.el:
      * lisp/emacs-lisp/package.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/faces.el:
      * lisp/filesets.el:
      * lisp/progmodes/modula2.el:
      * lisp/progmodes/octave.el:
      * lisp/progmodes/opascal.el:
      * lisp/progmodes/perl-mode.el:
      * lisp/progmodes/prolog.el:
      * lisp/progmodes/ruby-mode.el:
      * lisp/progmodes/sh-script.el:
      * lisp/server.el:
      * lisp/subr.el:
      * lisp/textmodes/css-mode.el:
      * test/lisp/emacs-lisp/pcase-tests.el: Don't quote self-quoting
      'pcase' patterns.
      049bd5d2
  14. 06 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Rename src/regex.c to src/regex-emacs.c. · e5652268
      Paul Eggert authored
      This is in preparation for using Gnulib regex for etags,
      to avoid collisions in include directives.
      * src/regex-emacs.c: Rename from src/regex.c.
      * src/regex-emacs.h: Rename from src/regex.h.  All uses changed.
      * test/src/regex-emacs-tests.el: Rename from test/src/regex-tests.el.
      e5652268
  15. 01 Jan, 2018 1 commit
  16. 26 Nov, 2017 1 commit
  17. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  18. 01 Jan, 2017 1 commit
  19. 17 May, 2016 1 commit
  20. 01 Jan, 2016 1 commit
  21. 04 Dec, 2015 1 commit
    • Artur Malabarba's avatar
      * lisp/character-fold.el: Remove special case-folding support · 30f3432e
      Artur Malabarba authored
      (character-fold-to-regexp): Remove special code for
      case-folding.  Char-fold search still respects the
      `case-fold-search' variable (i.e., f matches F).  This only
      removes the code that was added to ensure that f also matched
      all chars that F matched.  For instance, after this commit, f
      no longer matches 𝔽.
      
      This was necessary because the logic created a regexp with
      2^(length of the string) redundant paths.  So, when a very
      long string "almost" matched, Emacs took a very long time to
      figure out that it didn't.  This became particularly relevant
      because isearch's lazy-highlight does a search bounded by (1-
      match-end) (which, in most circumstances, is a search that
      almost matches).  A recipe for this can be found in bug#22090.
      30f3432e
  22. 01 Dec, 2015 1 commit
    • Artur Malabarba's avatar
      * lisp/character-fold.el: Add back multi-char matching · 61a4b57f
      Artur Malabarba authored
      (character-fold-to-regexp): Uncomment recently commented code
      and make the algorithm "dummer" by not checking every possible
      combination.  This will miss some possible matches, but it
      greatly reduces regexp size.
      
      * test/automated/character-fold-tests.el
      (character-fold--test-fold-to-regexp): Comment out test of
      functionality no longer supported.
      61a4b57f
  23. 30 Nov, 2015 1 commit
  24. 29 Nov, 2015 1 commit
  25. 28 Nov, 2015 4 commits
  26. 27 Nov, 2015 3 commits
  27. 30 Oct, 2015 1 commit
  28. 28 Oct, 2015 2 commits
    • Artur Malabarba's avatar
      * lisp/character-fold.el (character-fold-to-regexp): Fix case · 020e8505
      Artur Malabarba authored
      where string ends in space
      020e8505
    • Artur Malabarba's avatar
      * lisp/character-fold.el: Make compatible with lax-whitespace · 4281f722
      Artur Malabarba authored
      (character-fold-to-regexp): Rework internals to play nice with
      lax-whitespacing.
      
      When the user types a space, we want to match the table entry for
      ?\s, which is generally a regexp like "[ ...]".  However, the
      `search-spaces-regexp' variable doesn't "see" spaces inside these
      regexp constructs, so we need to use "\\( \\|[ ...]\\)" instead (to
      manually expose a space).
      
      Furthermore, the lax search engine acts on a bunch of spaces, not
      on individual spaces, so if the string contains sequential spaces
      like "  ", we need to keep them grouped together like this:
      "\\(  \\|[ ...][ ...]\\)".
      4281f722
  29. 25 Oct, 2015 1 commit
    • Artur Malabarba's avatar
      * lisp/character-fold.el: Many improvements · f5f18f95
      Artur Malabarba authored
      (character-fold-search-forward, character-fold-search-backward):
      New command
      (character-fold-to-regexp): Remove lax-whitespace hack.
      (character-fold-search): Remove variable.  Only isearch and
      query-replace use char-folding, and they both have their own
      variables to configure that.
      f5f18f95
  30. 19 Aug, 2015 1 commit
    • Artur Malabarba's avatar
      * isearch.el (isearch-search-fun-default): Revert a5bdb872 · 7eed7399
      Artur Malabarba authored
      Remove usage of `isearch-lax-whitespace' inside the `iearch-word'
      clause of `isearch-search-fun-default'. That lax variable does not
      refer to lax-whitespacing.  Related to (bug#21777).
      This reverts commit a5bdb872.
      
      * character-fold.el (character-fold-search): Set to nil
      Default to nil for now, until someone implements proper
      lax-whitespacing with char-fold searching.
      7eed7399
  31. 05 Aug, 2015 1 commit
  32. 05 Jul, 2015 1 commit