Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-group-customize seems to fail
@ 2018-03-08  8:47 Uwe Brauer
  2018-03-09  0:19 ` Tim Landscheidt
  0 siblings, 1 reply; 12+ messages in thread
From: Uwe Brauer @ 2018-03-08  8:47 UTC (permalink / raw)
  To: ding



Hi

my normal setting for replying mail is as follows:
 '(sc-citation-leader "    ") '(sc-reference-tag-string ">>> ") 
 '(message-yank-cited-prefix "   > ") '(message-yank-prefix "   > 
 ") 

now in a specific group I want to delete the empty space before 
">"

So I run  gnus-group-customize
and set

 
Variables: 
            Set variables local to the group you are entering. 
            More 
INS DEL Variable: sc-citation-leader 
            Value: "" 
INS DEL Variable: message-yank-prefix 
            Value: ">" 
INS DEL Variable: message-yank-cited-prefix 
            Value: ">" 
INS 

But now effect! The original setting was not overwritten.

What do I miss?

Regards

Uwe Brauer 




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

* Re: gnus-group-customize seems to fail
  2018-03-08  8:47 gnus-group-customize seems to fail Uwe Brauer
@ 2018-03-09  0:19 ` Tim Landscheidt
  2018-03-19 15:43   ` Uwe Brauer
  0 siblings, 1 reply; 12+ messages in thread
From: Tim Landscheidt @ 2018-03-09  0:19 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> wrote:

> my normal setting for replying mail is as follows:
> '(sc-citation-leader "    ") '(sc-reference-tag-string ">>>
> ") '(message-yank-cited-prefix "   > ")
> '(message-yank-prefix "   > ") 

> now in a specific group I want to delete the empty space
> before ">"

> So I run  gnus-group-customize
> and set

> Variables:          Set variables local to the group you are
> entering.          More INS DEL Variable: sc-citation-leader
> Value: "" INS DEL Variable: message-yank-prefix
> Value: ">" INS DEL Variable: message-yank-cited-prefix
> Value: ">" INS 

> But now effect! The original setting was not overwritten.

> What do I miss?

I believe you ran into https://debbugs.gnu.org/26105 ("Group
parameters can't set non-list values").  I don't see an easy
way to work around that for your use case.

Tim




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

* Re: gnus-group-customize seems to fail
  2018-03-09  0:19 ` Tim Landscheidt
@ 2018-03-19 15:43   ` Uwe Brauer
  2018-03-19 17:02     ` Eric S Fraga
  0 siblings, 1 reply; 12+ messages in thread
From: Uwe Brauer @ 2018-03-19 15:43 UTC (permalink / raw)
  To: ding


   > Uwe Brauer <oub@mat.ucm.es> wrote:






   > I believe you ran into https://debbugs.gnu.org/26105 ("Group
   > parameters can't set non-list values").  I don't see an easy
   > way to work around that for your use case.


I  found out that just the variable sc-citation-leader I have to change.


Now in the summary buffer describe-variable returns



,----
| is a variable defined in ‘supercite.el’.
| Its value is ""
| Original value was "    "
| Local in buffer *Summary nntp+news.gmane.org:gmane.comp.tex.german*; global value is "   "
`----

So far so good, but when I press reply or followup, the global setting
is used, which is not what I want. Is this really the same bug you
describe? It seems that in your case there is a workaround. Is there
also one in mine?

Thanks

Uwe Brauer 




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

* Re: gnus-group-customize seems to fail
  2018-03-19 15:43   ` Uwe Brauer
@ 2018-03-19 17:02     ` Eric S Fraga
  2018-03-21  9:02       ` Uwe Brauer
  0 siblings, 1 reply; 12+ messages in thread
From: Eric S Fraga @ 2018-03-19 17:02 UTC (permalink / raw)
  To: ding

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

On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
> I  found out that just the variable sc-citation-leader I have to change.
> ,----
> | is a variable defined in ‘supercite.el’.
> | Its value is ""
> | Original value was "    "
> | Local in buffer *Summary nntp+news.gmane.org:gmane.comp.tex.german*;
> global value is " "
> `----
>
> So far so good, but when I press reply or followup, the global setting
> is used, which is not what I want. Is this really the same bug you
> describe? It seems that in your case there is a workaround. Is there
> also one in mine?

Maybe I misunderstand something here but sc-citation-leader is local to
the summary buffer so its value will not propagate to a message buffer?
I.e. not a bug.

-- 
Eric S Fraga via Emacs 27.0.50 & org 9.1.7 on Debian buster/sid

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: gnus-group-customize seems to fail
  2018-03-19 17:02     ` Eric S Fraga
