1. 28 Jul, 2019 2 commits
  2. 23 Jul, 2019 1 commit
    • 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
  3. 04 Jul, 2019 1 commit
  4. 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
  5. 03 Jun, 2019 1 commit
  6. 01 Jan, 2019 1 commit
  7. 01 Jan, 2018 1 commit
  8. 26 Nov, 2017 1 commit
  9. 21 Oct, 2017 1 commit
    • Paul Eggert's avatar
      Prefer nil to (current-time) when either works · c75f505d
      Paul Eggert authored
      * doc/misc/gnus.texi (Category Syntax):
      * lisp/allout-widgets.el (allout-widgets-post-command-business):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay)
      (pulse-tick):
      * lisp/cedet/semantic.el (bovinate):
      * lisp/cedet/semantic/analyze.el:
      (semantic-analyze-current-symbol-default, semantic-adebug-analyze):
      * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-current-tag):
      * lisp/cedet/semantic/lex.el (semantic-lex-test):
      * lisp/cedet/semantic/symref/filter.el:
      (semantic-symref-test-count-hits-in-tag):
      * lisp/cedet/srecode/dictionary.el (srecode-adebug-dictionary):
      * lisp/cedet/srecode/map.el (srecode-adebug-maps):
      * lisp/desktop.el (desktop-create-buffer):
      * lisp/emacs-lisp/benchmark.el (benchmark-elapse):
      * lisp/emacs-lisp/elp.el (elp--make-wrapper):
      * lisp/epa.el (epa--show-key):
      * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p):
      * lisp/gnus/gnus-agent.el (gnus-agent-fetch-articles)
      (gnus-agent-expire-group-1, gnus-agent-store-article):
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data)
      (gnus-cloud-collect-full-newsrc):
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      * lisp/gnus/gnus-html.el (gnus-html-cache-expired):
      * lisp/gnus/gnus-score.el (gnus-score-load-file)
      (gnus-decay-scores):
      * lisp/gnus/nndiary.el (nndiary-expired-article-p):
      * lisp/gnus/nnmail.el (nnmail-expired-article-p):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/gnus/score-mode.el (gnus-score-edit-insert-date):
      * lisp/image/gravatar.el (gravatar-cache-expired):
      * lisp/net/newst-backend.el (newsticker--image-get)
      (newsticker--cache-mark-expired):
      * lisp/nxml/rng-maint.el (rng-time-function):
      * lisp/org/org-agenda.el (org-agenda-to-appt):
      * lisp/org/org-clock.el (org-clock-resolve-clock)
      (org-clock-resolve, org-resolve-clocks-if-idle):
      * lisp/org/org-colview.el (org-columns-edit-value, org-columns)
      (org-columns-compute-all, org-agenda-columns):
      * lisp/org/org-element.el (org-element--cache-interrupt-p)
      (org-element--cache-sync):
      * lisp/org/org-habit.el (org-habit-get-faces)
      (org-habit-insert-consistency-graphs):
      * lisp/org/org-indent.el (org-indent-add-properties):
      * lisp/org/org-timer.el (org-timer-start)
      (org-timer-pause-or-continue, org-timer-seconds)
      (org-timer-show-remaining-time, org-timer-set-timer):
      * lisp/org/org.el (org-babel-load-file, org-current-time)
      (org-today, org-auto-repeat-maybe, org-read-date-analyze)
      (org-small-year-to-year, org-goto-calendar):
      * lisp/org/ox.el (org-export-insert-default-template):
      * lisp/time.el (emacs-uptime):
      * lisp/type-break.el (type-break-mode, type-break)
      (type-break-time-warning-schedule, type-break-check):
      * lisp/url/url-cache.el (url-cache-expired):
      * lisp/url/url.el (url-retrieve-synchronously):
      * test/lisp/char-fold-tests.el (char-fold--speed-test):
      * test/manual/cedet/semantic-ia-utest.el:
      (semantic-symref-test-count-hits-in-tag):
      * test/manual/cedet/semantic-tests.el (semantic-idle-pnf-test)
      (semantic-lex-test-full-depth):
      Use nil instead of (current-time) where either will do, as nil is
      a bit more efficient and should have less timing error.
      c75f505d
  10. 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
  11. 06 Apr, 2017 1 commit
    • Michal Nazarewicz's avatar
      Support casing characters which map into multiple code points (bug#24603) · b3b9b258
      Michal Nazarewicz authored
      Implement unconditional special casing rules defined in Unicode standard.
      
      Among other things, they deal with cases when a single code point is
      replaced by multiple ones because single character does not exist (e.g.
      ‘fi’ ligature turning into ‘FL’) or is not commonly used (e.g. ß turning
      into SS).
      
      * admin/unidata/SpecialCasing.txt: New data file pulled from Unicode
      standard distribution.
      * admin/unidata/README: Mention SpecialCasing.txt.
      
      * admin/unidata/unidata-get.el (unidata-gen-table-special-casing,
      unidata-gen-table-special-casing--do-load): New functions generating
      ‘special-uppercase’, ‘special-lowercase’ and ‘special-titlecase’
      character Unicode properties built from the SpecialCasing.txt Unicode
      data file.
      
      * src/casefiddle.c (struct casing_str_buf): New structure for
      representing short strings used to handle one-to-many character
      mappings.
      
      (case_character_imlp): New function which can handle one-to-many
      character mappings.
      (case_character, case_single_character): Wrappers for the above
      functions.  The former may map one character to multiple (or no)
      code points while the latter does what the former used to do (i.e.
      handles one-to-one mappings only).
      
      (do_casify_natnum, do_casify_unibyte_string,
      do_casify_unibyte_region): Use case_single_character.
      (do_casify_multibyte_string, do_casify_multibyte_region): Support new
      features of case_character.
      * (do_casify_region): Updated to reflact do_casify_multibyte_string
      changes.
      
      (casify_word): Handle situation when one character-length of a word
      can change affecting where end of the word is.
      
      (upcase, capitalize, upcase-initials): Update documentation to mention
      limitations when working on characters.
      
      * test/src/casefiddle-tests.el (casefiddle-tests-char-properties):
      Add test cases for the newly introduced character properties.
      (casefiddle-tests-casing): Update test cases which are now passing.
      
      * test/lisp/char-fold-tests.el (char-fold--ascii-upcase,
      char-fold--ascii-downcase): New functions which behave like old ‘upcase’
      and ‘downcase’.
      (char-fold--test-match-exactly): Use the new functions.  This is needed
      because otherwise fi and similar characters are turned into their multi-
      -character representation.
      
      * doc/lispref/strings.texi: Describe issue with casing characters versus
      strings.
      * doc/lispref/nonascii.texi: Describe the new character properties.
      b3b9b258