From: Peter Dyballa <Peter_Dyballa@web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Saving/Recalling Shell Commands History?
Date: Tue, 22 Aug 2006 00:14:30 +0200 [thread overview]
Message-ID: <9895078F-3586-450F-B53C-2D4EE2B33C39@web.DE> (raw)
In-Reply-To: <ecd8rd$dot$1@sea.gmane.org>
Am 21.08.2006 um 23:32 schrieb Kevin Rodgers:
>> Its value is "~/.history"
>> Local in buffer *shell*; global value is
>> "~/.emacs.d/PDesktop-23/history"
>
> So you have managed to change its global value, but not the value in
> the *shell* buffer.
Ahh! Now I understand how to understand this!
>
>> Documentation:
>> *If non-nil, name of the file to read/write input history.
>> See also `comint-read-input-ring' and `comint-write-input-ring'.
>> This variable is buffer-local, and is a good thing to set
>> in mode hooks.
>> You can /customize/ this variable.
>> When I comment the comint-input-ring-file-name setting line, its
>> value is simply "~/.history."
>
> So leave it commented out, and put this in your ~/.emacs file:
>
> (add-hook 'shell-mode-hook
> (lambda ()
> (setq comint-input-ring-file-name ; buffer-local
> (expand-file-name "history" desktop-dirname))))
It works a bit:
Its value is
"/Users/pete/.emacs.d/PDesktop-22/history"
Local in buffer *shell*; global value is nil
but, since I deleted ~/.tcsh_history I have /no/ history at all ...
So the history file as set in .emacs and although it exists and
although I set comint-input-ring-size to a big value is not read. And
neither written in GNU Emacsen 22.0.50 nor 23.0.0 nor 21.2.
Enough to prepare a bug report?
--
Greetings
Pete
"Email is a wonderful thing for people whose role in life is to be on
top of things. But not for me; my role is to be on the bottom of
things. What I do takes long hours of studying and uninterruptible
concentration."
-Donald Knuth
next prev parent reply other threads:[~2006-08-21 22:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 15:07 Saving/Recalling Shell Commands History? gamename
2006-08-21 16:35 ` Drew Adams
2006-08-21 20:09 ` Peter Dyballa
2006-08-21 20:17 ` Drew Adams
2006-08-21 21:08 ` Peter Dyballa
2006-08-21 21:30 ` Drew Adams
2006-08-21 21:32 ` Kevin Rodgers
2006-08-21 22:14 ` Peter Dyballa [this message]
2006-08-22 23:13 ` Peter Dyballa
2006-08-23 14:20 ` Kevin Rodgers
2006-08-23 15:20 ` Peter Dyballa
2006-08-21 20:19 ` Jesse Alama
2006-08-21 21:11 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9895078F-3586-450F-B53C-2D4EE2B33C39@web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).