unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode
@ 2016-11-24 10:19 Andreas Röhler
  2016-11-25  0:48 ` npostavs
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Röhler @ 2016-11-24 10:19 UTC (permalink / raw)
  To: 25013

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode
  2016-11-24 10:19 bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode Andreas Röhler
@ 2016-11-25  0:48 ` npostavs
  2016-11-27 14:48   ` Andreas Röhler
  0 siblings, 1 reply; 4+ messages in thread
From: npostavs @ 2016-11-25  0:48 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 25013

tags 25013 notabug
quit

Andreas Röhler <andreas.roehler@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode
  2016-11-25  0:48 ` npostavs
@ 2016-11-27 14:48   ` Andreas Röhler
  2016-11-27 14:50     ` npostavs
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Röhler @ 2016-11-27 14:48 UTC (permalink / raw)
  To: npostavs; +Cc: 25013



On 25.11.2016 01:48, npostavs@users.sourceforge.net wrote:
> tags 25013 notabug
> quit
>
> Andreas Röhler <andreas.roehler@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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode
  2016-11-27 14:48   ` Andreas Röhler
@ 2016-11-27 14:50     ` npostavs
  0 siblings, 0 replies; 4+ messages in thread
From: npostavs @ 2016-11-27 14:50 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 25013

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

> On 25.11.2016 01:48, npostavs@users.sourceforge.net wrote:
>>
>> Andreas Röhler <andreas.roehler@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-27 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-24 10:19 bug#25013: 26.0.50; parse-partial-sexp ignores string in shell-mode Andreas Röhler
2016-11-25  0:48 ` npostavs
2016-11-27 14:48   ` Andreas Röhler
2016-11-27 14:50     ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).