Subject: bug#5976: 23.1.93; yanking shell commands - converted to single lines

From: David Reitter <[email-masked]>
Date: Mon, 19 Apr 2010 15:28:08 -0400

On Apr 19, 2010, at 3:12 PM, Warren Harris <Warren Harris <[email-masked]> wrote:

One more...

In the shell mode, when yanking things back from the history (M-p), I've noticed that any multi-line commands that were previously submitted (e.g. via paste) are now yanked back as individual lines rather than full commands. This only seems to happen for things in the history prior to when the shell is started.

To reproduce:

1. cut the following command:

echo 'hello
world'

2. M-x shell
3. paste and hit return
4. see the following echoed:

hello
world

5. C-x k (kill shell)
6. M-x shell
7. M-p (yank back last command)
8. see that you only get:

world'

9. M-p (yank again)
10. see that you only get:

echo 'hello

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

Enter your bug report here.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
  `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Applications/Aquamacs.app/Contents/Resources/etc/DEBUG.

In GNU Emacs 23.1.93.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
of 2010-03-09 on braeburn.aquamacs.org - Aquamacs Distribution 2.0preview5
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns' '--without-x' 'CFLAGS=-arch i386 -arch ppc' 'LDFLAGS=-arch i386 -arch ppc''

Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
shell-dirtrack-mode: t
savehist-mode: t
smart-frame-positioning-mode: t
aquamacs-autoface-mode: t
recentf-mode: t
osx-key-mode: t
show-paren-mode: t
delete-selection-mode: t
pc-selection-mode: t
cua-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
^X 3 ^X ^F ^G <f5> C D SPC P R O <tab> D I M <tab>
<return> ^X ^F <return> ^X K <return> ^X ^F D I M <tab>
H I <tab> . <tab> <return> ⌥V ⌥V ⌥V ⌥V ⌥V ^V ^V ^V
^V ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N
^N ^N ^N ^N ^N ^P ^P ^P ^P ^P ^P ^⌥F ^F ^S ^W ^S ^S
^R ^R ^A ^N ^⌥F ^F ^S ^W ^S ^S ^S ^R ^R ^R ^R ^R ^A
^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P
^P ^P ^P ^P ^P ^P ^P ^P ^P ^N ^N ^N ^N ^N ^N ^N ^N
^N ^N ^N ^N ^N ^N ^N ^N ^N ^⌥F ^F ^S ^W ^S ^S ^A ^N
^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N ^N
^L ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P ^P
^P ^P ^P ^P ^R ^R <wheel-up> <double-wheel-up> <wheel-up>
<double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <wheel-down> <wheel-down> <wheel-down>
<double-wheel-down> <triple-wheel-down> <wheel-down>
<double-wheel-down> <triple-wheel-down> <down-mouse-1>
<mouse-1> ^S ^W ^S ^S ^S ^S ^S ^A ^X ^B ^X O ^N ^N
^P ^P F ^X ^F M Q <tab> R E <tab> . <tab> <return>
^S ^S ^S ^A <f5> <f1> <return> <f1> M A K E <return>
⌥P ⌥P ⌥P ⌥P ⌥P ⌥P ⌥N <ns-application-activated> <menu-bar>
<help-menu> <bug-diagnosis> <send-emacs-bug-report

Recent messages:
Compilation finished
(No files need saving) [2 times]
Compilation finished
History item: 1
History item: 2
History item: 3
History item: 4
History item: 5
History item: 6
History item: 5

Load-path shadows:
~/.emacs.d/site-lisp/ruby/inf-ruby hides ~/.emacs.d/site-lisp/inf-ruby
~/.emacs.d/site-lisp/uniquify hides /Applications/Aquamacs.app/Contents/Resources/lisp/uniquify
~/.emacs.d/site-lisp/mouse hides /Applications/Aquamacs.app/Contents/Resources/lisp/mouse
~/.emacs.d/site-lisp/ruby/ruby-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/progmodes/ruby-mode
~/.emacs.d/site-lisp/snippet hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/snippet
~/.emacs.d/site-lisp/ruby/rubydb3x hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/rubydb3x
~/.emacs.d/site-lisp/ruby/ruby-electric hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/ruby-electric
~/.emacs.d/site-lisp/php-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/php-mode
~/.emacs.d/site-lisp/javascript-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/javascript-mode
~/.emacs.d/site-lisp/ruby/inf-ruby hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/inf-ruby
~/.emacs.d/site-lisp/find-recursive hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/find-recursive
~/.emacs.d/site-lisp/rails/untabify-file hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/untabify-file
~/.emacs.d/site-lisp/rails/rails hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails
~/.emacs.d/site-lisp/rails/rails-ws hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-ws
~/.emacs.d/site-lisp/rails/rails-view-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-view-minor-mode
~/.emacs.d/site-lisp/rails/rails-unit-test-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-unit-test-minor-mode
~/.emacs.d/site-lisp/rails/rails-ui hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-ui
~/.emacs.d/site-lisp/rails/rails-test hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-test
~/.emacs.d/site-lisp/rails/rails-speedbar-feature hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-speedbar-feature
~/.emacs.d/site-lisp/rails/rails-snippets-feature hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-snippets-feature
~/.emacs.d/site-lisp/rails/rails-scripts hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-scripts
~/.emacs.d/site-lisp/rails/rails-ruby hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-ruby
~/.emacs.d/site-lisp/rails/rails-rake hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-rake
~/.emacs.d/site-lisp/rails/rails-project hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-project
~/.emacs.d/site-lisp/rails/rails-plugin-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-plugin-minor-mode
~/.emacs.d/site-lisp/rails/rails-navigation hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-navigation
~/.emacs.d/site-lisp/rails/rails-model-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-model-minor-mode
~/.emacs.d/site-lisp/rails/rails-model-layout hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-model-layout
~/.emacs.d/site-lisp/rails/rails-migration-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-migration-minor-mode
~/.emacs.d/site-lisp/rails/rails-mailer-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-mailer-minor-mode
~/.emacs.d/site-lisp/rails/rails-log hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-log
~/.emacs.d/site-lisp/rails/rails-lib hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-lib
~/.emacs.d/site-lisp/rails/rails-layout-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-layout-minor-mode
~/.emacs.d/site-lisp/rails/rails-helper-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-helper-minor-mode
~/.emacs.d/site-lisp/rails/rails-functional-test-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-functional-test-minor-mode
~/.emacs.d/site-lisp/rails/rails-fixture-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-fixture-minor-mode
~/.emacs.d/site-lisp/rails/rails-find hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-find
~/.emacs.d/site-lisp/rails/rails-features hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-features
~/.emacs.d/site-lisp/rails/rails-core hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-core
~/.emacs.d/site-lisp/rails/rails-controller-minor-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-controller-minor-mode
~/.emacs.d/site-lisp/rails/rails-controller-layout hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-controller-layout
~/.emacs.d/site-lisp/rails/rails-compat hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-compat
~/.emacs.d/site-lisp/rails/rails-cmd-proxy hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-cmd-proxy
~/.emacs.d/site-lisp/rails/rails-bytecompile hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/rails-bytecompile
~/.emacs.d/site-lisp/rails/predictive-prog-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/predictive-prog-mode
~/.emacs.d/site-lisp/rails/inflections hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/emacs-rails/inflections
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/inf-haskell hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/inf-haskell
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-site-file hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-site-file
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-simple-indent hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-simple-indent
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-mode hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-mode
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-indent hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-indent
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-hugs hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-hugs
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-ghci hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-ghci
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-font-lock hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-font-lock
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-doc hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-doc
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-decl-scan hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-decl-scan
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-cabal hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-cabal
/Users/warren/.emacs.d/site-lisp/haskell-mode-2.6.1/haskell-c hides /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/haskell-mode/haskell-c

Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash
mail-utils emacsbug multi-isearch vc-git caml warnings dired pydb shell
gud yaml-mode ecmascript-mode cc-mode cc-fonts cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs rails rails-features
rails-controller-layout rails-model-layout rails-ui rails-log rails-ws
rails-test rails-rake rails-scripts derived rails-find rails-navigation
rails-cmd-proxy rails-ruby flymake align rails-core rails-lib
rails-project rails-compat snippet edmacro kmacro inflections
predictive-prog-mode flyspell ispell untabify-file find-recursive etags
ansi-color sql ruby-electric inf-ruby speedbar sb-image ezimage dframe
assoc ruby-mode caml-font scala-mode-auto compile comint ring
electric-minibuffer load-emacs-plugins aquamacs-mode-defaults
auctex-config server tex-site smart-dnd aquamacs-aux savehist mouse-sel
one-buffer-one-frame smart-frame-positioning drews_init
color-theme-autoloads saveplace visual-line aquamacs-bug
aquamacs-autoface-mode aquamacs-editing sendmail recentf tree-widget
cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns
thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame
aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 tabbar
easy-mmode cus-start cus-load load-emacs-pre-plugins aquamacs-site-start
cocoa-compatibility filladapt aquamacs-redo check-for-updates
aquamacs-menu osx_defaults aquamacs-tool-bar aquamacs
mac-extra-functions aquamacs-tools aquamacs-macros parse-time timezone
time-date paren delsel pc-select cua-base wid-edit regexp-opt advice
advice-preload byte-opt bytecomp byte-compile debug help-fns help-mode
view image-file disp-table tooltip ediff-hook vc-hooks lisp-float-type
mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
loaddefs button minibuffer faces cus-face files text-properties overlay
md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)

Command line: (/Applications/Aquamacs.app/Contents/MacOS/Aquamacs)

PATH: /Users/warren/metaweb/mwbuild3/_work/gd/graphutil:/opt/local/bin:/Users/warren/bin:/Users/warren/.cabal/bin:/Users/warren/godi/bin:/Users/warren/godi/sbin:/usr/local/bin:/opt/local/lib/postgresql83/bin:/sw/bin:/Users/warren/metaweb/mwbuild3/_work/gd/graphutil:/opt/local/bin:/Users/warren/bin:/Users/warren/.cabal/bin:/Users/warren/godi/bin:/Users/warren/godi/sbin:/usr/local/bin:/opt/local/lib/postgresql83/bin:/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/warren/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin

exec-path: (/Users/warren/metaweb/mwbuild3/_work/gd/graphutil /opt/local/bin /Users/warren/bin /Users/warren/.cabal/bin /Users/warren/godi/bin /Users/warren/godi/sbin /usr/local/bin /opt/local/lib/postgresql83/bin /sw/bin /Users/warren/metaweb/mwbuild3/_work/gd/graphutil /opt/local/bin /Users/warren/bin /Users/warren/.cabal/bin /Users/warren/godi/bin /Users/warren/godi/sbin /usr/local/bin /opt/local/lib/postgresql83/bin /sw/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /Users/warren/bin /usr/bin /bin /usr/sbin /sbin /Applications/Aquamacs.app/Contents/MacOS/bin /usr/texbin)
_______________________________________________
Aquamacs-bugs mailing list
[email-masked]
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs