unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Colin Baxter <m43cap@yandex.com>
Cc: emacs-devel@gnu.org
Subject: Re: Change stars as read-hide-char
Date: Mon, 30 Jul 2018 12:19:52 +0200	[thread overview]
Message-ID: <87d0v581pz.fsf@gmail.com> (raw)
In-Reply-To: <87bmapnlxs.fsf@yandex.com> (Colin Baxter's message of "Mon, 30 Jul 2018 09:54:07 +0100")

Colin Baxter <m43cap@yandex.com> writes:

>>>>>> Robert Pluim <rpluim@gmail.com> writes:
>
>     > Colin Baxter <m43cap@yandex.com> 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	other threads:[~2018-07-30 10:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30  7:23 Change stars as read-hide-char Colin Baxter
2018-07-30  8:01 ` Robert Pluim
2018-07-30  8:54   ` Colin Baxter
2018-07-30 10:19     ` Robert Pluim [this message]
2018-07-30 11:14       ` Colin Baxter
2018-07-30 13:30         ` Robert Pluim

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d0v581pz.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=m43cap@yandex.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).