From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: helei@epact.se (Henrik Leion) Newsgroups: gmane.emacs.help Subject: Automatic translation using emacs Date: 11 Oct 2004 02:50:57 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1097488531 8143 80.91.229.6 (11 Oct 2004 09:55:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2004 09:55:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 11 11:55:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGwts-0006Ds-00 for ; Mon, 11 Oct 2004 11:55:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGx0n-0004Yg-QT for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Oct 2004 06:02:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 194.237.142.5 Original-X-Trace: posting.google.com 1097488257 29748 127.0.0.1 (11 Oct 2004 09:50:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 Oct 2004 09:50:57 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125823 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21189 Hello I have a problem where we are re-pointing source-files from an old filestructure with text resource files to another, where the files are slightly changed. We want to make this transition gradually, sourcefile-by-sourcefile but automate as much of the manual work as possible. I want a command/macro in emacs that searches the active buffer for patterns that are defined in a text-file. This file should contain pairs of strings, typically . When a match is found it should be replaced with the translation, possibly after a confirmation from user. The translation file should be easily extended with new translations (preferably using another emacs command) so that we create translation-pairs when we find them, and speed up the translation process gradually and controlled. Would this be hard to create? I have programmed some in LISP, but never created an emacs macro. Best regards, Henrik Leion