all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Subhan Michael Tindall <SubhanT@familycareinc.org>
To: "'Tory S. Anderson'" <torys.anderson@gmail.com>,
	Oliver Kappel <ngreply@gmx.net>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: emacsclient command line use existing client
Date: Fri, 19 Sep 2014 17:38:27 +0000	[thread overview]
Message-ID: <68f705e2e2b14796ad557f2155e37f39@fcmailsvr2.familycareinc.org> (raw)
In-Reply-To: <87iokjmt54.fsf@gmail.com>



> -----Original Message-----
> From: help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org
> [mailto:help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org] On
> Behalf Of Tory S. Anderson
> Sent: Friday, September 19, 2014 10:12 AM
> To: Oliver Kappel
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: emacsclient command line use existing client
> 
> *sigh* still no go. I've put the full path in the calls everywhere, and I've
> named the server "server" instead of "emacs-client" (you were right; that
> was one problem). When I use a shortcut that calls just the "emacs-client -c"
> it opens, attached to "server" (with all the same buffers still available). When
> I go to the start menu and find "emacs client", it is also working appropriately.
> However, when I hit ~/email.so from my Firefox, it launches a new server.
> Adding the fully qualified path, and/or "-s server" doesn't change this.
> 
> $ whereis emacsclient
> emacsclient: /usr/bin/emacsclient /usr/share/man/man1/emacsclient.1.gz
> 
> I have only one location. Is there some reason that .so script (I could just as
> well rename it to .sh) is opening it as a new server?
> 
> Running:
> GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-
> 08-18 on buildvm-21.phx2.fedoraproject.org Fedora 20 x64 in KDE
> 
> << full contents of email.so >>
> -------------------------------
> #!/bin/sh
> # emacs-mailto-handler
> 
> mailto=$1
> mailto="mailto:${mailto#mailto:}"
> mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g')
> emacs_server="server"
> elisp_expr="(mailto-compose-mail \"$mailto\")"
> 
> /usr/bin/emacsclient -a "" -c -n -s "$emacs_server" --eval "$elisp_expr" \
> 	'(set-window-dedicated-p (selected-window) t)'
^^^^^^
This line is your most obvious potential point of failure.  Have you checked your running script to make sure that your variable expansion is proper?
IE Is -s "$emacs_server" actually expanding to "server" and not say ""server"" or something obnoxious like that? 
Try hard-coding the call line to -s "server" and see what happens.



This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you.




  reply	other threads:[~2014-09-19 17:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-11 12:58 emacsclient command line use existing client Tory S. Anderson
2014-09-12  2:42 ` Michael Heerdegen
2014-09-12  7:43   ` Thorsten Jolitz
2014-09-12 12:16   ` Tory S. Anderson
2014-09-12 13:42     ` Oliver Kappel
2014-09-15 11:22       ` Tory S. Anderson
2014-09-15 12:04         ` Michael Heerdegen
2014-09-15 12:28         ` Oliver Kappel
2014-09-19 17:12           ` Tory S. Anderson
2014-09-19 17:38             ` Subhan Michael Tindall [this message]
2014-09-19 17:44               ` Tory S. Anderson
2014-09-20  2:14             ` Charles Philip Chan
2014-09-20 10:42               ` Tory S. Anderson
2014-09-20 11:35                 ` Charles Philip Chan
2014-09-20 13:04                   ` Tory S. Anderson
2014-09-21  1:32                     ` Charles Philip Chan
2014-09-22 18:53                       ` Tory S. Anderson
2014-09-21  1:32                     ` Charles Philip Chan
2014-09-12 16:28     ` Subhan Michael Tindall
2014-09-13 17:29     ` Harry Putnam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68f705e2e2b14796ad557f2155e37f39@fcmailsvr2.familycareinc.org \
    --to=subhant@familycareinc.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ngreply@gmx.net \
    --cc=torys.anderson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.