From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: Change stars as read-hide-char Date: Mon, 30 Jul 2018 12:14:37 +0100 Message-ID: <877eldnffm.fsf@yandex.com> References: <87fu01nq46.fsf@yandex.com> <87h8kh884v.fsf@gmail.com> <87bmapnlxs.fsf@yandex.com> <87d0v581pz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532949163 2945 195.159.176.226 (30 Jul 2018 11:12:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 11:12:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 13:12:39 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fk66R-0000aP-2q for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 13:12:39 +0200 Original-Received: from localhost ([::1]:51932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk68W-00084b-Gw for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 07:14:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk68Q-0007zt-Aq for emacs-devel@gnu.org; Mon, 30 Jul 2018 07:14:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk68P-0005vf-BC for emacs-devel@gnu.org; Mon, 30 Jul 2018 07:14:42 -0400 Original-Received: from forward101p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:101]:49438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk68O-0005uz-R8 for emacs-devel@gnu.org; Mon, 30 Jul 2018 07:14:41 -0400 Original-Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 11D694E84C65 for ; Mon, 30 Jul 2018 14:14:39 +0300 (MSK) Original-Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bnHtuHBz9k-EcZGVAUn; Mon, 30 Jul 2018 14:14:39 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1532949279; bh=u/7w059SipRLXG34XKM9K3CVeKwhpWb0pRXLAffka7g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=xuoZ2JNWnF5Qqv8DnB1uZOKEdvK0T45tzG+KWvgJH3rwylhpmrHnj6O76BeLjAGNl ybSY1p+o/y+s8IBDsyreYGb7z3Q3IcW6mExGl+G4JM61l/SNHAutR/rUYUTIAe7ScU 3EYWjWMp4QmcVbp+TezCbBA2AKNUp2fo0F2QzhU4= Original-Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id RjGugx6ea9-EbfigOje; Mon, 30 Jul 2018 14:14:38 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1532949278; bh=u/7w059SipRLXG34XKM9K3CVeKwhpWb0pRXLAffka7g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=bNOt56O2wLEtkQoCNhjCnJ6ziTkAUKHfbB5gFtTDclc1JwhxIPeWSymsO0q4GH51b pfH7MgBR5ALRMuaxXxCLBjqoVR+a/OH32jW72f1q0zr09dzwFV4ihzUkvVWwWZ/r3v sWOexGJUEaGmKDBmDFIkysrguAYNljktnx/Jd6xU= Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.com X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: <87d0v581pz.fsf@gmail.com> (Robert Pluim's message of "Mon, 30 Jul 2018 12:19:52 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAACwAAAAMCAIAAACWSshgAAAABmJLR0QA/wD/AP+gvaeTAAAA 6UlEQVQ4je2TMU4EMRAEa2a9a53uBxDyCkSIeBEpISkvAkLEKwj5A7C2m4ATyc5cgBARHThwq2ba UtseTiYztrofZ3fjIjDgdno899fQeh6nN/0ytK796cpftvcSZedMEVPNMA/HzdgSGjCTUtVsH722 G2VnzJG34CjeVd338SJqTi0JtYpk2N+qrEKR0STUQ6ZJHyHzI6qJ0iBMMb6PjTpqSYiOMmpASDUo CEWdkJJ0kCEciJhSRn39jrCYFfvdYla3/2IepQ7FVOR1JJJxaM1C5FRPqA7lXXjUiVUYWf2OKaNW 8RY5Q3wC+LmDB4lnxS0AAAAASUVORK5CYII= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a02:6b8:0:1472:2741:0:8b7:101 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227982 Archived-At: Dear Robert >>>>> Robert Pluim writes: > Colin Baxter writes: >>>>>>> Robert Pluim writes: >>=20 >> > Colin Baxter 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. >> >>=20 >> >> 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 >> >>=20 >> >> (let (read-hide-char) "?.") >> >>=20 >>=20 >> > 'let' specifies a list of variable bindings, and you want the > >> character '.', not a string containing '?' and '.', so it=CA=BCs: >>=20 >> > (let ((read-hide-char ?. )) (message "%c" read-hide-char)) >>=20 >> Unfortunately >>=20 >> (let ((read-hide-char ?. )) (message "%c" read-hide-char)) >>=20 >> also doesn't work. It gives the error >>=20 >> Wrong type argument: characterp, "?." >>=20 >> 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=CA=BCre doing? Don= =CA=BCt > 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 ?.) Ok, that explains things I think. At the beginning, I wanted to set `.' as the read-hide-char in my emacs-init file, but the doc string for read-hide-char says it should never be set globally. I took that to mean never to set via a `setq'. This seemed to be confirmed in comments of the lisp/subr.el file, where using a let-bind is suggested. Hence my efforts at writing a `let' to my emacs-init, which maybe were a little naive. The (setq read-hide-char ?.) does indeed work, and seems to do so without creating errors elsewhere. So I'll leave it in my ~/.emacs for now. However, I am now curious as to what the sentence, `This variable should never be set globally.' means in the doc-string for `read-hide-char'. Perhaps the doc-string could be amplified slightly? Thank you very much for your help. Best wishes, Colin.