all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to speed up emacs start time?
       [not found] <mailman.3539.1248999408.2239.help-gnu-emacs@gnu.org>
@ 2009-07-31  0:33 ` Rafael
  2009-07-31  7:51   ` n179911
       [not found]   ` <mailman.3561.1249026712.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Rafael @ 2009-07-31  0:33 UTC (permalink / raw
  To: help-gnu-emacs

n179911 <n179911@gmail.com> writes:

> And in my ~/bin/emacslib, I have
>
> $ ls
> icicles-chg.el   icicles-doc1.el  icicles-fn.el    icicles-mode.el  icicles.el
> icicles-cmd1.el  icicles-doc2.el  icicles-mac.el   icicles-opt.el
> icicles-cmd2.el  icicles-face.el  icicles-mcmd.el  icicles-var.el
>
> Can you please tell me how can I speed up emacs startup time? Is there
> anyway to compile the .el. files so that emacs can come up faster?

This is what I would do: In a dired buffer of the ~/bin/emacslib
directory, mark the .el files with 'M' and then byte-compile them with
'B'.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
  2009-07-31  0:33 ` How to speed up emacs start time? Rafael
@ 2009-07-31  7:51   ` n179911
  2009-07-31  8:11     ` Jonatan Andersson
                       ` (2 more replies)
       [not found]   ` <mailman.3561.1249026712.2239.help-gnu-emacs@gnu.org>
  1 sibling, 3 replies; 10+ messages in thread
