unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* no questions when quitting
@ 2009-05-07  8:24 Krzysztof Poc
  2009-05-07  8:59 ` Anselm Helbig
  2009-05-07 22:09 ` no questions when quitting Johan Bockgård
  0 siblings, 2 replies; 8+ messages in thread
From: Krzysztof Poc @ 2009-05-07  8:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hello

How can I force emacs to quit immediately after pressing C-x C-c
without asking any questions.
I would like all remaining modified buffers to be not saved and all
running emacs subprocesses to be killed.

I read in info documentation that confirm-kill-emacs variable adjusts
this behaviour.
Unfortunately I don't know to which value I should set it to achieve
what I want since nil value leads me to yes-or-no-p function.

thanks for help


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

* Re: no questions when quitting
  2009-05-07  8:24 no questions when quitting Krzysztof Poc
@ 2009-05-07  8:59 ` Anselm Helbig
  2009-08-04  5:51   ` Emacs terribly slow Maindoor
  2009-05-07 22:09 ` no questions when quitting Johan Bockgård
  1 sibling, 1 reply; 8+ messages in thread
From: Anselm Helbig @ 2009-05-07  8:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

> How can I force emacs to quit immediately after pressing C-x C-c
> without asking any questions.
> I would like all remaining modified buffers to be not saved and all
> running emacs subprocesses to be killed.
> 
> I read in info documentation that confirm-kill-emacs variable adjusts
> this behaviour.
> Unfortunately I don't know to which value I should set it to achieve
> what I want since nil value leads me to yes-or-no-p function.

`confirm-kill-emacs' does something different: you can have it ask for
confirmation even if no buffers need saving. You can achieve this by
binding C-x C-c to `kill-emacs' instead of `save-buffers-kill-emacs':

  (global-set-key (kbd "C-x C-c") 'kill-emacs)

BTW, `save-buffers-kill-emacs' takes a prefix argument in which case
it saves all pending changes automatically - which you said is not
what you want. 

However, you might want to change the way you work: if you need a
buffer with contents you don't want to save, just don't associate a
file with it! Creating sucha buffer is easy, just give switch-buffer
(C-x b) the name of a buffer that doesn't yet exist. You have to set
the major mode you want manually, though.

HTH, 

Anselm


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


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

* Re: no questions when quitting
  2009-05-07  8:24 no questions when quitting Krzysztof Poc
  2009-05-07  8:59 ` Anselm Helbig
@ 2009-05-07 22:09 ` Johan Bockgård
  1 sibling, 0 replies; 8+ messages in thread
From: Johan Bockgård @ 2009-05-07 22:09 UTC (permalink / raw)
  To: help-gnu-emacs

Krzysztof Poc <fajfusio@wp.pl> writes:

> How can I force emacs to quit immediately

M-x kill-emacs





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

* Emacs terribly slow
  2009-05-07  8:59 ` Anselm Helbig
@ 2009-08-04  5:51   ` Maindoor
  2009-08-04 16:21     ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Maindoor @ 2009-08-04  5:51 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Hi,
    I'm using emacs 23.0.91.1 and i load a few files using load-file
    in my .emacs file like session, hide-mode-line, uniquify, color-theme
    bs.el etc. but lately its become very very slow. Emacs it seems is
    panting and running out of breath when i open a file or when I browse 
    around the file. Is there any way to optimize for speed ?

Regards,
Maindoor.



      

[-- Attachment #2: Type: text/html, Size: 599 bytes --]

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

* Re: Emacs terribly slow
  2009-08-04  5:51   ` Emacs terribly slow Maindoor
@ 2009-08-04 16:21     ` Lennart Borgman
  2009-08-06  6:46       ` Maindoor
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-08-04 16:21 UTC (permalink / raw)
  To: Maindoor; +Cc: help-gnu-emacs

On Tue, Aug 4, 2009 at 7:51 AM, Maindoor<sanjeevfiles@yahoo.com> wrote:
> Hi,
>     I'm using emacs 23.0.91.1 and i load a few files using load-file
>     in my .emacs file like session, hide-mode-line, uniquify, color-theme
>     bs.el etc. but lately its become very very slow. Emacs it seems is
>     panting and running out of breath when i open a file or when I browse
>     around the file. Is there any way to optimize for speed ?

Hi Maindoor,

Did you try removing stuff from your .emacs?




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

* Re: Emacs terribly slow
       [not found] <mailman.3852.1249399507.2239.help-gnu-emacs@gnu.org>
@ 2009-08-05  7:39 ` Tim X
  0 siblings, 0 replies; 8+ messages in thread
From: Tim X @ 2009-08-05  7:39 UTC (permalink / raw)
  To: help-gnu-emacs

Maindoor <sanjeevfiles@yahoo.com> writes:

> Hi,                                                                    
>     I'm using emacs 23.0.91.1 and i load a few files using load-file   
>     in my .emacs file like session, hide-mode-line, uniquify,          
> color-theme                                                            
>     bs.el etc. but lately its become very very slow. Emacs it seems is 
>     panting and running out of breath when i open a file or when I     
> browse                                                                 
>     around the file. Is there any way to optimize for speed ?          
>                                                                        
> Regards,                                                               
> Maindoor.                                                              

That is a pretty old version of emacs 23 dev tree. Emacs 23.1 is out
now and I'd recommend upgrading to it and see if the problem still
exists. As 23.0.91 was a dev snapshot and as it is quie a few months
old, it is likely that it is some transient problem that was fixed in
later versions. 

I'm currently running 23.1.50  and there are no speed issues I've
noticed.

Tim


-- 
tcross (at) rapttech dot com dot au


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

* Re: Emacs terribly slow
  2009-08-04 16:21     ` Lennart Borgman
@ 2009-08-06  6:46       ` Maindoor
  0 siblings, 0 replies; 8+ messages in thread
From: Maindoor @ 2009-08-06  6:46 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

Yes. But its not much and they don't make a lot of difference.

Is it possible to tell emacs not to load particular set of modules like
i don't ever want to load viper. things like that..so that it becomes 
sleek and fast.

Regards,
Maindoor.

--- On Tue, 8/4/09, Lennart Borgman <lennart.borgman@gmail.com> wrote:

From: Lennart Borgman <lennart.borgman@gmail.com>
Subject: Re: Emacs terribly slow
To: "Maindoor" <sanjeevfiles@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Date: Tuesday, August 4, 2009, 9:51 PM

On Tue, Aug 4, 2009 at 7:51 AM, Maindoor<sanjeevfiles@yahoo.com> wrote:
> Hi,
>     I'm using emacs 23.0.91.1 and i load a few files using load-file
>     in my .emacs file like session, hide-mode-line, uniquify, color-theme
>     bs.el etc. but lately its become very very slow. Emacs it seems is
>     panting and running out of breath when i open a file or when I browse
>     around the file. Is there any way to optimize for speed ?

Hi Maindoor,

Did you try removing stuff from your .emacs?



      

[-- Attachment #2: Type: text/html, Size: 1575 bytes --]

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

* Re: Emacs terribly slow
       [not found] <mailman.4069.1249591599.2239.help-gnu-emacs@gnu.org>
@ 2009-08-07  2:06 ` Xah Lee
  0 siblings, 0 replies; 8+ messages in thread
From: Xah Lee @ 2009-08-07  2:06 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 5, 11:46 pm, Maindoor <sanjeevfi...@yahoo.com> wrote:
> Yes. But its not much and they don't make a lot of difference.
>
> Is it possible to tell emacs not to load particular set of modules like
> i don't ever want to load viper. things like that..so that it becomes
> sleek and fast.
>
> Regards,
> Maindoor.
>
> --- On Tue, 8/4/09, Lennart Borgman <lennart.borg...@gmail.com> wrote:
>
> From: Lennart Borgman <lennart.borg...@gmail.com>
> Subject: Re: Emacs terribly slow
> To: "Maindoor" <sanjeevfi...@yahoo.com>
> Cc: help-gnu-em...@gnu.org
> Date: Tuesday, August 4, 2009, 9:51 PM
>
> On Tue, Aug 4, 2009 at 7:51 AM, Maindoor<sanjeevfi...@yahoo.com> wrote:
> > Hi,
> >     I'm using emacs 23.0.91.1 and i load a few files using load-file
> >     in my .emacs file like session, hide-mode-line, uniquify, color-theme
> >     bs.el etc. but lately its become very very slow. Emacs it seems is
> >     panting and running out of breath when i open a file or when I browse
> >     around the file. Is there any way to optimize for speed ?
>
> Hi Maindoor,
>
> Did you try removing stuff from your .emacs?

maindoor,

make sure the slowness you seen is not due to your .emacs or something
else.

Start emacs from the command like like this: emacs -Q

measure the time, compare it to your normal emacs launching. If using
emacs -Q is much faster, then, we know the problem is probably
your .emacs.

Now, the next step is to determine if there is something weired other
than loading the customization you have in your .emacs. For example,
some syntax error, or something in your .emacs that causes network
access, will drag your emacs startup time down. So, i'd check if
there's anything like that. How many lines is your .emacs anyway?

i have few thousand lines in my .emacs, and most calling out packages
that are not even compiled... generally speaking, piling things in
your .emacs shouldn't be a problem on today's machines. (is your
machine very old, by chance?) But in any case, when you sure you don't
have anything weird, the next step is to reduce loading uncessary
packages, or have them compiled, or use autoload instead of load or
require so that they get loaded only when you actually use that
feature. Recently someone posted about how to opitize this last
step... and am sure emacs wiki has a lot info.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-07  2:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-07  8:24 no questions when quitting Krzysztof Poc
2009-05-07  8:59 ` Anselm Helbig
2009-08-04  5:51   ` Emacs terribly slow Maindoor
2009-08-04 16:21     ` Lennart Borgman
2009-08-06  6:46       ` Maindoor
2009-05-07 22:09 ` no questions when quitting Johan Bockgård
     [not found] <mailman.3852.1249399507.2239.help-gnu-emacs@gnu.org>
2009-08-05  7:39 ` Emacs terribly slow Tim X
     [not found] <mailman.4069.1249591599.2239.help-gnu-emacs@gnu.org>
2009-08-07  2:06 ` Xah Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).