From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Change stars as read-hide-char Date: Mon, 30 Jul 2018 15:30:22 +0200 Message-ID: <874lgg97gx.fsf@gmail.com> References: <87fu01nq46.fsf@yandex.com> <87h8kh884v.fsf@gmail.com> <87bmapnlxs.fsf@yandex.com> <87d0v581pz.fsf@gmail.com> <877eldnffm.fsf@yandex.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 1532957314 762 195.159.176.226 (30 Jul 2018 13:28:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 13:28:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Colin Baxter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 15:28:30 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 1fk8Ds-0008Ul-TX for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 15:28:29 +0200 Original-Received: from localhost ([::1]:52642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk8Fz-0000vy-I3 for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 09:30:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk8Fp-0000ug-LQ for emacs-devel@gnu.org; Mon, 30 Jul 2018 09:30:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk8Fl-00047o-Mh for emacs-devel@gnu.org; Mon, 30 Jul 2018 09:30:29 -0400 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:39078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fk8Fl-00047Y-FY for emacs-devel@gnu.org; Mon, 30 Jul 2018 09:30:25 -0400 Original-Received: by mail-wm0-x232.google.com with SMTP id h20-v6so13739198wmb.4 for ; Mon, 30 Jul 2018 06:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=NAW1aFvoxwBb8etgfMZKBgHy065HM/NfhQpNsYq0Ddo=; b=TSYGfQDF9ONXhZYhxCecC4m4epkCKkmCD6eRVsn7OEOIL8cDUXnDxiOU3PU5e0wHiW e4dwS9dfnhVIwjrmrjRTCGhvelYG7In/7gnOb+VMqHiyZYIwC+jF2ltu5v1ZpUq4qrLQ J0iOzPp4Lclpea0jfW9upq5alaXOMxejCnQlk1jytB353eKengYXR9V5YUit3SgC/b32 tTOzjccEVRTa8oHtnC+p7al0l9PSCOVSw4HMAAoedbWjU0ObU0+7LsUNKv7nctPCnfjp MUhPxvb8il581lI5gjMsggOxUPt+waURlnxbx48+pz0qP/eEiKaW7d6cGyNtt8z+mgmS Wwmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=NAW1aFvoxwBb8etgfMZKBgHy065HM/NfhQpNsYq0Ddo=; b=K+W2WpgRBsSLNfodUIfyovU/8/clmczL0rn1WvSZeBcwLe1b4HJqKoHctqzXklJWQb 5SHb6ylWBXF9MfK3dFyNsymWSY1z4mL8Z00Tn+8OQmhqvmTRfr8fWly20GexRcWxqhEU G4zdE723OgC9oxq3nP/UII8MJv2kbMEGgESiN1u0yNGcuFgVI0MhkeBhjnTRlEe5TLhm KTJFv+LlOtidVoDZrPssyCweHYpAWJT0UiGv9WeJ2DcC4qKkiI3csjuzI1wAOV+CPBRj V8qFd3Or2zV5JyZ5Cu9sC/M3h26NHxfCKk9NXn93aoA5E/mRyav8XqOAc1pEFqV6efTX dr/Q== X-Gm-Message-State: AOUpUlFAfgCr/0t+9COMXD2UkmG9kp0qck5frP1hkxENI++2m4Ww1QCX qjCq6nVVbB68WCCWjDZB8nZtf6BB X-Google-Smtp-Source: AAOMgpd6ERj++DnIGc6L4aP5Xm1Du9rajvFxSKKJaORoiskaFYmpauDeR3wNyenagH3ge1Q/HYTHLQ== X-Received: by 2002:a7b:c017:: with SMTP id c23-v6mr15736586wmb.136.1532957424023; Mon, 30 Jul 2018 06:30:24 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n12-v6sm22514805wrm.62.2018.07.30.06.30.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 06:30:23 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <877eldnffm.fsf@yandex.com> (Colin Baxter's message of "Mon, 30 Jul 2018 12:14:37 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::232 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:227986 Archived-At: Colin Baxter writes: > > Hmm. Could you show a full transcript of what you=CA=BCre doing? Do= n=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? I suspect there are situations where having read-hide-char set causes things to be hidden that shouldn't be, hence it should only be set temporarily. Maybe someone on the list here knows. Robert