From: n179911 @ 2009-07-31  7:51 UTC (permalink / raw
  To: Rafael; +Cc: help-gnu-emacs

Thank you. Emacs 23.1 on Mac OSX works.
But when I start emacs at terminal (instead of running Emacs.app),
emacs (in /usr/bin/emacs version 22)  complains that the .elc are
compiled for version 23.

Can you please tell me what can I do to fix this?

Thank you.

On Thu, Jul 30, 2009 at 5:33 PM, Rafael<rvf0068@gmail.com> wrote:
> n179911 <n179911@gmail.com> writes:
>
>> And in my ~/bin/emacslib, I have
>>
>> $ ls
>> icicles-chg.el   icicles-doc1.el  icicles-fn.el    icicles-mode.el  icicles.el
>> icicles-cmd1.el  icicles-doc2.el  icicles-mac.el   icicles-opt.el
>> icicles-cmd2.el  icicles-face.el  icicles-mcmd.el  icicles-var.el
>>
>> Can you please tell me how can I speed up emacs startup time? Is there
>> anyway to compile the .el. files so that emacs can come up faster?
>
> This is what I would do: In a dired buffer of the ~/bin/emacslib
> directory, mark the .el files with 'M' and then byte-compile them with
> 'B'.
>




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
  2009-07-31  7:51   ` n179911
@ 2009-07-31  8:11     ` Jonatan Andersson
  2009-07-31  8:29     ` X fonts handling in 23.1 Dmitry Antipov
       [not found]     ` <mailman.3580.1249050271.2239.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 10+ messages in thread
From: Jonatan Andersson @ 2009-07-31  8:11 UTC (permalink / raw
  To: help-gnu-emacs

Hi,

Having two different version of any program installed is a sure way to  
go mad.

I would suggest that you remove /usr/bin/emacs from the system (and  
emacslient et al) , and add the path to the Emacs 23.1 binary. I have  
first in my PATH variable the /Applications/Emacs.app/Contents/MacOS/:/ 
usr/bin: in my


With kindest regards
    Jonatan Andersson



On Jul 31, 2009, at 9:51 AM, n179911 wrote:

> Thank you. Emacs 23.1 on Mac OSX works.
> But when I start emacs at terminal (instead of running Emacs.app),
> emacs (in /usr/bin/emacs version 22)  complains that the .elc are
> compiled for version 23.
>
> Can you please tell me what can I do to fix this?
>
> Thank you.
>
> On Thu, Jul 30, 2009 at 5:33 PM, Rafael<rvf0068@gmail.com> wrote:
>> n179911 <n179911@gmail.com> writes:
>>
>>> And in my ~/bin/emacslib, I have
>>>
>>> $ ls
>>> icicles-chg.el   icicles-doc1.el  icicles-fn.el    icicles- 
>>> mode.el  icicles.el
>>> icicles-cmd1.el  icicles-doc2.el  icicles-mac.el   icicles-opt.el
>>> icicles-cmd2.el  icicles-face.el  icicles-mcmd.el  icicles-var.el
>>>
>>> Can you please tell me how can I speed up emacs startup time? Is  
>>> there
>>> anyway to compile the .el. files so that emacs can come up faster?
>>
>> This is what I would do: In a dired buffer of the ~/bin/emacslib
>> directory, mark the .el files with 'M' and then byte-compile them  
>> with
>> 'B'.
>>
>
>





^ permalink raw reply	[flat|nested] 10+ messages in thread

* X fonts handling in 23.1
  2009-07-31  7:51   ` n179911
  2009-07-31  8:11     ` Jonatan Andersson
@ 2009-07-31  8:29     ` Dmitry Antipov
       [not found]     ` <mailman.3580.1249050271.2239.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 10+ messages in thread
From: Dmitry Antipov @ 2009-07-31  8:29 UTC (permalink / raw
  To: help-gnu-emacs

Hello all,

my ~/.Xdefaults contains:

Emacs*font: -misc-*

And 22.3 starts with the expected font. But 23.1 doesn't.

Moreover, I can start 22.3 with '-fn fixed' and then do
(set-frame-font "-misc-*"), and it toggles the font
as expected. But, again, not for 23.1.

Both versions are configured with:

./configure --without-dbus --without-rsvg --without-sound \
             --with-x-toolkit=lucid --without-xft --without-pop

I've tried with '-Q' and with 'LANG=C', but it doesn't matter.

This issue was observed on two Fedora 10 and Fedora 11 systems.

Dmitry




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
       [not found]   ` <mailman.3561.1249026712.2239.help-gnu-emacs@gnu.org>
@ 2009-07-31  8:33     ` Anselm Helbig
  2009-07-31  9:23       ` Peter Dyballa
       [not found]       ` <mailman.3567.1249032229.2239.help-gnu-emacs@gnu.org>
  2009-08-02 16:12     ` Rugxulo
  1 sibling, 2 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-07-31  8:33 UTC (permalink / raw
  To: help-gnu-emacs

Hi!

> Thank you. Emacs 23.1 on Mac OSX works.
> But when I start emacs at terminal (instead of running Emacs.app),
> emacs (in /usr/bin/emacs version 22)  complains that the .elc are
> compiled for version 23.
> 
> Can you please tell me what can I do to fix this?

The easy way is to also use emacs 23 in the terminal,
/path/to/your/emacs -nw should do it. Or just fix your PATH
environment variable so that your emacs 23 bin directory comes first.

Otherwise you'd have to use different directories for different emacs
version + one directory with the .el sources. You'd symlink your
source files over to the directories for your different emacs versions
and compile them there. This is more or less how debian's emacs
packaging works when you have multiple emacsen installed. 

In your .emacs you'd to something like this:

  (add-to-list 'load-path 
               (format "/path/to/emacs-lisp/emacs-%s" emacs-major-version))

But I'd rather use emacs 23 on the console as well. With the new
multi-tty feature you should also be able to use the same instance for
this, issue M-x server-start and then connect with `emacsclient -t'. I
heard that multi-tty doesn't yet work well on OS X, though.

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
  2009-07-31  8:33     ` How to speed up emacs start time? Anselm Helbig
@ 2009-07-31  9:23       ` Peter Dyballa
       [not found]       ` <mailman.3567.1249032229.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2009-07-31  9:23 UTC (permalink / raw
  To: Anselm Helbig; +Cc: help-gnu-emacs


Am 31.07.2009 um 10:33 schrieb Anselm Helbig:

> The easy way is to also use emacs 23 in the terminal,
> /path/to/your/emacs -nw should do it.


Which is /Applications/Emacs.app/Contents/MacOS/Emacs – and which has  
some problems with the command line options!

--
Mit friedvollen Grüßen

   Pete

One doesn't expect governments to obey the law because of some higher  
moral development.  One expects them to obey the law because they  
know that if they don't, those who aren't shot will be hanged.
				– Michael Shirley







^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
       [not found]       ` <mailman.3567.1249032229.2239.help-gnu-emacs@gnu.org>
@ 2009-07-31 10:02         ` Anselm Helbig
  2009-07-31 15:53           ` Peter Dyballa
  0 siblings, 1 reply; 10+ messages in thread
From: Anselm Helbig @ 2009-07-31 10:02 UTC (permalink / raw
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

At Fri, 31 Jul 2009 11:23:36 +0200,
Peter Dyballa <Peter_Dyballa@Web.DE> wrote:
> 
> 
> Am 31.07.2009 um 10:33 schrieb Anselm Helbig:
> 
> > The easy way is to also use emacs 23 in the terminal,
> > /path/to/your/emacs -nw should do it.
> 
> 
> Which is /Applications/Emacs.app/Contents/MacOS/Emacs – and which has  
> some problems with the command line options!

OK, then maybe you should rather not use Emacs at all but switch to
Textmate. 8;-)

*ducks-and-runs*


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
  2009-07-31 10:02         ` Anselm Helbig
@ 2009-07-31 15:53           ` Peter Dyballa
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2009-07-31 15:53 UTC (permalink / raw
  To: Anselm Helbig; +Cc: help-gnu-emacs


Am 31.07.2009 um 12:02 schrieb Anselm Helbig:

> OK, then maybe you should rather not use Emacs at all but switch to
> Textmate. 8;-)
>

Or don't give so many...

--
Mit friedvollen Grüßen

   Pete

Only two things are infinite, the universe and human stupidity, and  
I'm not sure about the former.
				– Albert Einstein







^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: X fonts handling in 23.1
       [not found]     ` <mailman.3580.1249050271.2239.help-gnu-emacs@gnu.org>
@ 2009-08-01  0:51       ` Tim X
  0 siblings, 0 replies; 10+ messages in thread
From: Tim X @ 2009-08-01  0:51 UTC (permalink / raw
  To: help-gnu-emacs

Dmitry Antipov <dmantipov@yandex.ru> writes:

> Hello all,
>
> my ~/.Xdefaults contains:
>
> Emacs*font: -misc-*
>
> And 22.3 starts with the expected font. But 23.1 doesn't.
>
> Moreover, I can start 22.3 with '-fn fixed' and then do
> (set-frame-font "-misc-*"), and it toggles the font
> as expected. But, again, not for 23.1.
>
> Both versions are configured with:
>
> ./configure --without-dbus --without-rsvg --without-sound \
>             --with-x-toolkit=lucid --without-xft --without-pop
>
> I've tried with '-Q' and with 'LANG=C', but it doesn't matter.
>
> This issue was observed on two Fedora 10 and Fedora 11 systems.
>

Font handling in 23 is all new and supports antialiased fonts. Check the
NEWS file for details. 

I found I had to add 

Emacs.fontBackend: xft

to my .Xresources file in order to get fonts working correctly. 
This is on a Debian testing/unstable box. 

Why are you building with lucid rather than the default GTK? Also, why
disable dbus support? Did the output from ./configure give anything
useful? 

Given its a new release, I'd be inclined to build just using all
defaults to start with and then see if that works and slowly remove what
you don't want. This is also a good way to see how things have changed
and then enable you to re-evaluate what is not required. 

For the last month or so, the commands I've used to build (from CVS) are 

./configure prefix=/usr/local
make bootstrap 
make install

The font I'm using is -fn "DejaVu Sans Mono-14" and it works very
nicely. 

HTH

Tim




-- 
tcross (at) rapttech dot com dot au


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: How to speed up emacs start time?
       [not found]   ` <mailman.3561.1249026712.2239.help-gnu-emacs@gnu.org>
  2009-07-31  8:33     ` How to speed up emacs start time? Anselm Helbig
@ 2009-08-02 16:12     ` Rugxulo
  1 sibling, 0 replies; 10+ messages in thread
From: Rugxulo @ 2009-08-02 16:12 UTC (permalink / raw
  To: help-gnu-emacs

Hi,

On Jul 31, 2:51 am, n179911 <n179...@gmail.com> wrote:
>
> Thank you. Emacs 23.1 on Mac OSX works.
> But when I start emacs at terminal (instead of running Emacs.app),
> emacs (in /usr/bin/emacs version 22)  complains that the .elc are
> compiled for version 23.

Surprisingly, I don't think anybody answered your question correctly
yet. So here's my lame attempt ....

Anyways, it's incompatible now due to changes in 23.1. You'll have to
compile with 22, I suppose, which will still work with 23.

(quoting from NEWS):

"During byte-compilation, Emacs 23 uses `utf-8-emacs' to write files.
As a result, byte-compiled files containing non-ASCII characters can't
be read by earlier versions of Emacs.  Files compiled by Emacs 20, 21,
or 22 are loaded correctly as `emacs-mule' (whether or not they
contain multibyte characters).  This takes somewhat more time, so it
may be worth recompiling existing .elc files which don't need to be
shared with older Emacsen."


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-02 16:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3539.1248999408.2239.help-gnu-emacs@gnu.org>
2009-07-31  0:33 ` How to speed up emacs start time? Rafael
2009-07-31  7:51   ` n179911
2009-07-31  8:11     ` Jonatan Andersson
2009-07-31  8:29     ` X fonts handling in 23.1 Dmitry Antipov
     [not found]     ` <mailman.3580.1249050271.2239.help-gnu-emacs@gnu.org>
2009-08-01  0:51       ` Tim X
     [not found]   ` <mailman.3561.1249026712.2239.help-gnu-emacs@gnu.org>
2009-07-31  8:33     ` How to speed up emacs start time? Anselm Helbig
2009-07-31  9:23       ` Peter Dyballa
     [not found]       ` <mailman.3567.1249032229.2239.help-gnu-emacs@gnu.org>
2009-07-31 10:02         ` Anselm Helbig
2009-07-31 15:53           ` Peter Dyballa
2009-08-02 16:12     ` Rugxulo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.