GNU bug report logs - #25013
26.0.50; parse-partial-sexp ignores string in shell-mode

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Thu, 24 Nov 2016 10:12:02 UTC

Severity: minor

Tags: notabug

Found in version 26.0.50

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25013 in the body.
You can then email your comments to 25013 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25013; Package emacs. (Thu, 24 Nov 2016 10:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Nov 2016 10:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; parse-partial-sexp ignores string in shell-mode
Date: Thu, 24 Nov 2016 11:19:56 +0100
M-xshell RET
Insert an unfinished string like

"git commit -m 'My message"

From scratch-buffer call

(let ()
  (set-buffer "*shell*")
  (goto-char (point-max))
  (message "%s" (point))
  (parse-partial-sexp (point-min) (point)))

Tellsnot being in string.

In GNU Emacs 26.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2016-11-15




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25013; Package emacs. (Fri, 25 Nov 2016 00:49:01 GMT) Full text and rfc822 format available.

Message #8 received at 25013 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 25013 <at> debbugs.gnu.org
Subject: Re: bug#25013: 26.0.50;
 parse-partial-sexp ignores string in shell-mode
Date: Thu, 24 Nov 2016 19:48:57 -0500
tags 25013 notabug
quit

Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> M-xshell RET
> Insert an unfinished string like
>
> "git commit -m 'My message"
>
> From scratch-buffer call
>
> (let ()
>   (set-buffer "*shell*")
>   (goto-char (point-max))
>   (message "%s" (point))
>   (parse-partial-sexp (point-min) (point)))
>
> Tellsnot being in string.

That's because shell-mode doesn't define any syntax for strings.




Added tag(s) notabug. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 25 Nov 2016 00:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25013; Package emacs. (Sun, 27 Nov 2016 14:41:02 GMT) Full text and rfc822 format available.

Message #13 received at 25013 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: npostavs <at> users.sourceforge.net
Cc: 25013 <at> debbugs.gnu.org
Subject: Re: bug#25013: 26.0.50; parse-partial-sexp ignores string in
 shell-mode
Date: Sun, 27 Nov 2016 15:48:46 +0100

On 25.11.2016 01:48, npostavs <at> users.sourceforge.net wrote:
> tags 25013 notabug
> quit
>
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> M-xshell RET
>> Insert an unfinished string like
>>
>> "git commit -m 'My message"
>>
>>  From scratch-buffer call
>>
>> (let ()
>>    (set-buffer "*shell*")
>>    (goto-char (point-max))
>>    (message "%s" (point))
>>    (parse-partial-sexp (point-min) (point)))
>>
>> Tellsnot being in string.
> That's because shell-mode doesn't define any syntax for strings.
>

So strings in shell-scripts are evil? Other reasons for Emacs to refuse 
dealing with it?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25013; Package emacs. (Sun, 27 Nov 2016 14:50:01 GMT) Full text and rfc822 format available.

Message #16 received at 25013 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 25013 <at> debbugs.gnu.org
Subject: Re: bug#25013: 26.0.50;
 parse-partial-sexp ignores string in shell-mode
Date: Sun, 27 Nov 2016 09:50:15 -0500
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> On 25.11.2016 01:48, npostavs <at> users.sourceforge.net wrote:
>>
>> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>>
>>> M-xshell RET
>>> Insert an unfinished string like
>>>
>>> "git commit -m 'My message"
[...]
>>>
>>> Tellsnot being in string.
>> That's because shell-mode doesn't define any syntax for strings.
>>
>
> So strings in shell-scripts are evil?

I don't understand what you mean by "evil" in this context.  Note that
shell-mode doesn't handle shell scripts, but rather interactive shell
sessions.  Use sh-mode for scripts.




bug closed, send any further explanations to 25013 <at> debbugs.gnu.org and Andreas Röhler <andreas.roehler <at> easy-emacs.de> Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 26 Mar 2017 04:13:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Apr 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.