@ 2018-03-21  9:02       ` Uwe Brauer
  2018-03-21  9:58         ` Eric Abrahamsen
  2018-03-21 12:07         ` Eric S Fraga
  0 siblings, 2 replies; 12+ messages in thread
From: Uwe Brauer @ 2018-03-21  9:02 UTC (permalink / raw)
  To: ding


   > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:

   > Maybe I misunderstand something here but sc-citation-leader is local to
   > the summary buffer so its value will not propagate to a message buffer?
   > I.e. not a bug.

Well but how can I then pass that variable to the message buffer, but
only groupwise?




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

* Re: gnus-group-customize seems to fail
  2018-03-21  9:02       ` Uwe Brauer
@ 2018-03-21  9:58         ` Eric Abrahamsen
  2018-03-21 10:46           ` Uwe Brauer
  2018-03-21 12:07         ` Eric S Fraga
  1 sibling, 1 reply; 12+ messages in thread
From: Eric Abrahamsen @ 2018-03-21  9:58 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> writes:

>    > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
>
>    > Maybe I misunderstand something here but sc-citation-leader is local to
>    > the summary buffer so its value will not propagate to a message buffer?
>    > I.e. not a bug.
>
> Well but how can I then pass that variable to the message buffer, but
> only groupwise?

I suppose with posting styles?




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

* Re: gnus-group-customize seems to fail
  2018-03-21  9:58         ` Eric Abrahamsen
@ 2018-03-21 10:46           ` Uwe Brauer
  2018-03-21 10:52             ` Eric Abrahamsen
  2018-03-21 17:57             ` Andreas Schwab
  0 siblings, 2 replies; 12+ messages in thread
From: Uwe Brauer @ 2018-03-21 10:46 UTC (permalink / raw)
  To: ding

>>> "Eric" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:

   > Uwe Brauer <oub@mat.ucm.es> writes:
   >> > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
   >> 
   >> > Maybe I misunderstand something here but sc-citation-leader is local to
   >> > the summary buffer so its value will not propagate to a message buffer?
   >> > I.e. not a bug.
   >> 
   >> Well but how can I then pass that variable to the message buffer, but
   >> only groupwise?

   > I suppose with posting styles?


I tried

        ("gmane.emacs.gnus.general"
         (header "Newsgroups" "gmane.emacs.gnus.general")
         (setq  sc-citation-leader ""))

But it does not help





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

* Re: gnus-group-customize seems to fail
  2018-03-21 10:46           ` Uwe Brauer
@ 2018-03-21 10:52             ` Eric Abrahamsen
  2018-03-21 17:57             ` Andreas Schwab
  1 sibling, 0 replies; 12+ messages in thread
From: Eric Abrahamsen @ 2018-03-21 10:52 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "Eric" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>    > Uwe Brauer <oub@mat.ucm.es> writes:
>    >> > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
>    >> 
>    >> > Maybe I misunderstand something here but sc-citation-leader is local to
>    >> > the summary buffer so its value will not propagate to a message buffer?
>    >> > I.e. not a bug.
>    >> 
>    >> Well but how can I then pass that variable to the message buffer, but
>    >> only groupwise?
>
>    > I suppose with posting styles?
>
>
> I tried
>
>         ("gmane.emacs.gnus.general"
>          (header "Newsgroups" "gmane.emacs.gnus.general")
>          (setq  sc-citation-leader ""))
>
> But it does not help

Oops, sorry! I thought you could set arbitrary variables as part of
posting styles, but it look like I was hallucinating. Sorry about the
misdirection...




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

* Re: gnus-group-customize seems to fail
  2018-03-21  9:02       ` Uwe Brauer
  2018-03-21  9:58         ` Eric Abrahamsen
@ 2018-03-21 12:07         ` Eric S Fraga
  2018-03-21 16:19           ` Uwe Brauer
  1 sibling, 1 reply; 12+ messages in thread
