From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#16012: Multi-line shell commands appear as one-liners in the history Date: Mon, 25 Aug 2014 20:45:52 +0200 Organization: Sebastien Vauban Message-ID: <861ts4qufz.fsf@somewhere.org> References: <86eh5yb4ls.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408992446 17454 80.91.229.3 (25 Aug 2014 18:47:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2014 18:47:26 +0000 (UTC) To: 16012-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Aug 25 20:47:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XLzIV-0003Zm-7b for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Aug 2014 20:47:19 +0200 Original-Received: from localhost ([::1]:50126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLzIU-00083q-Tw for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Aug 2014 14:47:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLzIL-00081t-Eu for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 25 Aug 2014 14:47:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLzIF-0004ul-6g for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 25 Aug 2014 14:47:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLzIF-0004ug-37 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 25 Aug 2014 14:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XLzIE-0007et-Ik for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 25 Aug 2014 14:47:02 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org In-Reply-To: <86eh5yb4ls.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org> Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Mon, 25 Aug 2014 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 16012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16012-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B16012.140899241229414 (code B ref 16012); Mon, 25 Aug 2014 18:47:02 +0000 Original-Received: (at 16012) by debbugs.gnu.org; 25 Aug 2014 18:46:52 +0000 Original-Received: from localhost ([127.0.0.1]:51971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLzI3-0007eL-9K for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 25 Aug 2014 14:46:51 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:47009 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLzHy-0007dv-8l for 16012-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 25 Aug 2014 14:46:47 -0400 Original-Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (ip-83-101-44-240.customer.schedom-europe.net [83.101.44.240]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id 78E3A501300 for <16012-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org>; Mon, 25 Aug 2014 20:46:39 +0200 (CEST) X-Url: Under construction... X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:92671 Archived-At: Hello, >> ls \ >> *.html >> >> Recalling the previous command will just show "*.html", not "ls >>\\n*.html". > > Right, currently shell-mode has no idea that these were two lines of > the same command. The semantics of a terminating backslash completely > eludes it. > >> Is there a solution to this? > > A patch for shell.el would probably do it, assuming it's the right > patch ;-) I've just read notes about "Comint Patch": =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 If you enter a multi-line SQL statement in an SQLi buffer, you = can =E2=94=82 retrieve it as a multi-line command from the MinibufferHistory.= Not so =E2=94=82 when you exit Emacs and restart it at a later date: As you exit= SQLi =E2=94=82 mode the command history is written to a file; when you enter S= QLi mode =E2=94=82 again the history is loaded one command per line. If you entered =E2=94=82 multi-line commands, each line of those commands will end up as= one =E2=94=82 command in the input history of your new session. =E2=94=82=20 =E2=94=82 This patch will be in Emacs 21. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 See http://www.emacswiki.org/emacs-es/ComintPatched Aren't we talking of this bug? If yes, why isn't it yet in Emacs, then? Best regards, Seb --=20 Sebastien Vauban