all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacsclient does not raise frame
Date: Wed, 3 Jan 2018 04:13:23 -0800 (PST)	[thread overview]
Message-ID: <0aeb0a41-02ff-41e4-967e-0a3a63e203e8@googlegroups.com> (raw)
In-Reply-To: <mailman.6761.1514980510.27995.help-gnu-emacs@gnu.org>

On Wednesday, January 3, 2018 at 5:25:13 PM UTC+5:30, Andrew Savonichev wrote:
> Hi Rusi,
> 
> > Because currently if
> > - emacs is started as --daemon
> > - emacsclient is started without -c
> >
> > It tries to open non-GUI emacs
> 
> So  your problem is that if no emacs frame is running, emacsclient without '-c'
> creates a new terminal frame instead of a new GUI frame?
> 
> In this case, I don't know any built-in way to do this without going
> into elisp hacking
> around `frame-list', `frame-parameters' and `make-frame-on-display'.

Its really just a little bug: Emacs tries to open itself in a terminal even when there is none!

> 
> > Ive managed to get firefox to call emacs(client) and save
> > links+description(title)+selection(in firefox; optional) into an org mode capture buffer.
> 
> Can you share the solution for Firefox?

This is more convoluted than I can describe in short!!

There is this bookmark put into the bookmark toolbar of firefox

javascript:location.href='org-protocol://capture?'+'&url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection());


The receiving template is:

(setq org-capture-templates '(("w" "Web site"
			       item
			       (file+headline "~/org/inbox.org" "Web")
			       "%a\n%i")))


Nevertheless getting org-protocol registered with firefox is one headache
Figuring out when a ".desktop" file is used and when a normal executable is another


      parent reply	other threads:[~2018-01-03 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-31 15:33 Emacsclient does not raise frame Rusi
2018-01-01  4:05 ` Rusi
2018-01-03 11:55   ` Andrew Savonichev
     [not found]   ` <mailman.6761.1514980510.27995.help-gnu-emacs@gnu.org>
2018-01-03 12:13     ` Rusi [this message]

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=0aeb0a41-02ff-41e4-967e-0a3a63e203e8@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.