From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86224 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: How to change definition of gnus-summary-exit? Date: Thu, 15 Oct 2015 21:16:38 +0200 Message-ID: <8737xcndrd.fsf@gnu.org> References: <87io69jr5o.fsf@thinkpad.rath.org> <87si5diara.fsf@tullinup.koldfront.dk> <874mhsprmo.fsf@gnu.org> <87eggwvxat.fsf@thinkpad.rath.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444936687 31234 80.91.229.3 (15 Oct 2015 19:18:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 19:18:07 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34458@lists.math.uh.edu Thu Oct 15 21:17:55 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zmo29-00027E-8r for ding-account@gmane.org; Thu, 15 Oct 2015 21:17:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1Zmo1Q-00069D-IY; Thu, 15 Oct 2015 14:17:04 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1Zmo1P-00068x-1P for ding@lists.math.uh.edu; Thu, 15 Oct 2015 14:17:03 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1Zmo1N-0004NU-59 for ding@lists.math.uh.edu; Thu, 15 Oct 2015 14:17:02 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Zmo15-00086t-UH for ding@gnus.org; Thu, 15 Oct 2015 21:16:49 +0200 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B9288222ED for ; Thu, 15 Oct 2015 15:16:41 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 15 Oct 2015 15:16:41 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=8IyflSVdkZXIyaHcuguDBZpaFhM=; b=WL8g3 QbLbfbzsJ3JlUpGOnc2r+YgRp244cPzb7H5UreV56lFp0uyJndMQmKnhIcq/IESH L4r5g4YyWcmLQPUIH5OCOsfGCIX+az8R9OvegG0tOtMBjVqz5lKARkVe5xdY/HsK RJvFwG0jDT/XLG2IWB3ZfV6foNk/FCRXn1gC0E= X-Sasl-enc: 0ZRThfNfnRD4TV0ntOVHXS7ELu/Wb5DJ7I8JwNeABMGV 1444936601 Original-Received: from thinkpad-t440p (unknown [2.163.85.14]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D64CC00013 for ; Thu, 15 Oct 2015 15:16:40 -0400 (EDT) Mail-Followup-To: ding@gnus.org In-Reply-To: <87eggwvxat.fsf@thinkpad.rath.org> (Nikolaus Rath's message of "Thu, 15 Oct 2015 10:47:22 -0700") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86224 Archived-At: Nikolaus Rath writes: >>>> What is happening here? Why does the help refer me to the modified >>>> version, but the version in memory is actually the original one? And >>>> how do I tell emacs/gnus to use my version? >> >> Why do you copy the complete gnus-sum.el when you just want to >> change one function? As a result, you won't see any future changes of >> gnus-sum.el (bugfixes and new features). > > Not quite, the 'modified version' is actually a clone of the gnus git > repo. Ah, I see. Well, then I'd just use the complete git version if I were you. >> What do you want to change exactly? Oftentimes, a simple advice will >> do without having to override the complete function. > > What's an advice (in this context)? An advice is a function which is run before, after, instead of, or "around" some other function. See (info "(elisp)Advising Functions"). >> Indeed, if Nikolaus copied both gnus-sum.el and gnus-sum.elc into his >> other directory, then modified gnus-sum.el but didn't recompile it, and >> additionally `load-prefer-newer' is nil, that would explain the issue. > > Thanks, that was it! Wow, my crystal ball is working perfectly today! :-) > I was assuming that Emacs would automatically ignore the .elc file if > the .el file was newer. It doesn't do so probably for backwards compatibility reasons. But there's the new variable `load-prefer-newer' for controlling that behavior. Bye, Tassilo