GNU bug report logs -
#22147
Obsolete search-forward-lax-whitespace
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Fri, 11 Dec 2015 23:54:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
> Now I tried to reintroduce these lists with different names:
> ‘char-fold-include-alist’ with a list to add to default mappings and
> ‘char-fold-exclude-alist’ with a list to remove from default mappings
> taking into account all opinions expressed on emacs-devel for the
> default values:
Sounds good! Some minor comments:
> +(defun make-char-fold-table ()
Call this `char-fold--make-table'
> + (unless (and (assq char char-fold-exclude-alist)
> + (member (apply #'string decomp) (assq char char-fold-exclude-alist)))
This call to `member' will run dozens of times for each entry in
`char-fold-exclude-alist'. Maybe we should optimize those two repeated
forms: `(apply #'string decomp)' and `(assq char char-fold-exclude-alist)'.
> - (dolist (it '((?\" """ "“" "”" "”" "„" "⹂" "〞" "‟" "‟" "❞" "❝" "❠" "“" "„" "〝" "〟" "🙷" "🙶" "🙸" "«" "»")
> - (?' "❟" "❛" "❜" "‘" "’" "‚" "‛" "‚" "" "❮" "❯" "‹" "›")
> - (?` "❛" "‘" "‛" "" "❮" "‹")))
> + (dolist (it char-fold-include-alist)
> (let ((idx (car it))
The indentation looks wrong here.
This bug report was last modified 4 years and 308 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.