emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15535: closed (24.3.50; basic-save-buffer should u


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15535: closed (24.3.50; basic-save-buffer should update buffer-file-coding-system value if the contents were written using different coding system)
Date: Sun, 13 Oct 2013 20:44:02 +0000

Your message dated Sun, 13 Oct 2013 23:43:29 +0300
with message-id <address@hidden>
and subject line Re: bug#15535: Acknowledgement (24.3.50;       
basic-save-buffer should update buffer-file-coding-system value if      the 
contents were written using different coding system)
has caused the debbugs.gnu.org bug report #15535,
regarding 24.3.50; basic-save-buffer should update buffer-file-coding-system 
value if the contents were written using different coding system
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15535: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15535
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; basic-save-buffer should update buffer-file-coding-system value if the contents were written using different coding system Date: Sun, 06 Oct 2013 01:44:09 +0300
Otherwise it's hard to find out which coding system was used, after all.

See here why it's useful:
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00129.html

The following test passes in Emacs 24.3 but fails on trunk:

(ert-deftest save-buffer-updates-buffer-file-coding-system ()
  (let ((file (expand-file-name "foo" temporary-file-directory))
        (default-buffer-file-coding-system 'utf-8-unix))
    (unwind-protect
        (with-temp-buffer
          (insert "abcdef\n")
          (write-file file))
      (with-current-buffer (find-file-noselect file)
        (should (eq 'undecided (coding-system-change-eol-conversion
                                buffer-file-coding-system nil)))
        (insert "водка матрёшка селёдка")
        (save-buffer)
        ;; Fails here:
        (should (eq 'utf-8-unix buffer-file-coding-system)))
      (delete-file file))))

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4)
 of 2013-10-04 on axl
Bzr revision: 114513 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.11303000
System Description:     Ubuntu 13.04



--- End Message ---
--- Begin Message --- Subject: Re: bug#15535: Acknowledgement (24.3.50; basic-save-buffer should update buffer-file-coding-system value if the contents were written using different coding system) Date: Sun, 13 Oct 2013 23:43:29 +0300 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0
Version: 24.4

Fixed for me too, thanks.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]