From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Pattern for spell-checking in po-files. Date: Fri, 23 May 2003 18:30:22 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305232230.h4NMUMIr000744@rum.cs.yale.edu> References: <1261.1053715963@ichips.intel.com> <22437.1053724089@kdstevens.com> <16078.38915.165093.791379@uebn.uddeborg.pp.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053729495 10890 80.91.224.249 (23 May 2003 22:38:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 23 May 2003 22:38:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 24 00:38:09 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19JLAv-0002p6-00 for ; Sat, 24 May 2003 00:38:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19JLMs-0007rx-00 for ; Sat, 24 May 2003 00:50:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JL4P-0004m1-4v for emacs-devel@quimby.gnus.org; Fri, 23 May 2003 18:31:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JL3m-0004SA-Dx for emacs-devel@gnu.org; Fri, 23 May 2003 18:30:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JL3f-0004N2-Cf for emacs-devel@gnu.org; Fri, 23 May 2003 18:30:39 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JL3V-0004GV-V6 for emacs-devel@gnu.org; Fri, 23 May 2003 18:30:30 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h4NMUMx6000746; Fri, 23 May 2003 18:30:22 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h4NMUMIr000744; Fri, 23 May 2003 18:30:22 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "=?iso-8859-1?q?G=F6ran?= Uddeborg" Original-cc: Bruno Haible Original-cc: Kenny Stevens Original-cc: translation-i18n@lists.sourceforge.net Original-cc: Karl Eichwalder X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14162 > (defun po-ispell () > (interactive) > (let ((buffer-read-only nil)) > (ispell))) I'd recommend binding inhibit-read-only instead. > That could be a good idea, and then binding it to some key. But that > should be done in po-mode.el rather than ispell.el. Doesn't it make more sense to keep this ispell support in po-mode.el ? Perhaps ispell.el should provide something like an `ispell-function' (an easy way for a major mode to replace the "normal" ispell by his own variant such as the one above that temporarily makes the buffer writable) ? This way po-mode.el could set ispell-function and all the ispell stuff would just work. Stefan