From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Re: Bug: :session doesn't honor :verbatim [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/26.0.50/lisp/org/)] Date: Sun, 16 Apr 2017 23:46:30 +0200 Message-ID: <87efwsnhzd.fsf@detlef> References: <877f2kwxmv.fsf@detlef> <878tn0r53m.fsf@tils.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czs0P-0000Lm-EW for emacs-orgmode@gnu.org; Sun, 16 Apr 2017 17:46:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czs0K-0005hR-JR for emacs-orgmode@gnu.org; Sun, 16 Apr 2017 17:46:49 -0400 Received: from mout.gmx.net ([212.227.15.15]:59232) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1czs0K-0005gi-8w for emacs-orgmode@gnu.org; Sun, 16 Apr 2017 17:46:44 -0400 In-Reply-To: (Charles C. Berry's message of "Sun, 16 Apr 2017 10:19:11 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Charles C. Berry" Cc: emacs-orgmode@gnu.org, Tilmann Singer "Charles C. Berry" writes: > Michael might get some relief by altering `shell-prompt-pattern' whose > default value is > > "^[^#$%>\n]*[#$%>] *" > > is tricked by the embedded `%' in the output lines > > If you know the prompt will not contain `%', you could delete that. > > Changing the asterisk to a plus might work (untested) or maybe adding > a blank in the first (negated) char class (also untested). Or if you > know what the prompt will be literally, use that: "^My-prompt-[$] *" I've eval'ed (setq shell-prompt-pattern "^[^#$>\n]*[#$>] *") , this helps. Thanks for the tip. However, I don't want to change this globally. Is there an org mean to change this locally just for the session? Maybe the shell prompt could be customizable for a session in ob-sh.el? > HTH, > > Chuck Best regards, Michael.