From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Magid Newsgroups: gmane.emacs.help Subject: emacsclient Mac OS X 'No socket or alternate editor' error Date: Fri, 30 Nov 2012 08:01:30 -0800 (PST) Message-ID: <693154ba-7aa1-493e-81e2-44520176484b@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1354291518 8298 80.91.229.3 (30 Nov 2012 16:05:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 16:05:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 17:05:31 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1TeT5k-0005NL-5Z for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 17:05:28 +0100 Original-Received: from localhost ([::1]:42432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeT5W-0006sj-Df for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 11:05:14 -0500 Original-Received: by 10.66.81.98 with SMTP id z2mr236636pax.19.1354291290677; Fri, 30 Nov 2012 08:01:30 -0800 (PST) Original-Received: by 10.50.196.199 with SMTP id io7mr2173663igc.4.1354291290628; Fri, 30 Nov 2012 08:01:30 -0800 (PST) Original-Path: usenet.stanford.edu!kr7no8128892pbb.0!news-out.google.com!6ni17870pbd.1!nntp.google.com!kt20no8974216pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=38.97.79.146; posting-account=xf6VJQoAAABrcU5eROjcMJ05KYhHG-yA Original-NNTP-Posting-Host: 38.97.79.146 User-Agent: G2/1.0 Injection-Date: Fri, 30 Nov 2012 16:01:30 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:195651 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87972 Archived-At: Emacsclient Mac OS X 'No socket or alternate editor' error How it was invoked and what gets returned: $ /usr/local/bin/emacsclient ~/pgadmin.log /usr/local/bin/emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". /usr/local/bin/emacsclient: No socket or alternate editor. Please use: --socket-name --server-file (or environment variable EMACS_SERVER_FILE) --alternate-editor (or environment variable ALTERNATE_EDITOR) Upstream errors I thought I solved but perhaps not: M-x server-start Getting errors like (error "The directory `/var/folders/b3/9k90h2ln2ns__vznkc0642vc3m01mw/T//emacs121636508' is unsafe") So I verified it used the same file repeatedly then did a $ chmod 700 emacs121636508 After than M-x server-start returned without errors To see if it was fixed in a later version I just reinstalled emacs with $ brew install emacs --cocoa --use-git-head --HEAD $ mv /usr/local/Cellar/emacs/HEAD/Emacs.app /Applications/ That didnt fix it As an experiment yesterday I redefined (defun server-ensure-safe-dir (dir) t) and it worked. But today the same trick did not work so I did the chmod 700 and that seemed to work, but failed when I went to start emacsclient. Thank you in advance for taking the time to look at this issue.