From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17096 Path: news.gmane.org!not-for-mail From: Brady Trainor Newsgroups: gmane.emacs.gnus.user Subject: Refresh Summary buffer after modifying summary-line-format Date: Sat, 20 Sep 2014 18:53:20 -0700 Organization: SunSITE.dk - Supporting Open source Message-ID: <87vboh68of.fsf@uw.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411264512 9470 80.91.229.3 (21 Sep 2014 01:55:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2014 01:55:12 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Sep 21 03:55:07 2014 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XVWMj-0004ED-Ms for gegu-info-gnus-english@m.gmane.org; Sun, 21 Sep 2014 03:55:05 +0200 Original-Received: from localhost ([::1]:37554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVWMj-0002qX-4e for gegu-info-gnus-english@m.gmane.org; Sat, 20 Sep 2014 21:55:05 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:RYUOPPfH0hVmTC0L9XurRUpf3MQ= Original-Lines: 53 Original-NNTP-Posting-Host: 71.35.180.234 Original-X-Trace: news.sunsite.dk DXC=GX48@<8mhF71@QH[VaTAe9YSB=nbEKnk; VPSB7U_Xbi1>3kaMbhhak2n_NmDijinD5Oj859dcS2Y>^:OA1Gbm2f3G^[HNa7Z\F? Original-X-Complaints-To: staff@sunsite.dk Original-Xref: usenet.stanford.edu gnu.emacs.gnus:88227 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17096 Archived-At: Hi, I'm trying to make Gnus a little more reactive to my impulses. I like the defaults, and I try to add on a little customization as I go. So far, I've managed to start making keybindings that will modify the window configurations, like (define-key gnus-summary-mode-map (kbd "v 2") 'my-gnus-layout-2-pane) The function includes a gnus-add-configuration, and a refresh via (gnus-summary-expand-window) (like `=' binding). But now, when I try to do the same for the summary-line-format, I cannot see a good way to refresh the buffer. If I change the variable, then by hand I can type `q' and then select the group again, and the summary line will have the new formatting. But when I type `q', the cursor jumps to a group with unread mail, though I was looking at my INBOX which shows read mail, and ticked mail. Here are my functions: (defun my-gnus-summary-line-time () (interactive) (setq-default gnus-summary-line-format "%&user-date; %U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" gnus-user-date-format-alist '((t . "%d-%b-%y %H:%M")) ) (gnus-summary-expand-window) ) (defun my-gnus-summary-line-date () (interactive) (setq-default gnus-summary-line-format "%d %U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" ) (gnus-summary-expand-window) ) (defun my-gnus-summary-line-default () (interactive) (setq-default gnus-summary-line-format "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" ) (gnus-summary-expand-window) ) And here are the shortcuts (define-key gnus-summary-mode-map (kbd "v d") 'my-gnus-summary-line-default) (define-key gnus-summary-mode-map (kbd "v D") 'my-gnus-summary-line-date) (define-key gnus-summary-mode-map (kbd "v t") 'my-gnus-summary-line-time) Thank you, Brady