Re: slow saving of scores when leaving a virtual (nnml+) group

2023-07-13 Thread Eric S Fraga
On Thursday, 13 Jul 2023 at 02:18, Michael Heerdegen wrote: > From what source of information do you have the 0.5 GB? >From the original post I made which included mem profiler results: --8<---cut here---start->8--- and memory report, also partly expanded:

Re: Reading the article/message in elisp

2023-07-13 Thread Michael Heerdegen
Husain Alshehhi writes: > I suppose that gnus-with-article-buffer works, almost. In the case that > I am in gnus summary page [...] I'm not sure what information is known by Gnus at that moment. In the summary, internally each article is identified with a number. This should be more or less

Re: Reading the article/message in elisp

2023-07-13 Thread Husain Alshehhi
Robert Pluim writes: > > In a temp buffer, no, but you can access the article buffer using eg > `gnus-with-article' or `gnus-with-article-buffer', or even > `gnus-with-article-headers' if you only care about the headers. I suppose that gnus-with-article-buffer works, almost. In the case that I

Re: Reading the article/message in elisp

2023-07-13 Thread Emanuel Berg
Michael Heerdegen wrote: >> However, how will you get the specific header data out of >> the result? Don't know ... > > I think the header object is a struct of type `mail-header' > ("nnheader.el"). But try to extract with `mail-header', it complains about the data not being a list. --

Re: slow saving of scores when leaving a virtual (nnml+) group

2023-07-13 Thread Michael Heerdegen
Eric S Fraga writes: > 832,940,181 99% - command-execute > 805,535,710 96% - funcall-interactively > 540,874,166 64% - gnus-summary-exit > 537,712,423 64%- gnus-score-save > 536,634,533 64% - gnus-pp > [...] > > It could be that I am misinterpreting those

Re: Reading the article/message in elisp

2023-07-13 Thread Michael Heerdegen
Emanuel Berg writes: > However, how will you get the specific header data out of > the result? Don't know ... I think the header object is a struct of type `mail-header' ("nnheader.el"). Michael.

Re: Reading the article/message in elisp

2023-07-13 Thread Emanuel Berg
Husain Alshehhi wrote: >> In a temp buffer, no, but you can access the article buffer >> using eg `gnus-with-article' or `gnus-with-article-buffer', >> or even `gnus-with-article-headers' if you only care about >> the headers. > > I suppose that gnus-with-article-buffer works, almost. > In the

Re: Reading the article/message in elisp

2023-07-13 Thread Emanuel Berg
Get data like this: (gnus-data-header (gnus-data-find (gnus-summary-article-number))) It will then be the summary buffer article at point, not the selected one. If one is selected, it would make more sense to operate on that. However, how will you get the specific header data out of the