all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* nnfolder and large-file-warning-threshold
@ 2004-08-26 18:52 Reiner Steib
  2004-09-08 18:37 ` Reiner Steib
       [not found] ` <87oekxg1fl.fsf@koldfront.dk>
  0 siblings, 2 replies; 9+ messages in thread
From: Reiner Steib @ 2004-08-26 18:52 UTC (permalink / raw)
  Cc: emacs-devel

Hi,

when using Gnus with the nnfolder[1] back end which is used by default
for sent messages, people get...

| File sent-mail is large (11MB), really open? (y or n) 

... when sending a mail.

This is caused by the variable `large-file-warning-threshold' that has
been introduced in Emacs 21.3.50.

Should we bind `large-file-warning-threshold' to a larger value (or
nil) in the relevant Gnus functions[2] or would it be better to
increase the default value of `large-file-warning-threshold'?

Bye, Reiner.

[1] The nnfolder back end is a "one file per group" back end.
    I.e. the file may grow quite fast when a user stores sent
    attachments there.

[2] `nnheader-find-file-noselect' (used in `nnfolder-read-folder',
    `nnmbox-read-mbox', `nnbabyl-read-mbox', ...)
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/



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

* Re: nnfolder and large-file-warning-threshold
  2004-08-26 18:52 nnfolder and large-file-warning-threshold Reiner Steib
@ 2004-09-08 18:37 ` Reiner Steib
  2004-09-08 21:36   ` Stefan
       [not found] ` <87oekxg1fl.fsf@koldfront.dk>
  1 sibling, 1 reply; 9+ messages in thread
From: Reiner Steib @ 2004-09-08 18:37 UTC (permalink / raw)


On Thu, Aug 26 2004, Reiner Steib wrote:

> when using Gnus with the nnfolder[1] back end which is used by default
> for sent messages, people get...
>
> | File sent-mail is large (11MB), really open? (y or n) 
>
> ... when sending a mail.
>
> This is caused by the variable `large-file-warning-threshold' that has
> been introduced in Emacs 21.3.50.
>
> Should we bind `large-file-warning-threshold' to a larger value (or
> nil) in the relevant Gnus functions[2] or would it be better to
> increase the default value of `large-file-warning-threshold'?

No opinions on that?  Could someone explain the reason for
`large-file-warning-threshold'?

> [1] The nnfolder back end is a "one file per group" back end.
>     I.e. the file may grow quite fast when a user stores sent
>     attachments there.
>
> [2] `nnheader-find-file-noselect' (used in `nnfolder-read-folder',
>     `nnmbox-read-mbox', `nnbabyl-read-mbox', ...)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: nnfolder and large-file-warning-threshold
       [not found] ` <87oekxg1fl.fsf@koldfront.dk>
@ 2004-09-08 18:37   ` Reiner Steib
  0 siblings, 0 replies; 9+ messages in thread
From: Reiner Steib @ 2004-09-08 18:37 UTC (permalink / raw)


On Thu, Aug 26 2004, Adam Sjøgren wrote:

> On Thu, 26 Aug 2004 20:52:20 +0200, Reiner wrote:
>
>> Should we bind `large-file-warning-threshold' to a larger value (or
>> nil) in the relevant Gnus functions[2] or would it be better to
>> increase the default value of `large-file-warning-threshold'?
>
> How about defaulting to nnml: instead of nnfolder: for the archive?
> Any reason not to?

This won't be a remedy for people using large nnfolder
archives/groups.  But I certainly would object to such a change.  I
don't know if it can be done in a backward compatible way.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 18:37 ` Reiner Steib
@ 2004-09-08 21:36   ` Stefan
  2004-09-08 23:26     ` Kenichi Handa
  2005-02-24 20:30     ` Reiner Steib
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan @ 2004-09-08 21:36 UTC (permalink / raw)
  Cc: emacs-devel

> No opinions on that?  Could someone explain the reason for
> `large-file-warning-threshold'?

Emacs doesn't handle large files very well in my experience (particularly if
they're not read in as binary in fundamental mode), so I've added this
warning in case you open a very large file without intending to.

