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.devel Subject: Re: New Package: sticky-shell Date: Fri, 30 Dec 2022 17:45:56 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33822"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Andrew De Angelis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 30 16:00:14 2022 Return-path: Envelope-to: ged-emacs-devel@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 1pBGrm-0008c6-Iw for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Dec 2022 16:00:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBGqb-0000VQ-JB; Fri, 30 Dec 2022 09:59:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBGqR-0000TW-3A for emacs-devel@gnu.org; Fri, 30 Dec 2022 09:58:51 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBGqP-0000bV-Hb for emacs-devel@gnu.org; Fri, 30 Dec 2022 09:58:50 -0500 Original-Received: from localhost ([::ffff:197.239.15.176]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000103842.0000000063AEFCA8.00001491; Fri, 30 Dec 2022 07:58:48 -0700 Mail-Followup-To: Andrew De Angelis , emacs-devel@gnu.org, monnier@iro.umontreal.ca 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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302109 Archived-At: * Andrew De Angelis [2022-12-28 18:35]: > @Jean Louis > Thank you. I still can't reproduce the error, but I understand its causes. > Line 72: > `(aset prompt (- (length prompt) 1) 0) ; remove the newline ending char` > was intended to remove the newline char that showed up in my header as > '^J'. There must be something different in your configuration that already > removes it from the header/prompt, so deleting it again caused the issue. > I've replaced this line with the more explicit: > `(string-trim-right prompt "[ \t\n\r]+"))) ; remove the newline ending char` > Please try out the latest code and > let me know your experience. Thank you. I do not see that problem anymore, though I tested it for only short time. Here are matches for `shell''of my custom.el if you wish to test if that fiddles with your package. 7 matches for "shell" in buffer: custom.el 78: '(async-shell-command-buffer 'new-buffer) 524: '(shell-command-prompt-show-cwd t) 525: '(shell-completion-execonly nil) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/