all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient Mac OS X 'No socket or alternate editor' error
@ 2012-11-30 16:01 Charles Magid
  0 siblings, 0 replies; only message in thread
From: Charles Magid @ 2012-11-30 16:01 UTC (permalink / raw)
  To: help-gnu-emacs


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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-30 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30 16:01 emacsclient Mac OS X 'No socket or alternate editor' error Charles Magid

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.