From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18843 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Girault Newsgroups: gmane.emacs.gnus.user Subject: on automatic gnus-summary-insert-new-articles after posting Date: Sat, 28 Jul 2018 12:35:02 -0300 Organization: Aioe.org NNTP Server Message-ID: <86d0v7jrvd.fsf@dev.null> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1532791995 23170 195.159.176.226 (28 Jul 2018 15:33:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jul 2018 15:33:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Jul 28 17:33:11 2018 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjRDS-0005vf-Fs for gegu-info-gnus-english@m.gmane.org; Sat, 28 Jul 2018 17:33:10 +0200 Original-Received: from localhost ([::1]:45639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fjRFZ-0002fq-80 for gegu-info-gnus-english@m.gmane.org; Sat, 28 Jul 2018 11:35:21 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 52 Original-NNTP-Posting-Host: 3mjGDhSYUbTHhIThEOANuQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:G5nTzs/l18SQ2/9Jw9v65EW77FU= X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89786 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18843 Archived-At: How can I gnus-summary-insert-new-articles automatically after posting? I'd like to see my articles right away in the thread without having to ``/ N'' every time I post. I tried (add-hook 'message-sent-hook 'gnus-summary-insert-new-articles) but that blows a void-variable perm. Investigating further, I see the problem happens deep into gnus-thread-loop-p. I cloned gnus-summary-insert-new-articles to take an argument, the group name. Here's the attempt: --8<---------------cut here---------------start------------->8--- (defun gnus-summary-insert-new-articles-arg (g) "Insert all new articles in this group." (interactive) (let ((old (sort (mapcar 'car gnus-newsgroup-data) '<)) (old-high gnus-newsgroup-highest) (nnmail-fetched-sources (list t)) (new-active (gnus-activate-group g 'scan)) i new) (unless new-active (error "Couldn't fetch new data")) (setq gnus-newsgroup-active (gnus-copy-sequence new-active)) (setq i (cdr gnus-newsgroup-active) gnus-newsgroup-highest i) (while (> i old-high) (push i new) (decf i)) (if (not new) (message "No gnus is bad news") (gnus-summary-insert-articles new) (setq gnus-newsgroup-unreads (gnus-sorted-nunion gnus-newsgroup-unreads new)) (gnus-summary-limit (gnus-sorted-nunion old new)))) (gnus-summary-position-point)) --8<---------------cut here---------------end--------------->8--- Now, executing (gnus-summary-insert-new-articles-arg "alt.test") also blows the (void-variable perm) problem. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-variable perm) #[(refs) "J@\203.