From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: Diff could also show the changes within lines Date: Wed, 19 Feb 2014 12:08:44 +0100 Organization: Sebastien Vauban Message-ID: <86lhx7fjgj.fsf@somewhere.org> References: <86y51mx3x2.fsf@somewhere.org> <867g930xoz.fsf@somewhere.org> <86vbwcloke.fsf@somewhere.org> <86ioscheh0.fsf@somewhere.org> <86eh30heek.fsf@somewhere.org> <86r470s0sy.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392808211 31079 80.91.229.3 (19 Feb 2014 11:10:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 11:10:11 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Feb 19 12:10:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1WG52h-0002Mo-Im for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 12:10:19 +0100 Original-Received: from localhost ([::1]:58209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WG52g-0002bU-W1 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 06:10:18 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="22843"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX19lxCHitT/XMJ7oQ9GRj3I3" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:FU+pcljM/es3Nbe3pSQvB5ijXSA= sha1:0qjyEYYrkVHc4sUr1r8yR19Iauo= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:203855 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:96123 Archived-At: Michael Heerdegen wrote: > Sebastien Vauban writes: > >> > That's good. Then try adding it to `gnus-article-prepare-hook'. >> >> I was full of "excitement" but, nope, it isn't that one... That does >> not help. > > Mmh, I'm no Gnus expert, I hoped that would do it. Maybe you can find > a better place when reading the sources? Maybe an after advice for > `gnus-summary-show-article' works. Again, just guessing. This: --8<---------------cut here---------------start------------->8--- (advice-add 'gnus-summary-show-article :after (lambda (&rest _) (my--diff-make-fine-diffs-if-necessary))) --8<---------------cut here---------------end--------------->8--- did not work either. > In any case, the ugly solution of using an idle timer should always > work. Not very cool, but also not worse than doing it manually. If you're talking of things such as: --8<---------------cut here---------------start------------->8--- (add-hook 'gnus-article-prepare-hook (lambda () (run-at-time 0.0 nil 'my--diff-make-fine-diffs-if-necessary))) (add-hook 'gnus-article-mode-hook (lambda () (run-at-time 0.0 nil 'my--diff-make-fine-diffs-if-necessary))) --8<---------------cut here---------------end--------------->8--- I've tried them both with no success either... One question I've for the last 2 cases is "where is point?" when those functions are run? If they're in the summary buffer, no luck for me, or will it be moved to the buffer where the hook is supposed to be applied? Thanks for your help! Best regards, Seb -- Sebastien Vauban