public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Håkon Alstadheim" <hakon@alstadheim.priv.no>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: [konqueror] Can't invoke and editor when `view source'
Date: Thu, 17 Jan 2008 03:44:58 +0100	[thread overview]
Message-ID: <478EC12A.2070505@alstadheim.priv.no> (raw)
In-Reply-To: <871w8hzcmo.fsf@newsguy.com>

reader@newsguy.com wrote:
> Håkon Alstadheim <hakon@alstadheim.priv.no> writes:
>
>   
>> reader@newsguy.com wrote:
>>     
>>> Mick <michaelkintzios@gmail.com> writes:
>>>
>>>   
>>>       
>>>> Don't know the first thing about emacs, but it may need bringing up
>>>> a terminal first which in turn runs emacs.  You may want to try
>>>> selecting the "Run in terminal" or invoke it like so:
>>>>
>>>> xterm -e /usr/bin/emacs
>>>>     
>>>>         
>>> This should not be a factor with X enabled emacs.  And in fact calling
>>> emacs at a cmd prompt just brigs up emacs in it own window, not
>>> another xterm.
>>>
>>> However, and surprisingly it does work... Inserting the xterm -e
>>> command  at:    right click/ open with/ other
>>>
>>> Brings first an xterm which immediately spawns a new emacs window (not
>>> in the xterm but on its own)
>>>
>>> I'm pretty sure this is not what SHOULD happen though.  I SHOULD be
>>> able to just insert /usr/bin/emacs  since it does not run in an
>>> xterm. But... thanks .. at least I can edit a page with emacs now.
>>>
>>>   
>>>       
>> I have this same problem on some machines. Notably the ones where I've
>> put the most cruft in .emacs. I suspect that there is some bug that
>> stops garbage-collection from happening during startup so emacs runs
>> out of memory. Somehow having a tty attached works around that. 
>>     
>
> A little more on this.  Do you mean it works just fine on some
> machines as well?
>
> Something to test your theory... (I tried it here with no better
> results) is from Konq, right click/open with/other  and put /usr/bin/emacs -Q
>
> Which will start emacs with no site-file or ~/.emacs being loaded.
> I tried that here but still just got the bouncing emacs icon/cursor.
>
> Can you start emacs without problems from konqueror at right
> click/open with/  on any machine? I mean without `xterm -e emacs'
>
>
>   
Not running konqueror here, but yes, emacs would fire up quite reliably 
when I had it as my source editor in mozilla, way back when. You most 
definitely SHOULD be able to run it without a terminal window. If you 
are really keen on getting this to work, you could write a little script 
like so to use as your editor: ----
#!/bin/bash
date >>~/emacs.log
emacs "$@" >>~/emacs.log 2>&1
-------
Come to think of it (while looking up the $@ semantics), could it be 
that the argument fed from konqueror has spaces in it? Maybe it needs 
quoting?

Experiment with adding </dev/null onto there (that never did it for me). 
Have a look at what the log says.


--
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-01-17  2:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16  1:23 [gentoo-user] [konqueror] Can't invoke and editor when `view source' reader
2008-01-16  6:17 ` Hemmann, Volker Armin
2008-01-16  8:25   ` Mick
2008-01-16 18:56     ` [gentoo-user] " reader
2008-01-16 19:59       ` Håkon Alstadheim
2008-01-16 21:14         ` reader
2008-01-16 21:25         ` reader
2008-01-17  2:44           ` Håkon Alstadheim [this message]
2008-01-17  3:52             ` reader
2008-01-16 18:57   ` reader
  -- strict thread matches above, loose matches on Subject: below --
2009-01-08 19:34 Phillip Sawbridge

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=478EC12A.2070505@alstadheim.priv.no \
    --to=hakon@alstadheim.priv.no \
    --cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox