unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: bugfix eshell/rm
Date: Fri, 11 Mar 2011 19:03:00 +0100	[thread overview]
Message-ID: <87bp1ha623.fsf@gmail.com> (raw)
In-Reply-To: 83ipvptzpq.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
>> Cc: emacs-devel@gnu.org
>> 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	other threads:[~2011-03-11 18:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  8:04 bugfix eshell/rm Thierry Volpiatto
2011-03-11  8:16 ` Glenn Morris
2011-03-11  9:08   ` Thierry Volpiatto
2011-03-11 10:18     ` Eli Zaretskii
2011-03-11 12:17       ` Thierry Volpiatto
2011-03-11 12:23         ` Eli Zaretskii
2011-03-11 12:50           ` Thierry Volpiatto
2011-03-11 15:59             ` Eli Zaretskii
2011-03-11 18:03               ` Thierry Volpiatto [this message]
2011-03-12 18:39     ` Glenn Morris
2011-03-12 20:12       ` bug and dev mailing lists [was: bugfix eshell/rm] Drew Adams
2011-03-12 20:25         ` Eli Zaretskii
2011-03-12 22:43           ` Drew Adams
2011-03-12  8:30   ` bugfix eshell/rm Thierry Volpiatto
2011-03-12  8:45     ` Thierry Volpiatto

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=87bp1ha623.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).