emacs-devel
[Top][All Lists]
Advanced

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

Re: bugfix eshell/rm


From: Thierry Volpiatto
Subject: Re: bugfix eshell/rm
Date: Fri, 11 Mar 2011 19:03:00 +0100
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/23.3 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Thierry Volpiatto <address@hidden>
>> Cc: address@hidden
>> Date: Fri, 11 Mar 2011 13:50:16 +0100
>> 
>> >> eshell-command
>> >> eshell-send-input
>> >> eshell-read-aliases-list
>> >> 
>> >> var:
>> >> eshell-command-aliases-list
>> >
>> > And you need these because...?
>> anything-find-files have an action that allow to run eshell commands on
>> files with completion on all aliases ending with $1.
>> This allow to create and use personal commands for files.
>> When i start emacs and anything, this aliases list is available only
>> after M-x eshell or eshell-command.
>> In this case i must run a y-or-n-p to ask if user want to first load
>> eshell manually and restart C-x C-f, or to run a command without
>> completion (i.e need to write it).
>
> Looks like
>
>   (require 'esh-mode)
>   (require 'em-alias)
>
> should do the trick for you.
Thanks, of course it's the first thing i tried...
but that doesn't work, even worst, all eshell functionalities are not
loaded (even if you run once M-x eshell) when you do some requires on
any eshell files at startup.

For example if you put in .emacs:

(require 'esh-mode)
(require 'em-alias)

then start emacs.

M-x eshell

alias RET

give nothing.(assume you have aliases in your .eshell/alias)

even if you require eshell directly and take care of setting
`eshell-directory-name'.

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 



reply via email to

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