From unknown Thu Jun 19 14:03:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11572 <11572@debbugs.gnu.org> To: bug#11572 <11572@debbugs.gnu.org> Subject: Status: 24.1.50; Emacs executable shadowed by an alias Reply-To: bug#11572 <11572@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:26 +0000 retitle 11572 24.1.50; Emacs executable shadowed by an alias reassign 11572 emacs submitter 11572 sindikat severity 11572 wishlist tag 11572 moreinfo wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 03:31:13 2012 Received: (at submit) by debbugs.gnu.org; 28 May 2012 07:31:13 +0000 Received: from localhost ([127.0.0.1]:46072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYuQ3-0004s1-L2 for submit@debbugs.gnu.org; Mon, 28 May 2012 03:31:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58607) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYuPh-0004r9-Ay for submit@debbugs.gnu.org; Mon, 28 May 2012 03:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYuOI-0001us-47 for submit@debbugs.gnu.org; Mon, 28 May 2012 03:29:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYuOI-0001um-0H for submit@debbugs.gnu.org; Mon, 28 May 2012 03:29:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYuOE-0003G4-Sm for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 03:29:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYuO6-0001tz-Md for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 03:29:18 -0400 Received: from mx1.riseup.net ([204.13.164.18]:37360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYuO6-0001th-Br for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 03:29:10 -0400 Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 4357D551C1 for ; Mon, 28 May 2012 00:29:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sindikat@mail36.net) with ESMTPSA id 53A7E4BE From: sindikat To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Emacs executable shadowed by an alias Date: Mon, 28 May 2012 13:28:52 +0600 Message-ID: <87vcjgsr0r.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: clamav-milter 0.97.3 at mx1 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) There is an obscure behavior when command 'emacsclient -c -a ""' cease to create a daemon, when there is none running. To reproduce do the following: 1. Create an alias 'emacs=emacsclient -c -a ""' or executable named 'emacs' in $PATH, which is a shell script with 'emacsclient -c -a ""' it. 2. Kill all daemons if there are such. 3. Run 'emacs'. You would think Emacs finds there is no daemon and runs Emacs daemon and then Emacsclient, but because internally it calls 'emacs' command, it enters an infinite recursion calling emacs alias, which calls emacsclient, which calls emacs alias etc. To correct the behavior, emacsclient should internally use 'which' or some other way to not call the alias, i think. I use Emacs 24, build 20120524 from emacs.naquadah.org on Linux Mint Debian Edition. In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2012-05-24 on zelenka, modified by Debian (emacs-snapshot package, version 2:20120524-1) Windowing system distributor `The X.Org Foundation', version 11.0.11104000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: icomplete-mode: t global-linum-mode: t linum-mode: t show-paren-mode: t ido-everywhere: t keyfreq-autosave-mode: t keyfreq-mode: t global-whitespace-mode: t ergoemacs-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: b u t SPC f o r SPC s o m e SPC r e a s o n SPC m a i l . e l SPC i s n ' t SPC l o a d e d SPC a u t o m a t i c a l l y M-SPC M-j M-h M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-i M-x M-u M-e M-u M-H M-v M-h ; M-y M-y M-y M-y M-y M-y M-y M-y M-y M-y M-y M-y M-l ; ; SPC M-H C-s M-u M-u M-u M-e M-e M-e M-e C-x C-e C-h v g n u s l C-g C-o m a i M-E M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-e M-u M-u M-u M-N M-N M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-e M-u M-u M-u M-u M-u M-u M-u M-H M-n M-N C-h v g n u s - l o a d M-r q M-a g n u s g q y C-o e m M-f l t a s M-i M-o r i s e u p M-i C-w M-a r i s r e p o r t - Recent messages: nnml: Reading incoming mail (no new mail)...done Reading active file via nnml...done Reading active file from archive via nnfolder...done Reading active file via nndraft...done Checking new news...done Are you sure you want to quit reading news? (y or n) y (No changes need to be saved) OVERVIEW Starting new Ispell process [default] ... Mark saved where search started Load-path shadows: ~/.emacs.d/coffee-mode hides /home/sindikat/.emacs.d/elpa/coffee-mode-20120522/coffee-mode /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /home/sindikat/.emacs.d/elpa/org-20120524/org-taskjuggler hides /usr/share/emacs/24.1.50/lisp/org/org-taskjuggler /home/sindikat/.emacs.d/elpa/org-20120524/org-timer hides /usr/share/emacs/24.1.50/lisp/org/org-timer /home/sindikat/.emacs.d/elpa/org-20120524/org-datetree hides /usr/share/emacs/24.1.50/lisp/org/org-datetree /home/sindikat/.emacs.d/elpa/org-20120524/ob-java hides /usr/share/emacs/24.1.50/lisp/org/ob-java /home/sindikat/.emacs.d/elpa/org-20120524/ob hides /usr/share/emacs/24.1.50/lisp/org/ob /home/sindikat/.emacs.d/elpa/org-20120524/ob-ruby hides /usr/share/emacs/24.1.50/lisp/org/ob-ruby /home/sindikat/.emacs.d/elpa/org-20120524/org-src hides /usr/share/emacs/24.1.50/lisp/org/org-src /home/sindikat/.emacs.d/elpa/org-20120524/org-archive hides /usr/share/emacs/24.1.50/lisp/org/org-archive /home/sindikat/.emacs.d/elpa/org-20120524/org-docbook hides /usr/share/emacs/24.1.50/lisp/org/org-docbook /home/sindikat/.emacs.d/elpa/org-20120524/ob-comint hides /usr/share/emacs/24.1.50/lisp/org/ob-comint /home/sindikat/.emacs.d/elpa/org-20120524/ob-calc hides /usr/share/emacs/24.1.50/lisp/org/ob-calc /home/sindikat/.emacs.d/elpa/org-20120524/ob-haskell hides /usr/share/emacs/24.1.50/lisp/org/ob-haskell /home/sindikat/.emacs.d/elpa/org-20120524/org-capture hides /usr/share/emacs/24.1.50/lisp/org/org-capture /home/sindikat/.emacs.d/elpa/org-20120524/org-colview hides /usr/share/emacs/24.1.50/lisp/org/org-colview /home/sindikat/.emacs.d/elpa/org-20120524/org-feed hides /usr/share/emacs/24.1.50/lisp/org/org-feed /home/sindikat/.emacs.d/elpa/org-20120524/org-list hides /usr/share/emacs/24.1.50/lisp/org/org-list /home/sindikat/.emacs.d/elpa/org-20120524/org-gnus hides /usr/share/emacs/24.1.50/lisp/org/org-gnus /home/sindikat/.emacs.d/elpa/org-20120524/org-indent hides /usr/share/emacs/24.1.50/lisp/org/org-indent /home/sindikat/.emacs.d/elpa/org-20120524/ob-emacs-lisp hides /usr/share/emacs/24.1.50/lisp/org/ob-emacs-lisp /home/sindikat/.emacs.d/elpa/org-20120524/ob-table hides /usr/share/emacs/24.1.50/lisp/org/ob-table /home/sindikat/.emacs.d/elpa/org-20120524/ob-sqlite hides /usr/share/emacs/24.1.50/lisp/org/ob-sqlite /home/sindikat/.emacs.d/elpa/org-20120524/org-ascii hides /usr/share/emacs/24.1.50/lisp/org/org-ascii /home/sindikat/.emacs.d/elpa/org-20120524/org-table hides /usr/share/emacs/24.1.50/lisp/org/org-table /home/sindikat/.emacs.d/elpa/org-20120524/ob-sh hides /usr/share/emacs/24.1.50/lisp/org/ob-sh /home/sindikat/.emacs.d/elpa/org-20120524/org-freemind hides /usr/share/emacs/24.1.50/lisp/org/org-freemind /home/sindikat/.emacs.d/elpa/org-20120524/org-entities hides /usr/share/emacs/24.1.50/lisp/org/org-entities /home/sindikat/.emacs.d/elpa/org-20120524/org-html hides /usr/share/emacs/24.1.50/lisp/org/org-html /home/sindikat/.emacs.d/elpa/org-20120524/org-inlinetask hides /usr/share/emacs/24.1.50/lisp/org/org-inlinetask /home/sindikat/.emacs.d/elpa/org-20120524/org-exp hides /usr/share/emacs/24.1.50/lisp/org/org-exp /home/sindikat/.emacs.d/elpa/org-20120524/ob-mscgen hides /usr/share/emacs/24.1.50/lisp/org/ob-mscgen /home/sindikat/.emacs.d/elpa/org-20120524/ob-maxima hides /usr/share/emacs/24.1.50/lisp/org/ob-maxima /home/sindikat/.emacs.d/elpa/org-20120524/ob-plantuml hides /usr/share/emacs/24.1.50/lisp/org/ob-plantuml /home/sindikat/.emacs.d/elpa/org-20120524/ob-sass hides /usr/share/emacs/24.1.50/lisp/org/ob-sass /home/sindikat/.emacs.d/elpa/org-20120524/org-mks hides /usr/share/emacs/24.1.50/lisp/org/org-mks /home/sindikat/.emacs.d/elpa/org-20120524/org-id hides /usr/share/emacs/24.1.50/lisp/org/org-id /home/sindikat/.emacs.d/elpa/org-20120524/ob-js hides /usr/share/emacs/24.1.50/lisp/org/ob-js /home/sindikat/.emacs.d/elpa/org-20120524/org-bbdb hides /usr/share/emacs/24.1.50/lisp/org/org-bbdb /home/sindikat/.emacs.d/elpa/org-20120524/org-remember hides /usr/share/emacs/24.1.50/lisp/org/org-remember /home/sindikat/.emacs.d/elpa/org-20120524/ob-ledger hides /usr/share/emacs/24.1.50/lisp/org/ob-ledger /home/sindikat/.emacs.d/elpa/org-20120524/ob-tangle hides /usr/share/emacs/24.1.50/lisp/org/ob-tangle /home/sindikat/.emacs.d/elpa/org-20120524/org-publish hides /usr/share/emacs/24.1.50/lisp/org/org-publish /home/sindikat/.emacs.d/elpa/org-20120524/ob-python hides /usr/share/emacs/24.1.50/lisp/org/ob-python /home/sindikat/.emacs.d/elpa/org-20120524/org-mhe hides /usr/share/emacs/24.1.50/lisp/org/org-mhe /home/sindikat/.emacs.d/elpa/org-20120524/org-mouse hides /usr/share/emacs/24.1.50/lisp/org/org-mouse /home/sindikat/.emacs.d/elpa/org-20120524/ob-shen hides /usr/share/emacs/24.1.50/lisp/org/ob-shen /home/sindikat/.emacs.d/elpa/org-20120524/org-habit hides /usr/share/emacs/24.1.50/lisp/org/org-habit /home/sindikat/.emacs.d/elpa/org-20120524/ob-awk hides /usr/share/emacs/24.1.50/lisp/org/ob-awk /home/sindikat/.emacs.d/elpa/org-20120524/org-special-blocks hides /usr/share/emacs/24.1.50/lisp/org/org-special-blocks /home/sindikat/.emacs.d/elpa/org-20120524/org-attach hides /usr/share/emacs/24.1.50/lisp/org/org-attach /home/sindikat/.emacs.d/elpa/org-20120524/org-ctags hides /usr/share/emacs/24.1.50/lisp/org/org-ctags /home/sindikat/.emacs.d/elpa/org-20120524/org-lparse hides /usr/share/emacs/24.1.50/lisp/org/org-lparse /home/sindikat/.emacs.d/elpa/org-20120524/org-w3m hides /usr/share/emacs/24.1.50/lisp/org/org-w3m /home/sindikat/.emacs.d/elpa/org-20120524/ob-matlab hides /usr/share/emacs/24.1.50/lisp/org/ob-matlab /home/sindikat/.emacs.d/elpa/org-20120524/org-compat hides /usr/share/emacs/24.1.50/lisp/org/org-compat /home/sindikat/.emacs.d/elpa/org-20120524/ob-lilypond hides /usr/share/emacs/24.1.50/lisp/org/ob-lilypond /home/sindikat/.emacs.d/elpa/org-20120524/org-plot hides /usr/share/emacs/24.1.50/lisp/org/org-plot /home/sindikat/.emacs.d/elpa/org-20120524/ob-gnuplot hides /usr/share/emacs/24.1.50/lisp/org/ob-gnuplot /home/sindikat/.emacs.d/elpa/org-20120524/ob-latex hides /usr/share/emacs/24.1.50/lisp/org/ob-latex /home/sindikat/.emacs.d/elpa/org-20120524/ob-scheme hides /usr/share/emacs/24.1.50/lisp/org/ob-scheme /home/sindikat/.emacs.d/elpa/org-20120524/org-icalendar hides /usr/share/emacs/24.1.50/lisp/org/org-icalendar /home/sindikat/.emacs.d/elpa/org-20120524/org-vm hides /usr/share/emacs/24.1.50/lisp/org/org-vm /home/sindikat/.emacs.d/elpa/org-20120524/org-eshell hides /usr/share/emacs/24.1.50/lisp/org/org-eshell /home/sindikat/.emacs.d/elpa/org-20120524/org-pcomplete hides /usr/share/emacs/24.1.50/lisp/org/org-pcomplete /home/sindikat/.emacs.d/elpa/org-20120524/org-odt hides /usr/share/emacs/24.1.50/lisp/org/org-odt /home/sindikat/.emacs.d/elpa/org-20120524/org-mew hides /usr/share/emacs/24.1.50/lisp/org/org-mew /home/sindikat/.emacs.d/elpa/org-20120524/org-mobile hides /usr/share/emacs/24.1.50/lisp/org/org-mobile /home/sindikat/.emacs.d/elpa/org-20120524/ob-asymptote hides /usr/share/emacs/24.1.50/lisp/org/ob-asymptote /home/sindikat/.emacs.d/elpa/org-20120524/ob-ref hides /usr/share/emacs/24.1.50/lisp/org/ob-ref /home/sindikat/.emacs.d/elpa/org-20120524/ob-ocaml hides /usr/share/emacs/24.1.50/lisp/org/ob-ocaml /home/sindikat/.emacs.d/elpa/org-20120524/ob-octave hides /usr/share/emacs/24.1.50/lisp/org/ob-octave /home/sindikat/.emacs.d/elpa/org-20120524/ob-lisp hides /usr/share/emacs/24.1.50/lisp/org/ob-lisp /home/sindikat/.emacs.d/elpa/org-20120524/org-info hides /usr/share/emacs/24.1.50/lisp/org/org-info /home/sindikat/.emacs.d/elpa/org-20120524/org-docview hides /usr/share/emacs/24.1.50/lisp/org/org-docview /home/sindikat/.emacs.d/elpa/org-20120524/org-beamer hides /usr/share/emacs/24.1.50/lisp/org/org-beamer /home/sindikat/.emacs.d/elpa/org-20120524/ob-ditaa hides /usr/share/emacs/24.1.50/lisp/org/ob-ditaa /home/sindikat/.emacs.d/elpa/org-20120524/org-wl hides /usr/share/emacs/24.1.50/lisp/org/org-wl /home/sindikat/.emacs.d/elpa/org-20120524/ob-keys hides /usr/share/emacs/24.1.50/lisp/org/ob-keys /home/sindikat/.emacs.d/elpa/org-20120524/ob-sql hides /usr/share/emacs/24.1.50/lisp/org/ob-sql /home/sindikat/.emacs.d/elpa/org-20120524/org-mac-message hides /usr/share/emacs/24.1.50/lisp/org/org-mac-message /home/sindikat/.emacs.d/elpa/org-20120524/ob-eval hides /usr/share/emacs/24.1.50/lisp/org/ob-eval /home/sindikat/.emacs.d/elpa/org-20120524/ob-lob hides /usr/share/emacs/24.1.50/lisp/org/ob-lob /home/sindikat/.emacs.d/elpa/org-20120524/ob-dot hides /usr/share/emacs/24.1.50/lisp/org/ob-dot /home/sindikat/.emacs.d/elpa/org-20120524/org-clock hides /usr/share/emacs/24.1.50/lisp/org/org-clock /home/sindikat/.emacs.d/elpa/org-20120524/ob-screen hides /usr/share/emacs/24.1.50/lisp/org/ob-screen /home/sindikat/.emacs.d/elpa/org-20120524/ob-clojure hides /usr/share/emacs/24.1.50/lisp/org/ob-clojure /home/sindikat/.emacs.d/elpa/org-20120524/ob-org hides /usr/share/emacs/24.1.50/lisp/org/ob-org /home/sindikat/.emacs.d/elpa/org-20120524/org hides /usr/share/emacs/24.1.50/lisp/org/org /home/sindikat/.emacs.d/elpa/org-20120524/org-faces hides /usr/share/emacs/24.1.50/lisp/org/org-faces /home/sindikat/.emacs.d/elpa/org-20120524/org-agenda hides /usr/share/emacs/24.1.50/lisp/org/org-agenda /home/sindikat/.emacs.d/elpa/org-20120524/ob-perl hides /usr/share/emacs/24.1.50/lisp/org/ob-perl /home/sindikat/.emacs.d/elpa/org-20120524/ob-fortran hides /usr/share/emacs/24.1.50/lisp/org/ob-fortran /home/sindikat/.emacs.d/elpa/org-20120524/org-protocol hides /usr/share/emacs/24.1.50/lisp/org/org-protocol /home/sindikat/.emacs.d/elpa/org-20120524/org-crypt hides /usr/share/emacs/24.1.50/lisp/org/org-crypt /home/sindikat/.emacs.d/elpa/org-20120524/org-bibtex hides /usr/share/emacs/24.1.50/lisp/org/org-bibtex /home/sindikat/.emacs.d/elpa/org-20120524/ob-css hides /usr/share/emacs/24.1.50/lisp/org/ob-css /home/sindikat/.emacs.d/elpa/org-20120524/org-latex hides /usr/share/emacs/24.1.50/lisp/org/org-latex /home/sindikat/.emacs.d/elpa/org-20120524/ob-R hides /usr/share/emacs/24.1.50/lisp/org/ob-R /home/sindikat/.emacs.d/elpa/org-20120524/org-macs hides /usr/share/emacs/24.1.50/lisp/org/org-macs /home/sindikat/.emacs.d/elpa/org-20120524/org-exp-blocks hides /usr/share/emacs/24.1.50/lisp/org/org-exp-blocks /home/sindikat/.emacs.d/elpa/org-20120524/ob-C hides /usr/share/emacs/24.1.50/lisp/org/ob-C /home/sindikat/.emacs.d/elpa/org-20120524/org-footnote hides /usr/share/emacs/24.1.50/lisp/org/org-footnote /home/sindikat/.emacs.d/elpa/org-20120524/ob-exp hides /usr/share/emacs/24.1.50/lisp/org/ob-exp /home/sindikat/.emacs.d/elpa/org-20120524/org-xoxo hides /usr/share/emacs/24.1.50/lisp/org/org-xoxo /home/sindikat/.emacs.d/elpa/org-20120524/org-jsinfo hides /usr/share/emacs/24.1.50/lisp/org/org-jsinfo /home/sindikat/.emacs.d/elpa/org-20120524/ob-picolisp hides /usr/share/emacs/24.1.50/lisp/org/ob-picolisp /home/sindikat/.emacs.d/elpa/org-20120524/org-rmail hides /usr/share/emacs/24.1.50/lisp/org/org-rmail /home/sindikat/.emacs.d/elpa/org-20120524/org-irc hides /usr/share/emacs/24.1.50/lisp/org/org-irc ~/.emacs.d/secrets hides /usr/share/emacs/24.1.50/lisp/net/secrets /home/sindikat/.emacs.d/elpa/magit-20120523/.dir-locals hides /usr/share/emacs/24.1.50/lisp/gnus/.dir-locals Features: (shadow sort org-table mail-extr emacsbug thingatpt gnutls network-stream starttls tls pop3 nndraft nnmh nnfolder nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader secrets epa-file epa epg epg-config smtpmail auth-source eieio gnus-util password-cache sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired multi-isearch debug pp help-mode view server org-w3m org-wl org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-info org-id org-gnus org-docview org-bibtex bibtex org-bbdb icomplete linum org-publish org-exp ob-exp org-exp-blocks find-func org-agenda paren smex ido keyfreq disp-table whitespace wombat-theme org-install garak derived notify dbus-util assoc dbus xml tree-widget elim wid-edit browse-url lui tracking flyspell ispell incomplete org-depend cl org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs time-date noutline outline format-spec cal-menu calendar cal-loaddefs ergoemacs-mode easy-mmode cua-base edmacro kmacro byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload delsel auctex-autoloads tex-site auto-complete-autoloads buffer-move-autoloads clojurescript-mode-autoloads clojure-mode-autoloads coffee-mode-autoloads color-theme-autoloads debbugs-autoloads haskell-mode-autoloads ido-ubiquitous-autoloads jabber-autoloads js2-mode-autoloads magit-autoloads molokai-theme-autoloads multi-term-autoloads org-autoloads info easymenu paredit-autoloads popup-autoloads redo+-autoloads smex-autoloads xml-rpc-autoloads yasnippet-autoloads package tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 03:39:15 2012 Received: (at 11572) by debbugs.gnu.org; 28 May 2012 07:39:16 +0000 Received: from localhost ([127.0.0.1]:46077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYuXr-00053H-P6 for submit@debbugs.gnu.org; Mon, 28 May 2012 03:39:15 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:48854) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYuXp-000533-F2 for 11572@debbugs.gnu.org; Mon, 28 May 2012 03:39:14 -0400 Received: by dacx6 with SMTP id x6so3451934dac.3 for <11572@debbugs.gnu.org>; Mon, 28 May 2012 00:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=bfSsxy6J4KAPbWsPio7qN2eOfcKR658pkULSz9Ufc3U=; b=ZEn/aZ9eudrRbYEJIlkILdjfUGVoY2AKQAUisq5ue9fMlxSsMoA0zld24IY52Vw2Ht b94Fkgv1OL+CM/Ob9AXl/34vwEbKvv4szCDxefSFz5l1MpIy9U/Kw506kZzn2a6+MHeW 1KCEMHlWW8ayGVeP4P4rJ1PA73DZhWQkHQ2lI2RDeqshb+ISE+I68xVJKOezP+jrhBde 0D5Heshy6GnT0CVVx9ZO4J1ZXXuvRaE0Ha+SMGBauPriFF9IuGCO1K/jlfUFm4JXO3QY ELJSJFyRbjCm9enz5jKOUI+RfOJczUW5dtXQivQ4iHLZ2YSrLyx2pWpRYgK320gk/itJ XlPg== Received: by 10.68.197.99 with SMTP id it3mr7218289pbc.148.1338190668189; Mon, 28 May 2012 00:37:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.19.8 with HTTP; Mon, 28 May 2012 00:37:05 -0700 (PDT) In-Reply-To: <87vcjgsr0r.fsf@riseup.net> References: <87vcjgsr0r.fsf@riseup.net> From: Juanma Barranquero Date: Mon, 28 May 2012 09:37:05 +0200 Message-ID: Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias To: sindikat Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11572 Cc: 11572@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Mon, May 28, 2012 at 9:28 AM, sindikat wrote: > You would think Emacs finds there is no daemon and runs Emacs daemon > and then Emacsclient, but because internally it calls > 'emacs' command, it enters an infinite recursion calling emacs alias, > which calls emacsclient, which calls emacs alias etc. Isn't that a case of "if it hurts doing that, don't do that"? > To correct the behavior, emacsclient should internally use 'which' or > some other way to not call the alias, i think. What if the user wants to really use an alias (just not "emacs", another on= e)? =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 10:20:58 2012 Received: (at 11572) by debbugs.gnu.org; 28 May 2012 14:20:58 +0000 Received: from localhost ([127.0.0.1]:46706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ0ob-0007Ha-Nm for submit@debbugs.gnu.org; Mon, 28 May 2012 10:20:58 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:4947) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ0oZ-0007HN-OS for 11572@debbugs.gnu.org; Mon, 28 May 2012 10:20:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCpYd/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="183125401" Received: from 76-10-150-29.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 May 2012 10:19:32 -0400 Received: by pastel.home (Postfix, from userid 20848) id 0305A5956B; Mon, 28 May 2012 10:19:31 -0400 (EDT) From: Stefan Monnier To: sindikat Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias Message-ID: References: <87vcjgsr0r.fsf@riseup.net> Date: Mon, 28 May 2012 10:19:31 -0400 In-Reply-To: <87vcjgsr0r.fsf@riseup.net> (sindikat@riseup.net's message of "Mon, 28 May 2012 13:28:52 +0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11572 Cc: 11572@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > 1. Create an alias 'emacs=emacsclient -c -a ""' or executable named > 'emacs' in $PATH, which is a shell script with 'emacsclient -c -a ""' If you really have an other `emacs' in the $PATH, I think "you get what you ask for", kind of. But I agree that emacsclient should not obey shell aliases, because it should not run "emacs" via a shell. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 13:56:07 2012 Received: (at 11572) by debbugs.gnu.org; 28 May 2012 17:56:07 +0000 Received: from localhost ([127.0.0.1]:46920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ4Ap-0003ic-J3 for submit@debbugs.gnu.org; Mon, 28 May 2012 13:56:07 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:55534) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ4Am-0003i8-2v for 11572@debbugs.gnu.org; Mon, 28 May 2012 13:56:06 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3W1Qgf0LKXz4Kh2c; Mon, 28 May 2012 19:54:37 +0200 (CEST) Received: from igel.home (ppp-93-104-141-165.dynamic.mnet-online.de [93.104.141.165]) by mail.mnet-online.de (Postfix) with ESMTPA id 3W1Qgd4NNrz4KK5c; Mon, 28 May 2012 19:54:37 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id DDC4FCA2A5; Mon, 28 May 2012 19:54:37 +0200 (CEST) From: Andreas Schwab To: Stefan Monnier Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias References: <87vcjgsr0r.fsf@riseup.net> X-Yow: I've gotta GO, now!! I wanta tell you you're a GREAT bunch of guys but you ought to CHANGE your UNDERWEAR more often!! Date: Mon, 28 May 2012 19:54:37 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 28 May 2012 10:19:31 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11572 Cc: sindikat , 11572@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: > But I agree that emacsclient should not obey shell aliases, because it > should not run "emacs" via a shell. Non-interactive shells don't obey aliases. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon May 28 15:42:20 2012 Received: (at 11572) by debbugs.gnu.org; 28 May 2012 19:42:20 +0000 Received: from localhost ([127.0.0.1]:47032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ5pK-0006OB-7Z for submit@debbugs.gnu.org; Mon, 28 May 2012 15:42:20 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:49822) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ5pH-0006Nq-S1; Mon, 28 May 2012 15:42:00 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q4SJedO0008530; Mon, 28 May 2012 15:40:39 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id A7B93B4191; Mon, 28 May 2012 15:40:39 -0400 (EDT) From: Stefan Monnier To: Andreas Schwab Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias Message-ID: References: <87vcjgsr0r.fsf@riseup.net> Date: Mon, 28 May 2012 15:40:39 -0400 In-Reply-To: (Andreas Schwab's message of "Mon, 28 May 2012 19:54:37 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4235=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4235> : streams <761730> : uri <1120540> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11572 Cc: sindikat , 11572@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) tags 11572 moreinfo thanks >> But I agree that emacsclient should not obey shell aliases, because it >> should not run "emacs" via a shell. > Non-interactive shells don't obey aliases. While that's generally more or less true, the details depend on how you define your aliases and which shell you're using. But in any case, AFAICT emacsclient.c does not run "emacs" via a shell (it uses execvp), so no matter what shell you use and how you define your aliases I don't see how an "emacs" alias can cause the problem the OP described. Sindikat, can you really reproduce your problem with just an alias 'emacs=emacsclient -c -a ""', or do you actually need to have an "emacs" script in your $PATH? Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 16:54:55 2012 Received: (at 11572-done) by debbugs.gnu.org; 6 Jun 2012 20:54:55 +0000 Received: from localhost ([127.0.0.1]:60867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScNFm-00086w-Bn for submit@debbugs.gnu.org; Wed, 06 Jun 2012 16:54:54 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39806 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScNFS-00086Y-Bx for 11572-done@debbugs.gnu.org; Wed, 06 Jun 2012 16:54:53 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ScNDL-0004gh-LF; Wed, 06 Jun 2012 16:52:23 -0400 From: Glenn Morris To: 11572-done@debbugs.gnu.org Subject: Re: bug#11572: 24.1.50; Emacs executable shadowed by an alias References: <87vcjgsr0r.fsf@riseup.net> X-Spook: Downing Street radar global Operation Iraqi Freedom 2600 X-Ran: k-0~:Q4\0HbxNaVY-aL]_QhZ6|B> (Stefan Monnier's message of "Mon, 28 May 2012 15:40:39 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11572-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Stefan Monnier wrote: > Sindikat, can you really reproduce your problem with just an alias > 'emacs=emacsclient -c -a ""', or do you actually need to have an "emacs" > script in your $PATH? No answer, but it's basically impossible for a shell alias to cause the described issue. As has been said, it's a feature that emacsclient -a "" uses "emacs" from PATH. If you have a script "emacs" in PATH, you'll need to make it more sophisticated (eg, check for the --daemon option that emacsclient passed in this case). From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 06 16:55:09 2012 Received: (at control) by debbugs.gnu.org; 6 Jun 2012 20:55:09 +0000 Received: from localhost ([127.0.0.1]:60873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScNG1-000881-2R for submit@debbugs.gnu.org; Wed, 06 Jun 2012 16:55:09 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39814 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScNG0-00087u-Fj for control@debbugs.gnu.org; Wed, 06 Jun 2012 16:55:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ScNDt-0004hN-Vi for control@debbugs.gnu.org; Wed, 06 Jun 2012 16:52:58 -0400 Date: Wed, 06 Jun 2012 16:52:57 -0400 Message-Id: Subject: control message for bug 11572 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) severity 11572 wishlist tag 11572 wontfix From unknown Thu Jun 19 14:03:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator