From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Emacsclient does not raise frame Date: Wed, 3 Jan 2018 04:13:23 -0800 (PST) Message-ID: <0aeb0a41-02ff-41e4-967e-0a3a63e203e8@googlegroups.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1514981619 7916 195.159.176.226 (3 Jan 2018 12:13:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 12:13:39 +0000 (UTC) Injection-Date: Wed, 03 Jan 2018 12:13:24 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 13:13:35 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWhvA-0001DO-Lr for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 13:13:24 +0100 Original-Received: from localhost ([::1]:50446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWhx9-0004W2-Rh for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 07:15:27 -0500 X-Received: by 10.200.33.247 with SMTP id 52mr791539qtz.50.1514981604026; Wed, 03 Jan 2018 04:13:24 -0800 (PST) X-Received: by 10.31.96.72 with SMTP id u69mr129483vkb.11.1514981603715; Wed, 03 Jan 2018 04:13:23 -0800 (PST) Original-Path: usenet.stanford.edu!m31no6078325qtf.0!news-out.google.com!t48ni2455qtc.1!nntp.google.com!m31no6078320qtf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=61.1.39.34; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 61.1.39.34 Original-Xref: usenet.stanford.edu gnu.emacs.help:221430 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:115545 Archived-At: 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