all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer
@ 2018-09-06 15:07 Alex Branham
  2018-09-06 17:49 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Branham @ 2018-09-06 15:07 UTC (permalink / raw)
  To: 32647

From emacs -Q:

M-x shell
M-RET

and it prints "command dirs" literally into the shell buffer.

That comes from this line:

      ;; If the process echoes commands, don't insert a fake command in
      ;; the buffer or it will appear twice.
      (unless comint-process-echoes
	(insert shell-dirstack-query) (insert "\n"))


and shell-dirstack-query is defined above as:

    (defvar shell-dirstack-query nil
      "Command used by `shell-resync-dirs' to query the shell.")


Thanks,
Alex





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

* bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer
  2018-09-06 15:07 bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer Alex Branham
@ 2018-09-06 17:49 ` Glenn Morris
  2018-09-06 17:52   ` Alex Branham
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2018-09-06 17:49 UTC (permalink / raw)
  To: Alex Branham; +Cc: 32647

Alex Branham wrote:

> From emacs -Q:
>
> M-x shell
> M-RET
>
> and it prints "command dirs" literally into the shell buffer.

Yes, that's how it works. I don't see how this is a bug?





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

* bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer
  2018-09-06 17:49 ` Glenn Morris
@ 2018-09-06 17:52   ` Alex Branham
  2018-09-07 17:33     ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Branham @ 2018-09-06 17:52 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 32647


On Thu 06 Sep 2018 at 12:49, Glenn Morris <rgm@gnu.org> wrote:

> Alex Branham wrote:
>
>> From emacs -Q:
>>
>> M-x shell
>> M-RET
>>
>> and it prints "command dirs" literally into the shell buffer.
>
> Yes, that's how it works. I don't see how this is a bug?

Maybe I'm misunderstanding what M-RET does, but shouldn't it do that invisibly? 





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

* bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer
  2018-09-06 17:52   ` Alex Branham
@ 2018-09-07 17:33     ` Glenn Morris
  2018-09-07 17:55       ` Alex Branham
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2018-09-07 17:33 UTC (permalink / raw)
  To: Alex Branham; +Cc: 32647

Alex Branham wrote:

> Maybe I'm misunderstanding what M-RET does, but shouldn't it do that
> invisibly?

No, I don't think so. All it does is run dirs and parse the output as it
appears in the shell buffer. It would look odd to have the shell output
without the input being visible. It's behaved like this "forever".





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

* bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer
  2018-09-07 17:33     ` Glenn Morris
@ 2018-09-07 17:55       ` Alex Branham
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Branham @ 2018-09-07 17:55 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 32647, 32647-done


On Fri 07 Sep 2018 at 12:33, Glenn Morris <rgm@gnu.org> wrote:

> Alex Branham wrote:
>
>> Maybe I'm misunderstanding what M-RET does, but shouldn't it do that
>> invisibly?
>
> No, I don't think so. All it does is run dirs and parse the output as it
> appears in the shell buffer. It would look odd to have the shell output
> without the input being visible. It's behaved like this "forever".

Alrighty, I'm closing this report then. Thanks!





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

end of thread, other threads:[~2018-09-07 17:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-06 15:07 bug#32647: 26.1; shell-resync-dirs prints "command dirs" in the buffer Alex Branham
2018-09-06 17:49 ` Glenn Morris
2018-09-06 17:52   ` Alex Branham
2018-09-07 17:33     ` Glenn Morris
2018-09-07 17:55       ` Alex Branham

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.