Hello,

After upgrading to emacs 25 (emacs-25.0.94-1.fc24.x86_64 on Fedora)
the po-send-mail function in po-mode stopped working.  It creates a
mail buffer, but it then base64 encodes the entire buffer, including
the header.  Not surprisingly, the mail functions doesn't know what to
do with that afterwards.

I've tracked this down to the use of "(region-beginning)" near line
3525 in po-mode.el as included in emacs-gettext-0.19.8.1-1.fc24.  I
guess something that used to set the mark in previous emacs version
doesn't do so any more.  Or something like that.  I tried to change
the save-excursion part to use the code below instead, and that seems
to work.  It would be one possible way to do it, I'm not too
proficient in emacs lisp, som I'm not sure if it is the preferred one.

            (save-excursion
              (let
                  ((beginning (point)))
                (insert-buffer-substring buffer)
                (shell-command-on-region
                 beginning (region-end)
                 (concat po-gzip-uuencode-command " " name ".gz") t t)))))))

Reply via email to