From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wolfgang Jeltsch Newsgroups: gmane.emacs.help Subject: Re: editing MathML parts with Amaya Date: Mon, 24 Jan 2005 21:01:14 +0100 Message-ID: <200501242101.14947.wolfgang@jeltsch.net> References: <35kpivF4o06kjU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106597663 7320 80.91.229.6 (24 Jan 2005 20:14:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2005 20:14:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 24 21:14:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CtAbF-0007O7-00 for ; Mon, 24 Jan 2005 21:14:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtAnS-0002er-U3 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Jan 2005 15:26:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CtAmW-0002OT-S2 for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 15:25:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CtAmM-0002I1-4A for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 15:25:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CtAmL-0002FQ-3Y for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 15:25:41 -0500 Original-Received: from [212.227.126.176] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CtAOl-0007Uv-0B for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 15:01:19 -0500 Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CtAOj-0004GC-00 for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 21:01:17 +0100 Original-Received: from [217.87.11.147] (helo=pD9570B93.dip0.t-ipconnect.de) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CtAOi-0003Ec-00 for help-gnu-emacs@gnu.org; Mon, 24 Jan 2005 21:01:16 +0100 Original-To: GNU Emacs Help ML User-Agent: KMail/1.7.2 In-Reply-To: <35kpivF4o06kjU1@individual.net> Content-Disposition: inline X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:979f6495558c984fd6b37bf5c2591014 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23591 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23591 Am Montag, 24. Januar 2005 18:29 schrieb Kevin Rodgers: > [...] > > So how do I filter parts of a buffer through a shell command so that the > > respective part of the buffer is replaced by the command's output? > > (shell-command-on-region START END "your-shell-script" (current-buffer) t) > > > Can somebody of you imagine why the above error message appears? Is there > > a better way to invoke X clients for editing parts of a document? > > Sorry, I don't know. > > > How can I tell Emacs to search for the boundaries of a MathML part the > > cursor is in, so that I don't have to mark the whole MathML fragment > > before editing it? > > (let ((mathml-start (re-search-backward ...)) > (mathml-end (re-search-backward ...))) > (shell-command-on-region mathml-start mathml-end "your-shell-script" > (current-buffer) t)) Thank you very much. Thanks to your tips, I was able to implement a solution which basically works. Interestingly, the X error message doesn't appear. Best wishes, Wolfgang