From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: How to get "emacsclient --eval x" to DWIM when Emacs is not started Date: Sun, 30 Mar 2008 22:09:26 +0200 Message-ID: <7dbe73ed0803301309t3de07534w9b86159192214e07@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206907788 11770 80.91.229.12 (30 Mar 2008 20:09:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 20:09:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 22:10:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jg3r3-0006R8-8N for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 22:10:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg3qR-0006of-DD for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 16:09:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg3qN-0006o1-2M for emacs-devel@gnu.org; Sun, 30 Mar 2008 16:09:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg3qL-0006le-AY for emacs-devel@gnu.org; Sun, 30 Mar 2008 16:09:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg3qL-0006lb-7C for emacs-devel@gnu.org; Sun, 30 Mar 2008 16:09:29 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg3qL-0000Mn-03 for emacs-devel@gnu.org; Sun, 30 Mar 2008 16:09:29 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so1097421wxc.24 for ; Sun, 30 Mar 2008 13:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=WcsZa0Tsk8++0Q8d+c3Rcg/l0TPjgjDUCIlUHbrREmw=; b=Mx+HNWk/b2+3U7e9grmqkm2wSr7Wg5sBD1PgzU6vVlmEOnmrPNzJz4LIUOAkg8i+0CqoJXzx98YXHmt7jbql/FgD8PXLQvPQNJrPVPY7FAOHFAGAIeLxneEZao0f/7DERDFsCfX7SoCHnARht6S2Gi+EejamNppwDvPVau2l4nQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pbCDxglF1Z/t7cZ8zSUkfw/ve6NYGQ0r/R0Ec18FTyrwWVnV3Z9wzGFF0C74+qfhxaMEPOP9uUJGkH1uXyssI59e1Vm0q8sYtnzJFuj3dpFmZ6T+UqzqH1gBWonuiBw8fVyqxU7MN5q7mcoixIDYwne/iBYOsN2VP9sFG3KsyRE= Original-Received: by 10.114.159.1 with SMTP id h1mr8423005wae.147.1206907766496; Sun, 30 Mar 2008 13:09:26 -0700 (PDT) Original-Received: by 10.114.146.9 with HTTP; Sun, 30 Mar 2008 13:09:26 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93940 Archived-At: How can I get "emacsclient --eval x" to DWIM when Emacs is not started? I have tried the following: emacsclient -e '(message "Hello!")' -a emacs But that does not work. What happens is that Emacs, when started as the alternate editor, tries to open a file with the name ''(message "Hello!"). For normal operation, i.e. not using --eval but just for opening a file, -a emacs works well and does what I expect. Why does not --eval do the same? I have, of course, (server-start) in my .emacs file. As far as I can see, the manual does not mention this case.