View previous topic :: View next topic |
Author |
Message |
jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Wed Apr 11, 2007 3:56 am Post subject: GNU emacs compiled w/gtk support? debian: emacs-snapshot-gtk |
|
|
I didn't even know pretty emacs existed until yesterday, but it sounds like something I'd really like to try.
It's (apparently) gnu emacs with GTK support, so your gnu emacs environment can optionally run in a window when you're at a gnome desktop. It's (again, apparently) not XEmacs, that's the first thing I asked.
It's packaged on debian as http://packages.debian.org/unstable/editors/emacs-snapshot-gtk, but I don't find a proper home page for this version of gnu emacs.
Anyone know more about it, and have we any emacs gurus who can be enticed to add 'gtk' as a USE var to our emacs ebuild? Should I file a feature request for it? Thanks. |
|
Back to top |
|
|
jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Wed Apr 11, 2007 4:02 am Post subject: |
|
|
Oh, I see that emacs-cvs has a gtk USE var, that must be the one.
Do I still USE="-X" to prevent XEmacs from being built? I do that with the regular emacs package. Thanks.
Code: |
/usr/portage/app-editors/emacs-cvs/emacs-cvs-22.0.97.ebuild
if use X; then
myconf="${myconf} --with-x"
myconf="${myconf} --with-xpm"
myconf="${myconf} $(use_with toolkit-scroll-bars)"
myconf="${myconf} $(use_with jpeg) $(use_with tiff)"
myconf="${myconf} $(use_with gif) $(use_with png)"
if use gtk; then
einfo "Configuring to build with GTK support"
myconf="${myconf} --with-x-toolkit=gtk"
elif use Xaw3d; then
einfo "Configuring to build with Xaw3d(athena) support"
myconf="${myconf} --with-x-toolkit=athena"
myconf="${myconf} --without-gtk"
myconf="${myconf} --with-x-toolkit=lucid"
elif use motif; then
einfo "Configuring to build with motif toolkit support"
myconf="${myconf} --without-gtk"
myconf="${myconf} --with-x-toolkit=motif"
elif use lesstif; then
einfo "Configuring to build with lesstif toolkit support"
myconf="${myconf} --without-gtk"
myconf="${myconf} --with-x-toolkit=motif"
fi
else
myconf="${myconf} --without-x"
fi |
I'm a little confused as to whether that --with-x will build XEmacs with gtk support.
I don't want to mix in XEmacs' here, I'd like to build specifically/only GNU emacs, and hopefully have some method of command-line control whether it opens in a gnome-terminal window (e.g. for postmortem python debuggers, etc.) or in its own GTK window if started with the proper command line or desktop shortcut. Thanks. |
|
Back to top |
|
|
ilm Guru
Joined: 29 Jun 2006 Posts: 310 Location: Brisbane, Australia
|
Posted: Wed Apr 11, 2007 9:29 am Post subject: |
|
|
XEmacs is a completely separate package... emerging emacs with the X flag will give you an emacs gui (not sure what the default GUI library is, but it can use motif, and optionally the 3d athena widget set).
emacs-cvs has gtk gui support... but it still isn't emacs. emacs-cvs is the developer version of emacs, as they're still coding up the next official version.
So there are at least 3 emacs builds in portage (there are other emacsen such as qemacs, etc.):
Code: | app-editors/emacs
app-editors/emacs-cvs
app-editors/xemacs |
|
|
Back to top |
|
|
Mickael Advocate
Joined: 05 Sep 2005 Posts: 2387 Location: ~Belfort! - France - EU
|
Posted: Wed Apr 11, 2007 9:33 am Post subject: Re: GNU emacs compiled w/gtk support? debian: emacs-snapshot |
|
|
jeffk wrote: | I didn't even know pretty emacs existed until yesterday, but it sounds like something I'd really like to try.
It's (apparently) gnu emacs with GTK support, so your gnu emacs environment can optionally run in a window when you're at a gnome desktop. It's (again, apparently) not XEmacs, that's the first thing I asked.
It's packaged on debian as http://packages.debian.org/unstable/editors/emacs-snapshot-gtk, but I don't find a proper home page for this version of gnu emacs.
Anyone know more about it, and have we any emacs gurus who can be enticed to add 'gtk' as a USE var to our emacs ebuild? Should I file a feature request for it? Thanks. |
Hi you must use the .23 version (CVS) in order to have the AA fonts and the gtk interface. Code: | emerge -pv emacs-cvs
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] app-editors/emacs-cvs-23.0.0-r1 USE="X gif gtk jpeg nls png spell tiff toolkit-scroll-bars xft -Xaw3d (-aqua) -gzip-el -source" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
|
Enjoy!
EDIT : Code: |
euse -i xft
global use flags (searching: xft)
************************************************************
no matching entries found
local use flags (searching: xft)
************************************************************
[- ] xft (app-editors/emacs-cvs):
Build Emacs with support for the XFT font renderer (ie. the XFT_JHD_BRANCH branch from CVS) |
_________________ À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo |
|
Back to top |
|
|
ZZamboni Tux's lil' helper
Joined: 16 Jan 2004 Posts: 96 Location: Zurich, Switzerland
|
Posted: Wed Apr 11, 2007 11:10 am Post subject: |
|
|
jeffk wrote: | Oh, I see that emacs-cvs has a gtk USE var, that must be the one. |
It is indeed. I have been using it for a few months now, and it works perfectly, and looks much nicer than standard emacs. You need to set the USE="gtk" flag.
Quote: | Do I still USE="-X" to prevent XEmacs from being built? I do that with the regular emacs package. |
As others have said, xemacs is a completely different package. You need USE="X" also with emacs-cvs, otherwise you will get no GUI (hence no GTK support either). |
|
Back to top |
|
|
chiefmonkey Tux's lil' helper
Joined: 07 Nov 2004 Posts: 82
|
Posted: Wed Apr 11, 2007 12:24 pm Post subject: |
|
|
I tried building it on my amd64 box but I got
Failed Patch: emacs-cvs-darwin-fsf-gcc.patch !
Code: |
***** emacs-cvs-darwin-fsf-gcc.patch *****
==========================================
PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch
==========================================
patching file src/s/darwin.h
Hunk #1 FAILED at 264.
1 out of 1 hunk FAILED -- saving rejects to file src/s/darwin.h.rej
patching file configure
Hunk #1 succeeded at 2391 (offset 8 lines).
==========================================
PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch
==========================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|* Fabian Groffen <grobian@gentoo.org>
| Remove gcc-apple specific flags, such that we can compile with FSF GCC
|
|--- src/s/darwin.h
|+++ src/s/darwin.h
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 17 of patch
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure
|+++ configure
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
==========================================
PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch
==========================================
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|* Fabian Groffen <grobian@gentoo.org>
| Remove gcc-apple specific flags, such that we can compile with FSF GCC
|
|--- src/s/darwin.h
|+++ src/s/darwin.h
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 17 of patch
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure
|+++ configure
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
==========================================
PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch
==========================================
missing header for unified diff at line 6 of patch
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|* Fabian Groffen <grobian@gentoo.org>
| Remove gcc-apple specific flags, such that we can compile with FSF GCC
|
|--- src/s/darwin.h
|+++ src/s/darwin.h
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 17 of patch
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure
|+++ configure
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
==========================================
PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/app-editors/emacs-cvs/files/emacs-cvs-darwin-fsf-gcc.patch
==========================================
missing header for unified diff at line 6 of patch
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|* Fabian Groffen <grobian@gentoo.org>
| Remove gcc-apple specific flags, such that we can compile with FSF GCC
|
|--- src/s/darwin.h
|+++ src/s/darwin.h
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 17 of patch
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure
|+++ configure
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
|
|
|
Back to top |
|
|
ilm Guru
Joined: 29 Jun 2006 Posts: 310 Location: Brisbane, Australia
|
Posted: Wed Apr 11, 2007 12:44 pm Post subject: |
|
|
ZZamboni wrote: |
It is indeed. I have been using it for a few months now, and it works perfectly, and looks much nicer than standard emacs. You need to set the USE="gtk" flag. |
I tried using emacs-cvs a few months ago, and actually preferred the normal one. Anyway, I figured I'd try it again, but I got the same error as chiefmonkey. |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Wed Apr 11, 2007 4:58 pm Post subject: |
|
|
It may be worth trying again next day: it is a live CVS after all and, in the past, a failed compilation one day has run without trouble a day or two later. _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
V-Li Retired Dev
Joined: 03 Jan 2006 Posts: 613
|
Posted: Wed Jun 27, 2007 4:31 pm Post subject: |
|
|
As a side note: If you have USE=gtk, GTK+ is chosen over all other toolkits (Xaw3d, motif) from Emacs 22 on. We currently have the following ebuilds:
app-editors/emacs-21.4: Emacs 21.4 release with some additional patches that only fix build errors.
app-editors/emacs-22.1: Emacs 22.1 release (GTK+ support), with some patches to have proper USE flag handling
app-editors/emacs-cvs-22.1.50: Live ebuild for the EMACS_22_BASE branch which will become another 22.x release someday
app-editors/emacs-cvs-23.0.0: unicode-2 branch of Emacs, which has completely rewritten encoding handling, will be merged in the main line (no ebuild for that, though)
app-editors/emacs-cvs-23.1.50: multi-tty branch (ebuild only available from the Emacs overlay), which adds the multi-tty patches, so same content can be displayed on several displays, will be merged into main line |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|