Enhancment suggestion for po-mode

From: Swedish GNU/LI List (sv_at_li.org)
Date: 1996-05-18 23:12:20

     ------
     List:     Swedish GNU/LI List
     Sender:   Gö ran Uddeborg <gvran@uddeborg.pp.se>
     Subject:  Enhancment suggestion for po-mode
     Date:     Sat, 18 May 1996 23:12:20 +0200 (MET)
     ------

During translating fileutils, I accidentally inserted som tabulators
in the translated messages.  Jan Djärv commented that it was probably
not a good idea to introduce tabulators thet were not in the original
message, and I agreed to that.

Then we started considering if one could automate this.  One would
need to have the variable "indent-tabs-mode" set to "nil" in the edit
buffer.  (It alreade is buffer local by default.)  This can be done
with this little piece of code.  (Jan, after thinking a little bit
more after my previous letter, i realized it could be done in this
way.)

(add-hook
 'po-mode-hooks
 (function
  (lambda ()
    (save-excursion
      (set-buffer po-work-buffer)
      (setq indent-tabs-mode nil)))))

But perhaps there should be some more direct way of doing this.  Some
kind of po-edit-mode-hook, perhaps?  (B.t.w., isn't the normal naming
scheme "hook" rather than "hooks"?)

Arkiv genererat av hypermail 2.1.1.