emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Eshell history and multiline entries.


From: Matt Hodges
Subject: Eshell history and multiline entries.
Date: Fri, 26 Nov 2004 18:11:57 +0000
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3.50 (gnu/linux)

In GNU Emacs 21.3.50.3 (i686-pc-linux-gnu, GTK+ Version 2.4.13)
 of 2004-11-26 on dugong
Distributor `The XFree86 Project, Inc', version 11.0.40300001
configured using `configure '--with-gtk''

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
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: EShell

With emacs -Q and evaluating:

    (progn
      (setq eshell-history-file-name nil)
      (eshell))

(1) Type echo "foo" <RET>

(2) Type echo "bar C-j" <RET>. The Eshell buffer should look something
    like this (without the indentation):

        Welcome to the Emacs shell

        ~ $ echo "foo"
        foo
        ~ $ echo "bar
        "
        bar
        ~ $ 

(3) After the prompt, type echo then M-p M-p ... After the final
    prompt, the contents for the first four presses are:

        ~ $ echo "bar
        "

        ~ $ echo "bar
        echo "foo"

        ~ $ echo "bar
        echo "bar
        "

        ~ $ echo "bar
        echo "bar
        echo "foo"

whereas it should just alternate between

        ~ $ echo "bar
        "

and

        ~ $ echo "foo"

The attached patch seems to fix this.

Thanks,

Matt

Attachment: txtwY7N9zqkyl.txt
Description: em-hist.el patch.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]