Subject: bug#32599: 25.2; Feature request: input PUA characters by name

From: Janusz S. Bień <[email-masked]>
Date: Tue, 26 Apr 2022 15:44:06 +0200

On Tue, Apr 26 2022 at 15:37 +02, Lars Ingebrigtsen wrote:
> Janusz S. Bień <[email-masked]> writes:
>
>>> That can be done today by just adding elements to the `ucs-names' hash
>>> table.
>>
>> Which Emacs version do you mean by "today"?
>
> Since about 2008.
>
>> What do you mean by "just adding"?
>>
>> What about an example, e.g. U+F159 LATIN ABBREVIATION SIGN SMALL DE?
>
> (unless ucs-names
>   (ucs-names))
> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
  puthash("LATIN ABBREVIATION SIGN SMALL DE" 61785 nil)
  (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v))
  (progn (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v)))
  eval((progn (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v))) t)
  elisp--eval-last-sexp(t)
  eval-last-sexp(t)
  eval-print-last-sexp(nil)
  funcall-interactively(eval-print-last-sexp nil)
  call-interactively(eval-print-last-sexp nil nil)
  command-execute(eval-print-last-sexp)
--8<---------------cut here---------------end--------------->8---

GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
cairo version 1.16.0) compiled locally.

JSB

-- 
             ,   
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien