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
> IIUC, Drew was offering an implementation of symmetric char folding,
> whereas the release blocking aspect of this bug is to add a
> char-folding-ad-hoc variable.
That makes sense.
That too is in `character-fold+.el', which I attached to my previous message.
Dunno whether what I have there is exactly what you want/need. This is it:
(defcustom char-fold-ad-hoc '((?\" """ "“" "”" "”" "„" "⹂" "〞" "‟" "‟" "❞" "❝"
"❠" "“" "„" "〝" "〟" "🙷" "🙶" "🙸" "«" "»")
(?' "❟" "❛" "❜" "‘" "’" "‚" "‛" "‚" "" "❮" "❯" "‹" "›")
(?` "❛" "‘" "‛" "" "❮" "‹"))
"Ad hoc character foldings.
Each entry is a list of a character and the strings that fold into it.
The default value includes those ad hoc foldings provided by vanilla
Emacs."
:set (lambda (sym defs)
(custom-set-default sym defs)
(update-char-fold-table))
:type '(repeat (cons
(character :tag "Fold to character")
(repeat (string :tag "Fold from string"))))
:group 'isearch)
And this is where it is used:
;; Add some manual entries.
(dolist (it char-fold-ad-hoc)
(let ((idx (car it))
(chr-strgs (cdr it)))
(aset equiv idx (append chr-strgs (aref equiv idx)))))
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.