GNU bug report logs -
#3735
shell-mode editing, movement, and command entry broken by prompt/output changes
Previous Next
Reported by: "Daniel B." <dsb <at> smart.net>
Date: Wed, 1 Jul 2009 19:55:05 UTC
Severity: normal
Tags: moreinfo
Merged with 18135
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
miha <at> kamnitnik.top writes:
> Reproducer:
>
> - copy " -la" into kill ring
> - type "echo ls" into M-x shell
> - (Shell gives output line "ls".)
> - Go up to output line "ls" (C-p).
> - yank " -la"
> - press C-b
> - the line now "ls -la" with point after "l"
> - press RET
>
> Only " -la" is sent to the process instead of "ls -la"
Thanks; with that I'm also able to reproduce the problem.
> I am willing to write up a patch to fix this. I'm thinking of having
> comint-mode register a function in after-change-functions to mark text
> inserted in the 'output' field as 'output'. Would this be okay or are
> there any obvious flaws with this approach?
I think that sounds like a promising approach, but I wonder whether
something could be done with rear-nonsticky here. `field' isn't
rear-sticky here for probably good reasons, but perhaps something could
be tweaked there? (I haven't actually tried, though.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.