From: Kaushal Modi <kaushal.modi@gmail.com>
To: mvoteiza@udel.edu, 28688@debbugs.gnu.org
Subject: bug#28688: 26.0.60; Making ucs-names hash tables breaks aa2u, counsel packages
Date: Tue, 03 Oct 2017 15:40:46 +0000 [thread overview]
Message-ID: <CAFyQvY3Oqa1MdxsACeEgpKP9kQyts68XudLm28h6P8WgqnBr-w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]
Hi Mark,
Can you please review the aa2u package in GNU Elpa?
https://elpa.gnu.org/packages/ascii-art-to-unicode.html
In there, there is this function which triggers error after this change[1]:
(defun aa2u-1c (stringifier &rest components)
"Apply STRINGIFIER to COMPONENTS; return the UCS char w/ this name.
The char is a string (of length one), with two properties:
aa2u-stringifier
aa2u-components
Their values are STRINGIFIER and COMPONENTS, respectively."
(let ((s (string (cdr (assoc-string (apply stringifier components)
(ucs-names))))))
(propertize s
'aa2u-stringifier stringifier
'aa2u-components components)))
Can you please update the package so that it works whether ucs-names is a
hash-table or a list?
I also realized that it broke the counsel-unicode-char interactive function
in the counsel.el package too:
(defun counsel-unicode-char (&optional count)
"Insert COUNT copies of a Unicode character at point.
COUNT defaults to 1."
(interactive "p")
(let ((minibuffer-allow-text-properties t)
(ivy-sort-max-size (expt 256 6)))
(setq ivy-completion-beg (point))
(setq ivy-completion-end (point))
(ivy-read "Unicode name: "
(nreverse
(mapcar (lambda (x)
(propertize
(format "%06X % -60s%c" (cdr x) (car x) (cdr x))
'result (cdr x)))
(ucs-names)))
:action (lambda (char)
(with-ivy-window
(delete-region ivy-completion-beg
ivy-completion-end)
(setq ivy-completion-beg (point))
(insert-char (get-text-property 0 'result char)
count)
(setq ivy-completion-end (point))))
:history 'counsel-unicode-char-history
:sort t)))
[1]:
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-26&id=96c2c098aeed5c85733577ebbdaf33af6fbb59e9
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 3250 bytes --]
next reply other threads:[~2017-10-03 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 15:40 Kaushal Modi [this message]
2017-10-03 16:13 ` bug#28688: 26.0.60; Making ucs-names hash tables breaks aa2u, counsel packages Kaushal Modi
2017-10-03 16:47 ` Kaushal Modi
2017-10-03 21:42 ` Kaushal Modi
2017-10-04 6:03 ` Thien-Thi Nguyen
2017-10-04 8:20 ` Eli Zaretskii
2017-10-04 10:11 ` Thien-Thi Nguyen
2017-10-03 19:42 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY3Oqa1MdxsACeEgpKP9kQyts68XudLm28h6P8WgqnBr-w@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=28688@debbugs.gnu.org \
--cc=mvoteiza@udel.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.