From: Eric S Fraga @ 2018-03-21 12:07 UTC (permalink / raw)
  To: ding

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

On Wednesday, 21 Mar 2018 at 10:02, Uwe Brauer wrote:
>    > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
>
>    > Maybe I misunderstand something here but sc-citation-leader is local to
>    > the summary buffer so its value will not propagate to a message buffer?
>    > I.e. not a bug.
>
> Well but how can I then pass that variable to the message buffer, but
> only groupwise?

Maybe look at the message package, not gnus, as message is responsible
for composing emails?  For instance, you could put some code in
message-header-setup-hook which sets the variables you want depending on
the contents of the message header?

-- 
Eric S Fraga via Emacs 27.0.50 & org 9.1.7 on Debian buster/sid

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: gnus-group-customize seems to fail
  2018-03-21 12:07         ` Eric S Fraga
@ 2018-03-21 16:19           ` Uwe Brauer
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Brauer @ 2018-03-21 16:19 UTC (permalink / raw)
  To: ding

>>> "Eric" == Eric S Fraga <e.fraga@ucl.ac.uk> writes:

   > On Wednesday, 21 Mar 2018 at 10:02, Uwe Brauer wrote:
   >> > On Monday, 19 Mar 2018 at 16:43, Uwe Brauer wrote:
   >> 
   >> > Maybe I misunderstand something here but sc-citation-leader is local to
   >> > the summary buffer so its value will not propagate to a message buffer?
   >> > I.e. not a bug.
   >> 
   >> Well but how can I then pass that variable to the message buffer, but
   >> only groupwise?

   > Maybe look at the message package, not gnus, as message is responsible
   > for composing emails?  For instance, you could put some code in
   > message-header-setup-hook which sets the variables you want depending on
   > the contents of the message header?

I found a workaround with bbdb, so for a particular recipient I set that
variable to nil. So far so good.

But then in the sending hook I need a function which resets the variable
to my standard setting. This is for sure a kludge but I don't know how
to do better.




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

* Re: gnus-group-customize seems to fail
  2018-03-21 10:46           ` Uwe Brauer
  2018-03-21 10:52             ` Eric Abrahamsen
@ 2018-03-21 17:57             ` Andreas Schwab
  2018-03-21 18:31               ` Uwe Brauer
  1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2018-03-21 17:57 UTC (permalink / raw)
  To: ding

On Mär 21 2018, Uwe Brauer <oub@mat.ucm.es> wrote:

>         ("gmane.emacs.gnus.general"
>          (header "Newsgroups" "gmane.emacs.gnus.general")
>          (setq  sc-citation-leader ""))

Try (eval (set (make-local-variable 'sc-citation-leader) "")).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



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

* Re: gnus-group-customize seems to fail
  2018-03-21 17:57             ` Andreas Schwab
@ 2018-03-21 18:31               ` Uwe Brauer
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Brauer @ 2018-03-21 18:31 UTC (permalink / raw)
  To: ding

>>> "Andreas" == Andreas Schwab <schwab@linux-m68k.org> writes:

> On Mär 21 2018, Uwe Brauer <oub@mat.ucm.es> wrote:
>> ("gmane.emacs.gnus.general"
>> (header "Newsgroups" "gmane.emacs.gnus.general")
>> (setq  sc-citation-leader ""))

> Try (eval (set (make-local-variable 'sc-citation-leader) "")).

Aha, that works! Thanks, I will never understand that difference in the
settings. So I can undo my .bbdb solution, which was cumbersome anyhow.





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

end of thread, other threads:[~2018-03-21 18:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08  8:47 gnus-group-customize seems to fail Uwe Brauer
2018-03-09  0:19 ` Tim Landscheidt
2018-03-19 15:43   ` Uwe Brauer
2018-03-19 17:02     ` Eric S Fraga
2018-03-21  9:02       ` Uwe Brauer
2018-03-21  9:58         ` Eric Abrahamsen
2018-03-21 10:46           ` Uwe Brauer
2018-03-21 10:52             ` Eric Abrahamsen
2018-03-21 17:57             ` Andreas Schwab
2018-03-21 18:31               ` Uwe Brauer
2018-03-21 12:07         ` Eric S Fraga
2018-03-21 16:19           ` Uwe Brauer

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 NNTP newsgroup(s).