From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rajanikanth Jammalamadaka Newsgroups: gmane.emacs.devel Subject: Re: More test reports please Date: Mon, 20 Aug 2012 19:53:36 -0400 Message-ID: References: <87y5lc292m.fsf@gnu.org> <874nnza2x1.fsf@gnu.org> <87fw7jnzz1.fsf@wanadoo.es> <87harz7xur.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c7dd4d905b104c7bb372d X-Trace: ger.gmane.org 1345506828 18210 80.91.229.3 (20 Aug 2012 23:53:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2012 23:53:48 +0000 (UTC) Cc: =?ISO-8859-1?Q?=D3scar_Fuentes?= , Chong Yidong , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 01:53:48 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T3bn0-0007Rb-TX for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2012 01:53:47 +0200 Original-Received: from localhost ([::1]:50702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3bmz-0005Hb-7C for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2012 19:53:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3bmv-0005HL-HW for emacs-devel@gnu.org; Mon, 20 Aug 2012 19:53:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3bmu-0004Jj-D6 for emacs-devel@gnu.org; Mon, 20 Aug 2012 19:53:41 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:39351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3bms-0004J4-5s; Mon, 20 Aug 2012 19:53:38 -0400 Original-Received: by wgbez12 with SMTP id ez12so4898041wgb.30 for ; Mon, 20 Aug 2012 16:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DkzXDOTd1fsp73ItRbsesn9cv/n7ritoanGg+9iiIfY=; b=obizVLuDDER7mV6mPZ9ROiQ+xVBFO8z8JyIxI/nVA17RHf2JOFNGi3pDXlTRQBkYPo HQZCwa2PdRgWFGnmQLznmgCeNo3baVP9wGA3WA6T4ukoj4L2DOKtyFhjp6lwf2nrAzo/ CmyMYnUYAlAIpBIxAlS9PUG9HLWDrojJQgdyOHBn3ovtWvCD86/MGLQpTUHQRtr8NxYo QSeZ30VpFdber2M/PN5Rl1teMH92N1IW03CuOB5mZoCsUsvigfz17BkcxTLqV3ioXOrO AFbdwOjIPgUZOUQ4FtRVoRdVzdVUNKuoCVC/kQDrTsWFqm1xyUGdNShzIY2WfWud6Xy+ PlOg== Original-Received: by 10.180.77.34 with SMTP id p2mr13966981wiw.0.1345506816623; Mon, 20 Aug 2012 16:53:36 -0700 (PDT) Original-Received: by 10.216.139.19 with HTTP; Mon, 20 Aug 2012 16:53:36 -0700 (PDT) Original-Received: by 10.216.139.19 with HTTP; Mon, 20 Aug 2012 16:53:36 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152704 Archived-At: --f46d043c7dd4d905b104c7bb372d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Aug 19, 2012 11:50 PM, "YAMAMOTO Mitsuharu" < mituharu@math.s.chiba-u.ac.jp> wrote: > > >>>>> On Sun, 19 Aug 2012 22:36:12 +0800, Chong Yidong said= : > > > =D3scar Fuentes writes: > >> Confirmed. This is Kubuntu 12.04 64 bits (a real machine, no > >> VMWare): > >> > >> tar xzf emacs-24.2-rc1.tar.gz cd emacs-24.2 ./configure > >> --prefix=3D/home/oscar/em-24.2 make -j4 make install cd ~/em-24.2/bin > >> emacs -Q M-x eshell > >> > >> Welcome to the Emacs shell > >> > >> ~/em-24.2/bin $ cd usage: cd: (DIR) > > > I still can't reproduce the problem. I'm also on Ubuntu 12.04. > > This seems to be dependent on the given prefix name. $HOME/em-24.2 > shows the problem, but $HOME/ema-24.2 does not. > > The relevant part would be the regular expression below: > > (defun eshell-find-alias-function (name) > "Check whether a function called `eshell/NAME' exists." > (let* ((sym (intern-soft (concat "eshell/" name))) > (file (symbol-file sym 'defun))) > ;; If the function exists, but is defined in an eshell module > ;; that's not currently enabled, don't report it as found > (if (and file > (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file)= ) > (let ((module-sym > (intern (file-name-sans-extension > (file-name-nondirectory > (concat "eshell-" (match-string 2 file))))))) > (if (and (functionp sym) > (or (null module-sym) > (eshell-using-module module-sym) > (memq module-sym (eshell-subgroups 'eshell)))) > sym)) > ;; Otherwise, if it's bound, return it. > (if (functionp sym) > sym)))) > > Maybe we can use \\([^/\n]*\\) (or include more separators for DOS or > Windows?) instead of \\(.*\\) . > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp > Thanks. It works when I change the prefix directory to start with ema- Raj --f46d043c7dd4d905b104c7bb372d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Aug 19, 2012 11:50 PM, "YAMAMOTO Mitsuharu" <mituharu@math.s.chiba-u.ac.jp> wr= ote:
>
> >>>>> On Sun, 19 Aug 2012 22:36:12 +0800, Chong Yidong = <cyd@gnu.org> said:
>
> > =D3scar Fuentes <ofv@wanadoo= .es> writes:
> >> Confirmed. This is Kubuntu 12.04 64 bits (a real machine, no<= br> > >> VMWare):
> >>
> >> tar xzf emacs-24.2-rc1.tar.gz cd emacs-24.2 ./configure
> >> --prefix=3D/home/oscar/em-24.2 make -j4 make install cd ~/em-= 24.2/bin
> >> emacs -Q M-x eshell
> >>
> >> Welcome to the Emacs shell
> >>
> >> ~/em-24.2/bin $ cd usage: cd: (DIR)
>
> > I still can't reproduce the problem. =A0I'm also on Ubunt= u 12.04.
>
> This seems to be dependent on the given prefix name. =A0$HOME/em-24.2<= br> > shows the problem, but $HOME/ema-24.2 does not.
>
> The relevant part would be the regular expression below:
>
> (defun eshell-find-alias-function (name)
> =A0 "Check whether a function called `eshell/NAME' exists.&qu= ot;
> =A0 (let* ((sym (intern-soft (concat "eshell/" name)))
> =A0 =A0 =A0 =A0 =A0(file (symbol-file sym 'defun)))
> =A0 =A0 ;; If the function exists, but is defined in an eshell module<= br> > =A0 =A0 ;; that's not currently enabled, don't report it as fo= und
> =A0 =A0 (if (and file
> =A0 =A0 =A0 =A0 =A0 =A0 =A0(string-match "\\(em\\|esh\\)-\\(.*\\)= \\(\\.el\\)?\\'" file))
> =A0 =A0 =A0 =A0 (let ((module-sym
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(intern (file-name-sans-extension
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (file-name-nondirector= y
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(concat "eshel= l-" (match-string 2 file)))))))
> =A0 =A0 =A0 =A0 =A0 (if (and (functionp sym)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(or (null module-sym)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(eshell-using-module mo= dule-sym)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(memq module-sym (eshel= l-subgroups 'eshell))))
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 sym))
> =A0 =A0 =A0 ;; Otherwise, if it's bound, return it.
> =A0 =A0 =A0 (if (functionp sym)
> =A0 =A0 =A0 =A0 =A0 sym))))
>
> Maybe we can use \\([^/\n]*\\) (or include more separators for DOS or<= br> > Windows?) instead of \\(.*\\) .
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0YAMAMOTO Mitsuharu
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 mituharu@math.s.chiba-u.ac.jp
>

Thanks. It works when I change the prefix directory to start with ema-

Raj

--f46d043c7dd4d905b104c7bb372d--