From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81636 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: apply TeX-to-char-paragraph-or-region to an article Date: Thu, 22 Mar 2012 20:58:17 +0100 Message-ID: References: <87zkbdrdt9.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332446321 14250 80.91.229.3 (22 Mar 2012 19:58:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2012 19:58:41 +0000 (UTC) Cc: ding@gnus.org To: Uwe Brauer Original-X-From: ding-owner+M29916@lists.math.uh.edu Thu Mar 22 20:58:37 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAo9c-0001Go-HY for ding-account@gmane.org; Thu, 22 Mar 2012 20:58:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1SAo9V-0007LT-Mt; Thu, 22 Mar 2012 14:58:29 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SAo9U-0007LI-3M for ding@lists.math.uh.edu; Thu, 22 Mar 2012 14:58:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SAo9S-0001Oq-Ja for ding@lists.math.uh.edu; Thu, 22 Mar 2012 14:58:27 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SAo9Q-0006L7-Vt for ding@gnus.org; Thu, 22 Mar 2012 20:58:25 +0100 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SAo9K-0007ba-Sw; Thu, 22 Mar 2012 20:58:19 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVZTUqhk4jKvKLk27sW FRRgw/m1AAACXUlEQVQ4jU2U4aGkIAyEE6UAghYg4QpYwQLUpf+abga9d88/684HSSYEpf1/di+1 1ta8zXmXX6C5O3CwNtf6C3gtrcX76BNX/ACH+glLuI44+Q9giLb1o88qf8LtdYBKuYRzDdih6+E3 NhRJKKV9+vcMstp1hy7z5LUVhtqWQ76iIaR+9fhFDESQqE3OdbnXJX7mPk+tGQIhhwQTifO1tqMu o2hvA9xBNdpXjkIVq4lqcbniJJK+eVihmUIXAGpLNMSoBhW9Iqs0GIfF3XYInmi0bsm9CruZEtpU 8/BfbYIO0CCVf/Zr/lh9kgjFd3FDeeybsf0A5FBz9IT37GaZySmnvJtaqdCg5hcs0zRtubRs4xHH C4HOS8nIanHoG0IYy5JUfYpcBaue09YTAIhs2ZeKuKLK0FuYXuBQESVqFIbY+v0CixFCROvNEjIR KIGmtqcEoCgmqp/XpqyXPhLaA9lGKecV4CllggXbqCOT1Y6pYH2CM0FoAJYcNfe+imQCb3WfMteo bWdMsqrgIMTRbDY0h1N9ExMLKgmgYLrM9/ynn4qUioHUnEZybGkIhBm0jPi+KS3COQaveNaALXDv OZ4WUx2hMBzWez/h3YS/4CgXh4y5fEDofNAe5KhYj/Mg0Dj0jjZkKYWkEXTjPnZNuKMBtZIZRJMI Tz2GK3HgOFp55WJmNxTeAZ5ZfcCpFp/0ZxoDx0kfQB55AOTgbNaN/1/9xDmgKl6T5k+l4S2LBv25 XTZ06aMub/tr0B8jwtWplH3ZUS6/A7UMoByhmpd9wcXhbcAWOqSMj1Pm0f0F5xqaPpbvsqUAAAAA SUVORK5CYII= X-Now-Playing: De Press's _Block to Block_: "Kejk" In-Reply-To: <87zkbdrdt9.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 18 Mar 2012 18:58:42 +0100") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) X-MailScanner-ID: 1SAo9K-0007ba-Sw MailScanner-NULL-Check: 1333051099.28918@IhbqvlqoVUbnvlFHW9/7pQ X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81636 Archived-At: Uwe Brauer writes: > For example the function gnus-article-fill-cited-article runs on an > article. How could I write a function based on > TeX-to-char-paragraph-or-region which does what I want. Start with a simpler function, like (defun article-treat-ansi-sequences () "Translate ANSI SGR control sequences into overlays or extents." (interactive) (save-excursion (when (article-goto-body) (let ((inhibit-read-only t)) (ansi-color-apply-on-region (point) (point-max)))))) And just replace the ansi stuff with the function you want to call. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/