emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change stars as read-hide-char


From: Robert Pluim
Subject: Re: Change stars as read-hide-char
Date: Mon, 30 Jul 2018 12:19:52 +0200

Colin Baxter <address@hidden> writes:

>>>>>> Robert Pluim <address@hidden> writes:
>
>     > Colin Baxter <address@hidden> writes:
>     >> My apologies for posting here, I can't get posting rights at
>     >> gmane.emacs.help. My `return-confirmation' emails get bounced at
>     >> that news-group.
>     >> 
>     >> The development emacs-27 version recently changed the default
>     >> character seen when entering a password from `.' to `*'. I want
>     >> to get back to the old default, but
>     >> 
>     >> (let (read-hide-char) "?.")
>     >> 
>
>     > 'let' specifies a list of variable bindings, and you want the
>     > character '.', not a string containing '?' and '.', so itʼs:
>
>     > (let ((read-hide-char ?. )) (message "%c" read-hide-char))
>
> Unfortunately
>
> (let ((read-hide-char ?. ))
>      (message "%c" read-hide-char))
>
> also doesn't work. It gives the error
>
> Wrong type argument: characterp, "?."
>
> as soon as I enter a password. The same error occurs if I use
> `emacs -q'. Could this be a bug?

Hmm. Could you show a full transcript of what youʼre doing? Donʼt
forget that the let-binding is only valid within the let, not for the
entire session. If you want it to valid all the time you'll need to do

(setq read-hide-char ?.)

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]