[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nnoo.el: how to update server variables
From: |
Nikolaus Rath |
Subject: |
nnoo.el: how to update server variables |
Date: |
Sat, 11 Jul 2015 12:45:13 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Hello,
I am trying to update a server variable from one of (Gnus') backend
functions. My first attempt was
(defvoo nnimap-my-state nil)
(deffoo nnimap-request-list (&optional server)
(nnoo-change-server 'nnimap server nil)
(message "Old state: %s" nnimap-my-state)
(setq nnimap-my-state 42))
but that did not work (successive invocations would all run with
nnimap-my-state being nil). After studying the nnoo.el sources for a
bit, I concluded that nnoo-change-server updates the declared server
variables to the per-server values, but does not copy any changes back.
However, I wasn't able to figure out how to manually perform these
changes. Can someone point me in the right direction?
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- nnoo.el: how to update server variables,
Nikolaus Rath <=