GNU bug report logs - #60587
30.0.50; Info pages are lacking links from symbol names to the symbol's help documentation

Previous Next

Package: emacs;

Reported by: "H. Dieter Wilhelm" <dieter <at> duenenhof-wilhelm.de>

Date: Thu, 5 Jan 2023 23:48:01 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Full log


Message #157 received at 60587 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: "H. Dieter Wilhelm" <dieter <at> duenenhof-wilhelm.de>, 60587 <at> debbugs.gnu.org,
 juri <at> jurta.org, monnier <at> iro.umontreal.ca, eliz <at> gnu.org, drew.adams <at> oracle.com
Subject: Re: bug#60587: Patch for adding links to symbols' help documentation
Date: Wed, 15 Feb 2023 13:42:36 +0000
[Message part 1 (text/plain, inline)]
>>> No, not any longer 😊.
>> 
>> Can someone tell me an easy way to make that particular diamond 
>> character display as the ASCII sequence `;-)'?
>
> (defun set-character-display (char repl)
>  (let ((c (char-from-name char)))
>    (when (and c (stringp repl))
>      (aset (or standard-display-table
> 		(setq standard-display-table (make-display-table)))
> 	    c
> 	    (vconcat
> 	     (mapcar
> 	      (lambda (char) (make-glyph-code char 'homoglyph))
> 	      repl))))))
>
> (set-character-display "SMILING FACE WITH SMILING EYES" ":-)")
>

Or, if you don't want to use the homoglyph face for such replacements:

(defun set-character-display (char repl)
  (let ((c (char-from-name char)))
    (when (and c (stringp repl))
      (aset (or standard-display-table
             (setq standard-display-table (make-display-table)))
         c (vconcat repl)))))

(set-character-display "SMILING FACE WITH SMILING EYES" ":-)")

This bug report was last modified 2 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.