From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Operating the HIST feature of completing-read Date: Wed, 13 Jul 2022 05:04:46 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-06-11) Cc: Drew Adams , Help Gnu Emacs To: carlmarcos@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 09:42:40 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBX15-0005m5-Qk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 09:42:39 +0200 Original-Received: from localhost ([::1]:44816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBX14-00053d-Au for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 03:42:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBX0I-000524-65 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2022 03:41:50 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:39811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBX0G-0000kw-4K for help-gnu-emacs@gnu.org; Wed, 13 Jul 2022 03:41:49 -0400 Original-Received: from localhost ([::ffff:197.239.7.93]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000A3E19.0000000062CE7715.00000F97; Wed, 13 Jul 2022 00:41:03 -0700 Mail-Followup-To: carlmarcos@tutanota.com, Drew Adams , Help Gnu Emacs Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138454 Archived-At: * carlmarcos@tutanota.com [2022-07-13 04:16]: > > Jul 12, 2022, 16:40 by drew.adams@oracle.com: > > >> Does the history remember the user input associated > >> with each specific completing-read call? > >> > > > > Only each specific history variable. > > > > If each `completing-read' (or `read-from-minibuffer' > > or whatever) call used a different history variable > > then the answer to your question would be yes. > > > > Have done as suggested > > (defvar myhist nil >   "Stores previous minibuffer inputs so the user can reuse them.") > >   (let* ( (cseq '("bracemk" "expression" "extended" "mixed" "hlsexp" "disable")) >           (csel  (completing-read "Glowvis: " cseq nil t "mixed" myhist "extended")) > nn > When I go through the list in the minibuffer I am also getting the variable myhist > showing up but its value stays nil. It should be 'myhist instead of myhist in completing-read -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/