LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-07-2013, 03:46 PM   #1
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current, custom kernel, amd64, Beyond LinuxFromScratch
Posts: 130
Blog Entries: 1

Rep: Reputation: Disabled
Lightbulb 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.
 
Old 03-09-2013, 12:46 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,575

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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.
 
Old 03-10-2013, 09:45 AM   #3
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current, custom kernel, amd64, Beyond LinuxFromScratch
Posts: 130
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
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!
 
Old 03-10-2013, 01:13 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
Quote:
Originally Posted by hpfeil View Post
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...)
 
Old 03-12-2013, 11:28 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,575

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Quote:
Originally Posted by hpfeil View Post
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.
 
1 members found this post helpful.
Old 03-13-2013, 12:49 PM   #6
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current, custom kernel, amd64, Beyond LinuxFromScratch
Posts: 130
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Code:
<script type="text/javascript">
<!--
    alert("TRVTH!");
//-->
</script>

Last edited by hpfeil; 03-13-2013 at 01:03 PM. Reason: Keeps dropping the text to lower-case
 
Old 03-13-2013, 12:57 PM   #7
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current, custom kernel, amd64, Beyond LinuxFromScratch
Posts: 130
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
[b]
[noparse]
TRVTH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
save option in .emacs xeon123 Linux - Software 2 03-07-2011 05:44 PM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 03:41 AM
How to save fonts option in Emacs ? naihe2010 Linux - Software 3 11-03-2005 12:14 AM
emacs mail configuration arpi Linux - Software 0 06-05-2004 11:59 PM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration