]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Assign major mode text-mode to the subedit buffer.
authorBruno Haible <bruno@clisp.org>
Sat, 8 May 2010 15:59:28 +0000 (17:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 May 2010 15:59:28 +0000 (17:59 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/po-mode.el

index f069e21ce60cb7f09bab5b69c0cdecc7e21e55b0..acef43d8d4931a8f1449749afbfbfbfbd038b482 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-08  Bruno Haible  <bruno@clisp.org>
+
+       * po-mode.el (po-edit-string): Assign major mode text-mode to the
+       subedit buffer.
+       Reported by Kenichi Handa <handa@m17n.org>.
+
 2010-03-28  Bruno Haible  <bruno@clisp.org>
 
        * gettexize.in: Warn about use of --intl option.
index 7b843c7d2078c077d014b6178e48af569afa8a03..afae18454db54d202799e1f01efaad78bf2aed81 100644 (file)
@@ -1,6 +1,6 @@
 ;;; po-mode.el -- major mode for GNU gettext PO files
 
-;; Copyright (C) 1995-1999, 2000-2002, 2005-2008 Free Software Foundation, Inc.
+;; Copyright (C) 1995-1999, 2000-2002, 2005-2008, 2010 Free Software Foundation, Inc.
 
 ;; Authors: François Pinard <pinard@iro.umontreal.ca>
 ;;          Greg McGary <gkm@magilla.cichlid.com>
@@ -2304,6 +2304,7 @@ Run functions on po-subedit-mode-hook."
           (setq slot (list marker edit-buffer overlay)
                 po-edited-fields (cons slot po-edited-fields))
           (pop-to-buffer edit-buffer)
+          (text-mode)
           (set (make-local-variable 'po-subedit-back-pointer) slot)
           (set (make-local-variable 'indent-line-function)
                'indent-relative)