LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   emacs configuration option request (http://www.linuxquestions.org/questions/slackware-14/emacs-configuration-option-request-4175453169/)

hpfeil 03-07-2013 02:46 PM

emacs configuration option request
 
If it wouldn't be a hassle, would it be possible to add

--with-x-toolkit=lucid

to the emacs.SlackBuild script? During a rare moment of lucidity, I thought it might be a smart idea to fire up an emacs daemon in XFCE4, much like the Thunar daemon, then invoke emacsclient whenever I want to play with a text file (C, Perl, etc.). Taken by surprise, this scheme was baffled with the following error message:

Quote:

Warning: due to a long standing Gtk+ bug
http://bugzilla.gnome.org/show_bug.cgi?id=85715
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Sew! I got the Slackware Current source and and script files, dropped the configuration option into emacs.SlackBuilds, and almost forgot to change the version number so it wouldn't get deleted during an upgrade. I learned that the upgradepkg script doesn't compare version numbers or dates for files in /var/adm/packages. Suffering from congenital indolence, as I oftentimes do (born lazy), I rsync'd the fresh packages then `upgradepkg */*.txz` from the slackware64 directory. Next time, I'll diff the ChangeLog and upgrade only those new packages. The lazy way upgraded the new package with the old one, thus hosing my efforts to make that GTK+ bug go away (the bug was opened in 2002, then recently reopened, but no entries after 2010).

It's really not a big deal, so if you don't want to change things, that's ok with me.

Richard Cranium 03-08-2013 11:46 PM

The emacs wiki has useful information.

Please see this, which gives a way to invoke Emacs that doesn't trigger/care about the above bug. (Even though the wiki page talks about Emacs 23, what is posted works just fine for Emacs 24.

hpfeil 03-10-2013 08:45 AM

Thank you very much for your help! Color me emacs noob. Much like the Wordperfect/MsWord issue of the mid-eighties, although all those command keystrokes make things quicker, I find it a daunting task to learn them. I only stumbled on emacs in XFCE4 as an alternative to vim because recent changes to gvim invoke some kind of visual editor mode when you try to highlight-copy-paste. I can live with compiling a local copy that with that x-toolkit config option. I just add it to the existing build script, so no worries.

I appreciate that you hunted down that solution for me!

T3slider 03-10-2013 12:13 PM

Quote:

Originally Posted by hpfeil (Post 4908499)
I only stumbled on emacs in XFCE4 as an alternative to vim because recent changes to gvim invoke some kind of visual editor mode when you try to highlight-copy-paste.

Code:

:set mouse=r
should stop that. Or throw
Code:

set mouse=r
into ~/.vimrc

(Unless I'm misunderstanding what you said...)

Richard Cranium 03-12-2013 10:28 PM

Quote:

Originally Posted by hpfeil (Post 4908499)
Color me emacs noob.

I've been using Emacs since 1995 and I consider myself an Emacs noob.

There's always something about emacs that you don't know. Just like life itself.

As long as you can you can learn, you're still alive. ;)

hpfeil 03-13-2013 11:49 AM

Code:

<script type="text/javascript">
<!--
    alert("TRVTH!");
//-->
</script>


hpfeil 03-13-2013 11:57 AM

[b]
[noparse]
TRVTH


All times are GMT -5. The time now is 09:06 AM.