From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: More test reports please Date: Mon, 20 Aug 2012 12:50:43 +0900 Organization: Faculty of Science, Chiba University 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 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1345434656 375 80.91.229.3 (20 Aug 2012 03:50:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2012 03:50:56 +0000 (UTC) Cc: =?ISO-8859-1?Q?=D3scar?= Fuentes , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 05:50:56 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 1T3J0x-0003nI-OA for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2012 05:50:55 +0200 Original-Received: from localhost ([::1]:57723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3J0w-0006Rx-7r for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 23:50:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3J0u-0006Rs-JV for emacs-devel@gnu.org; Sun, 19 Aug 2012 23:50:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3J0t-0006Ju-JB for emacs-devel@gnu.org; Sun, 19 Aug 2012 23:50:52 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:52332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3J0r-0006IF-It; Sun, 19 Aug 2012 23:50:50 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id AA293C055D; Mon, 20 Aug 2012 12:50:43 +0900 (JST) In-Reply-To: <87harz7xur.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 133.82.132.2 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:152691 Archived-At: >>>>> 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): >>=20 >> 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 >>=20 >> Welcome to the Emacs shell >>=20 >> ~/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