I guess the warning should not happen for files opened with
find-file-literally (presumably nnfolder doesn't just use
`find-file-noselect').


        Stefan

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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 21:36   ` Stefan
@ 2004-09-08 23:26     ` Kenichi Handa
  2004-09-08 23:31       ` Stefan Monnier
  2005-02-24 20:30     ` Reiner Steib
  1 sibling, 1 reply; 9+ messages in thread
From: Kenichi Handa @ 2004-09-08 23:26 UTC (permalink / raw)
  Cc: ding, emacs-devel

In article <m1pt4wfntr.fsf-monnier+emacs@gnu.org>, Stefan <monnier@iro.umontreal.ca> writes:
>>  No opinions on that?  Could someone explain the reason for
>>  `large-file-warning-threshold'?

> Emacs doesn't handle large files very well in my experience (particularly if
> they're not read in as binary in fundamental mode), so I've added this
> warning in case you open a very large file without intending to.

Do you mean that you find a bug on decoding a very large
file, or that the decoding is just very slow?

---
Ken'ichi HANDA
handa@m17n.org

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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 23:26     ` Kenichi Handa
@ 2004-09-08 23:31       ` Stefan Monnier
  2004-09-08 23:34         ` Stefan Monnier
  2004-09-08 23:52         ` Kenichi Handa
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Monnier @ 2004-09-08 23:31 UTC (permalink / raw)
  Cc: ding, emacs-devel

>> Emacs doesn't handle large files very well in my experience (particularly if
>> they're not read in as binary in fundamental mode), so I've added this
>> warning in case you open a very large file without intending to.

> Do you mean that you find a bug on decoding a very large
> file, or that the decoding is just very slow?

It's just very slow.


        Stefan

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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 23:31       ` Stefan Monnier
@ 2004-09-08 23:34         ` Stefan Monnier
  2004-09-08 23:52         ` Kenichi Handa
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2004-09-08 23:34 UTC (permalink / raw)
  Cc: ding, emacs-devel

>> Do you mean that you find a bug on decoding a very large
>> file, or that the decoding is just very slow?

> It's just very slow.

Just to make things clear: I do not know whether it's due to decoding.


        Stefan

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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 23:31       ` Stefan Monnier
  2004-09-08 23:34         ` Stefan Monnier
@ 2004-09-08 23:52         ` Kenichi Handa
  1 sibling, 0 replies; 9+ messages in thread
From: Kenichi Handa @ 2004-09-08 23:52 UTC (permalink / raw)
  Cc: ding, emacs-devel

In article <jwvd60w8hji.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>  Do you mean that you find a bug on decoding a very large
>>  file, or that the decoding is just very slow?

> It's just very slow.

I see.

> Just to make things clear: I do not know whether it's due to decoding.

I believe it's due to decoding (especially when decoding a
large utf-8 file).

---
Ken'ichi HANDA
handa@m17n.org

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

* Re: nnfolder and large-file-warning-threshold
  2004-09-08 21:36   ` Stefan
  2004-09-08 23:26     ` Kenichi Handa
@ 2005-02-24 20:30     ` Reiner Steib
  1 sibling, 0 replies; 9+ messages in thread
From: Reiner Steib @ 2005-02-24 20:30 UTC (permalink / raw)
  Cc: ding, emacs-devel

On Wed, Sep 08 2004, Stefan wrote:

> On Thu, Aug 26 2004, Reiner Steib wrote:
>> when using Gnus with the nnfolder[1] back end which is used by default
>> for sent messages, people get...
>>
>> | File sent-mail is large (11MB), really open? (y or n) 
>>
>> ... when sending a mail.
[...]

> I guess the warning should not happen for files opened with
> find-file-literally (presumably nnfolder doesn't just use
> `find-file-noselect').

I've committed the following change (to Gnus' CVS; trunk and v5-10):

	* nnfolder.el (nnfolder-read-folder): Use RAWFILE for
	`nnheader-find-file-noselect' to avoid
	`large-file-warning-threshold'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

end of thread, other threads:[~2005-02-24 20:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 18:52 nnfolder and large-file-warning-threshold Reiner Steib
2004-09-08 18:37 ` Reiner Steib
2004-09-08 21:36   ` Stefan
2004-09-08 23:26     ` Kenichi Handa
2004-09-08 23:31       ` Stefan Monnier
2004-09-08 23:34         ` Stefan Monnier
2004-09-08 23:52         ` Kenichi Handa
2005-02-24 20:30     ` Reiner Steib
     [not found] ` <87oekxg1fl.fsf@koldfront.dk>
2004-09-08 18:37   ` Reiner Steib

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.