From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#13256: 24.1; auto-revert does not re-check encoding Date: Sat, 22 Dec 2012 23:57:33 +0000 Message-ID: <87wqw9r66q.fsf@sc3d.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1356220736 509 80.91.229.3 (22 Dec 2012 23:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2012 23:58:56 +0000 (UTC) To: 13256@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 23 00:59:11 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TmYyC-0006tv-K5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Dec 2012 00:59:08 +0100 Original-Received: from localhost ([::1]:48586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYxy-0006if-O1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2012 18:58:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYxq-0006hg-Gf for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:58:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYxl-0008TG-Jj for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:58:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYxl-0008TC-Fq for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:58:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TmYy6-0007kQ-Lq for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Dec 2012 23:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13256 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135622070729733 (code B ref -1); Sat, 22 Dec 2012 23:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2012 23:58:27 +0000 Original-Received: from localhost ([127.0.0.1]:55993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmYxW-0007jW-9q for submit@debbugs.gnu.org; Sat, 22 Dec 2012 18:58:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41128) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmYxS-0007jN-VP for submit@debbugs.gnu.org; Sat, 22 Dec 2012 18:58:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYx0-0008Pr-0h for submit@debbugs.gnu.org; Sat, 22 Dec 2012 18:58:01 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:57933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYwz-0008Pn-TV for submit@debbugs.gnu.org; Sat, 22 Dec 2012 18:57:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYwt-0006XK-0R for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:57:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYwm-0008Nn-2O for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:57:46 -0500 Original-Received: from exprod7og124.obsmtp.com ([64.18.2.26]:53923) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TmYwl-0008Nb-Lk for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2012 18:57:39 -0500 Original-Received: from mail-bk0-f69.google.com ([209.85.214.69]) (using TLSv1) by exprod7ob124.postini.com ([64.18.6.12]) with SMTP ID DSNKUNZI8FFyTP44MHDEelsBDzY6iNHgS7Mb@postini.com; Sat, 22 Dec 2012 15:57:39 PST Original-Received: by mail-bk0-f69.google.com with SMTP id jg9so4931415bkc.8 for ; Sat, 22 Dec 2012 15:57:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=7qqRBkhOT5Yj0HlYKKgs9XRJ35FH3243uH5Z7+fi72c=; b=OAj/cgqqFad/FDO7UofBBhRKJk9h7uiuGGWvi5wLh15I5xXm0CXseWrwljBztoVVAd yhNmmGZUKU7M9RAJZ3gqNG6INJuTWRmCBZdYode8bzT7WAL/3Sl/MXpxOzwwcsMsLrL9 5S/DnDMACzDKOrZYt7v09phpADE+T1J+g9dfZ2mjLsHXOE0SqNalNQvP6HpqmF3g3mMP 7iowyhQta9j3Nq8WSjLPKMNY8wU0li98q2Tc7w9UabezjgsQ5SEzYojj2lxY0cwsdlC1 aErMrXVzhm+80fNxad2ET8HdiCcgjEF9w/q+TdCMEL6hVwpsAV1H+o8HX/KGB2SdnXOu 03xw== X-Received: by 10.194.78.162 with SMTP id c2mr29843110wjx.46.1356220655295; Sat, 22 Dec 2012 15:57:35 -0800 (PST) X-Received: by 10.194.78.162 with SMTP id c2mr29843108wjx.46.1356220655189; Sat, 22 Dec 2012 15:57:35 -0800 (PST) Original-Received: from slice ([149.241.102.247]) by mx.google.com with ESMTPS id w5sm36546777wif.11.2012.12.22.15.57.34 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Dec 2012 15:57:34 -0800 (PST) X-Gm-Message-State: ALoCoQmltYw9qunMAunwVFBmr4lpr1FxLUr97uUal1BTtBwUklSS4s/PPFhjNJ32YaaA4deR5M1K9LJ0Pro/lzURPJpvFa2MOzlkJSCTRl66211GJgomC+6RAziIUovz3WZEF16SmuvlPcYCkIAdV6m8ickIOoO0GOj/YMFG89G7uG33o4ciHtQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68927 Archived-At: I use auto-revert-mode. If I run e.g. dos2unix on a buffer I'm editing, it is reverted, but Emacs does not notice that the line ending encoding has changed. Hence, continuing to edit and re-saving will undo the unix2dos command. In GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) of 2012-09-22 on batsu, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11300000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/2= 4.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-l= isp:/usr/share/emacs/site-lisp' '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -Wall -O2' 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: diff-auto-refine-mode: t TeX-PDF-mode: t shell-dirtrack-mode: t buffer-face-mode: t flyspell-mode: t smart-quotes-mode: t recentf-mode: t show-paren-mode: t server-mode: t savehist-mode: t minibuffer-electric-default-mode: t iswitchb-mode: t icomplete-mode: t global-auto-revert-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-s C-c C-c M-< C-s e d l=20 a b e l C-a C-s b a r e l y =20 C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s=20 i s SPC b u t M-d =20 =20 =20 =20 a n d SPC t h i r t y y - s i x SPC C-x=20 C-s C-c C-c C-s p u n SPC o n SPC C-a =20 =20 =20 =20 =20 ) C-x C-s C-c C-c =20 C-x C-f ~ / N o t e T h i n g L e =20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n I r i a=20 : S-SPC A =E2=80=93 Z . C-x C-s =20 =20 =20 =20 =20 C-x C-s =20 G r a m p s C-x C-s C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x k =20 C-x C-f M-> M-< M-> M-x r e p o r t b=20 u - e m a c s - b u g Recent messages: byte-code: End of buffer [27 times] Saving file /home/rrt/Notes/Things Lent... Wrote /home/rrt/Notes/Things Lent Saving file /home/rrt/Notes/Things Lent... Wrote /home/rrt/Notes/Things Lent Saving file /home/rrt/Notes/Things Lent... Wrote /home/rrt/Notes/Things Lent Reverting buffer `Things Lent'. byte-code: End of buffer [10 times] Mark set [3 times] Load-path shadows: /home/rrt/local/share/emacs/site-lisp/dict hides /usr/share/emacs24/site-li= sp/emacs-goodies-el/dict /home/rrt/local/share/emacs/site-lisp/browse-kill-ring hides /usr/share/ema= cs24/site-lisp/emacs-goodies-el/browse-kill-ring /home/rrt/.emacs.d/elpa/dictionary-1.8.7/link hides /usr/share/emacs24/site= -lisp/dictionary-el/link /home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary hides /usr/share/emacs2= 4/site-lisp/dictionary-el/dictionary /home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary-init hides /usr/share/e= macs24/site-lisp/dictionary-el/dictionary-init /home/rrt/.emacs.d/elpa/dictionary-1.8.7/connection hides /usr/share/emacs2= 4/site-lisp/dictionary-el/connection /usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/sit= e-lisp/auctex/multi-prompt /usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/= auctex/latex /usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-li= sp/auctex/texmathp /usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-li= sp/auctex/tex-fold /usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp= /auctex/tex-jp /usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lis= p/auctex/preview /usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lis= p/auctex/tex-bar /usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lis= p/auctex/tex-mik /usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-l= isp/auctex/toolbar-x /usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/au= ctex/tex /usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-l= isp/auctex/prv-emacs /usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lis= p/auctex/context /usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-li= sp/auctex/tex-info /usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-li= sp/auctex/tex-font /usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-l= isp/auctex/tex-style /usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-li= sp/auctex/bib-cite /usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-= lisp/auctex/font-latex /usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-= lisp/auctex/context-nl /usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-l= isp/auctex/plain-tex /usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-= lisp/auctex/context-en /usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lis= p/auctex/tex-buf /usr/share/emacs/site-lisp/golang-mode/go-mode-load hides /usr/share/emacs/= 24.1/site-lisp/golang-mode/go-mode-load /usr/share/emacs/site-lisp/golang-mode/go-mode hides /usr/share/emacs/24.1/= site-lisp/golang-mode/go-mode /usr/share/emacs/24.1/site-lisp/cmake-data/cmake-mode hides /usr/share/emac= s/site-lisp/cmake-mode /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/em= acs/24.1/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/24.1/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.1/lisp/textmodes/r= st Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils thai-util thai-word mule-util lao-util js json imenu sgml-mode locate thingatpt browse-url doc-view jka-compr image-mode dired ps-mode diff-git diff-mode log-edit pcvs-util add-log vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher texmathp preview prv-emacs warnings tex-buf noutline outline font-latex byte-opt bytecomp byte-compile cconv macroexp latex tex-style tex dbus xml latexenc sh-script executable shell pcomplete grep etags newcomment multi-isearch help-mode view nroff-mode autoconf autoconf-mode inform-mode make-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs flymake compile comint ansi-color ring vc-git face-remap regexp-opt flyspell ispell smart-quotes cperl-mode auto-dictionary-autoloads c-eldoc-autoloads dictionary-autoloads diff-git-autoloads dired-isearch-autoloads full-ack-autoloads guess-style-autoloads kill-ring-search-autoloads magit-autoloads mv-shell-autoloads tumble-autoloads http-post-simple-autoloads package tabulated-list completing-help recentf tree-widget wid-edit uniquify paren server savehist minibuf-eldef iswitchb icomplete autorevert desktop cus-start cus-load ropemacs pymacs user-site-loaddefs advice advice-preload yasnippet help-fns derived edmacro kmacro easymenu assoc cl go-mode-load emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode preview-latex tex-site auto-loads time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=20 http://rrt.sc3d.org/