In a shell-mode buffer with lots of "make" output, there will often appear commands with continuation lines. To use them as new input (e.g. while debugging some bit of makefile logic) requires either marking and copying multiple lines, or multiple invocations of comint-copy-old-input (C-RET in shell-mode) to get the complete command. The attached patch against f0971f94fe42224b4d85bb8b6188d5d805689ddf in master includes those continuation lines, which seems like a desirable bit of dwimmery. However, I may have misunderstood the purpose of the line-end-position vs. field-end thing. Also, this assumes shell syntax, so it may be more appropriate to leave comint-get-old-input-default alone and give shell-mode its own shell-get-old-input-default function. -- Bob Rogers http://www.rgrjr.com/