* bug#5669: 23.1.50; auto-revert and image mode doesnt cooperate
@ 2010-03-01 23:48 joakim
2010-03-02 21:21 ` Juri Linkov
0 siblings, 1 reply; 3+ messages in thread
From: joakim @ 2010-03-01 23:48 UTC (permalink / raw)
To: 5669
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug. If you can, give
a recipe starting from `emacs -Q':
It seems auto-revert mode and image mode doesnt cooperate, at least for
me.
To reproduce:
- create a jpeg image with gimp or something
- open the same image with emacs
- enable auto-revert for the image
- save a changed image with gimp
the buffer shows corruption, the images textual and visual
representation is mixed.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/local/share/emacs/23.1.50/etc/DEBUG.
In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.6)
of 2009-12-04 on localhost.localdomain
Windowing system distributor `Fedora Project', version 11.0.10704000
configured using `configure '--with-imagemagick''
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: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.utf8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Image[jpeg]
Minor modes in effect:
auto-revert-mode: t
diff-auto-refine-mode: t
erc-truncate-mode: t
erc-track-mode: t
erc-spelling-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-netsplit-mode: t
erc-log-mode: t
erc-button-mode: t
erc-fill-mode: t
erc-autojoin-mode: t
erc-autoaway-mode: t
ido-everywhere: t
erc-stamp-mode: t
erc-match-mode: t
show-paren-mode: t
erc-smiley-mode: t
erc-irccontrols-mode: t
recentf-mode: t
which-function-mode: t
shell-dirtrack-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
global-auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Recent input:
o g n C-n C-a <tab> C-e C-a C-k C-y <return> C-y <tab>
C-n <return> C-y <tab> C-p M-b M-b C-d 1 C-f C-f C-f
C-d 1 C-n M-b M-b C-d 1 C-f C-f C-f C-d 1 C-e M-b M-b
C-d 2 M-f <backspace> 2 C-e ) C-x C-s C-x C-e C-x b
f s <return> g C-p <return> q C-n <return> y q C-n
<return> C-x d <return> C-p <return> C-x d <return>
C-p <return> C-x k <return> C-x b <right> <right> <return>
<up> <up> C-x C-e <down> C-x C-e C-x C-e C-x C-e C-x
C-e <down> C-x C-e C-x C-e C-x C-e <up> <left> <left>
<backspace> 2 <down> <backspace> 1 C-x C-s C-e C-p
C-p C-n SPC ; ; n o t SPC s u r e SPC w h a t SPC a
f f e c t s SPC t h e SPC C-x C-s o r d e r SPC h e
r e C-x C-s <f9> m C-n C-x C-e C-x b <return> g <return>
q C-n <return> y q C-n <return> y C-x 2 C-x 3 <S-down>
<S-up> C-x d <return> <up> <up> <return> <S-right>
C-x d <return> <down> <return> <S-down> <S-down> C-x
2 C-x 0 <help-echo> <help-echo> <help-echo> <down-mouse-1>
<help-echo> <drag-mouse-1> <help-echo> <down-mouse-1>
<mouse-1> C-x 3 <down-mouse-1> <mouse-1> C-x b <right>
<return> <down> C-x C-e <S-left> g g g M-x r e v e
r t SPC b SPC <return> y M-x a u r <backspace> t o
SPC r e v e SPC SPC m SPC <return> <S-up> M-x M-p <return>
C-l <S-right> M-x M-p <return> M-x r e v e r t SPC
b SPC <return> y <S-left> M-x M-p <return> y <S-down>
<S-down> <S-right> C-x C-e <S-up> M-x r e p o <tab>
r <tab> <tab> b <tab> <return>
Recent messages:
Revert buffer from file /tmp/fswebcam/1.jpg? (y or n)
Type C-c C-c to view as text.
Revert buffer from file /tmp/fswebcam/0.jpg? (y or n)
Type C-c C-c to view as text.
windmove-do-window-select: Minibuffer is inactive
0
Reverting buffer `1.jpg'.
Reverting buffer `0.jpg'.
Reverting buffer `2.jpg'.
Making completion list... [2 times]
Load-path shadows:
/home/joakim/.elisp/nxml/nxhtml/fmode hides /home/joakim/.elisp/fmode
~/.elisp/emms/lisp/jack hides /home/joakim/.elisp/jack
~/.emacs.d/predictive/tNFA hides /home/joakim/.elisp/tNFA
/home/joakim/.elisp/nxml/nxhtml/php-mode hides /home/joakim/.elisp/php-mode
~/.emacs.d/predictive/dict-tree hides /home/joakim/.elisp/dict-tree
~/.emacs.d/predictive/trie hides /home/joakim/.elisp/trie
/home/joakim/.elisp/nxml/nxhtml/javascript hides /home/joakim/.elisp/javascript
~/.emacs.d/predictive/heap hides /home/joakim/.elisp/heap
~/.emacs.d/predictive/queue hides /home/joakim/.elisp/queue
/home/joakim/.elisp/nxml/nxhtml/css-mode hides /home/joakim/.elisp/css-mode
/home/joakim/.elisp/slime-2.0/tree-widget hides /home/joakim/.elisp/sclang/tree-widget
/home/joakim/.elisp/javascript-mode hides /home/joakim/.elisp/mdee/javascript-mode
/home/joakim/.elisp/tuareg-mode-1.45.0/camldebug hides /home/joakim/.elisp/caml/camldebug
/usr/local/share/emacs/site-lisp/bbdb-2.35/texinfo/infohack hides /usr/local/share/emacs/site-lisp/dvc/texinfo/infohack
/home/joakim/.elisp/edb/edb-1int-to-single hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edb-1int-to-single
/home/joakim/.elisp/edb/db-isbn hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-isbn
/home/joakim/.elisp/edb/db-search hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-search
/home/joakim/.elisp/edb/edb-meta hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edb-meta
/home/joakim/.elisp/edb/edb-t-human-names hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edb-t-human-names
/home/joakim/.elisp/edb/edbcore hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edbcore
/home/joakim/.elisp/edb/db-tagged hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-tagged
/home/joakim/.elisp/edb/db-rdb hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-rdb
/home/joakim/.elisp/edb/db-two-dbs hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-two-dbs
/home/joakim/.elisp/edb/db-nosetf hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-nosetf
/home/joakim/.elisp/edb/db-sort hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-sort
/home/joakim/.elisp/edb/edb-t-timedate1 hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edb-t-timedate1
/home/joakim/.elisp/edb/database hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/database
/home/joakim/.elisp/edb/edb-t-places-usuk hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/edb-t-places-usuk
/home/joakim/.elisp/edb/db-oldnames hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-oldnames
/home/joakim/.elisp/dictionary-1.8.7/connection hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/connection
/home/joakim/.elisp/edb/db-lemacs hides /usr/local/share/emacs/site-lisp/edb-1.31/lisp/db-lemacs
/home/joakim/.elisp/elip hides /usr/local/share/emacs/site-lisp/elip-0.803/source/elip
/home/joakim/.elisp/regress hides /usr/local/share/emacs/site-lisp/jde/lisp/regress
/usr/local/share/emacs/site-lisp/ecb/ecb2/test hides /usr/local/share/emacs/site-lisp/cedet/semantic/tests/test
/home/joakim/.elisp/wisentjs/wisent-javascript-jv-wy hides /usr/local/share/emacs/site-lisp/cedet/semantic/wisent/wisent-javascript-jv-wy
/home/joakim/.elisp/elunit hides /usr/local/share/emacs/site-lisp/dvc/lisp/contrib/elunit
/home/joakim/.elisp/compile hides /usr/local/share/emacs/site-lisp/edb-1.31/examples/edbibtex/compile
/home/joakim/.elisp/nxml/nxhtml/xhtmlin hides /usr/local/share/emacs/site-lisp/nxml/nxhtml/old/xhtmlin
/usr/local/share/emacs/site-lisp/emacs-planner/muse/examples/johnw/muse-init hides /usr/local/share/emacs/site-lisp/emacs-planner/muse/examples/mwolson/muse-init
/usr/local/share/emacs/site-lisp/cedet/speedbar/dframe hides /usr/local/share/emacs/23.1.50/lisp/dframe
/home/joakim/.elisp/face-remap hides /usr/local/share/emacs/23.1.50/lisp/face-remap
/usr/local/share/emacs/site-lisp/cedet/speedbar/sb-image hides /usr/local/share/emacs/23.1.50/lisp/sb-image
/home/joakim/.elisp/slime-2.0/tree-widget hides /usr/local/share/emacs/23.1.50/lisp/tree-widget
/home/joakim/.elisp/cedet/common/ezimage hides /usr/local/share/emacs/23.1.50/lisp/ezimage
/usr/local/share/emacs/site-lisp/cedet/speedbar/speedbar hides /usr/local/share/emacs/23.1.50/lisp/speedbar
/home/joakim/.elisp/emacs-planner/remember/remember hides /usr/local/share/emacs/23.1.50/lisp/textmodes/remember
/home/joakim/.elisp/nxml/nxhtml/css-mode hides /usr/local/share/emacs/23.1.50/lisp/textmodes/css-mode
/home/joakim/.elisp/compile hides /usr/local/share/emacs/23.1.50/lisp/progmodes/compile
/home/joakim/.elisp/nxml/nxml-mode-20041004/xsd-regexp hides /usr/local/share/emacs/23.1.50/lisp/nxml/xsd-regexp
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-util hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-util
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-parse hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-parse
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-maint hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-maint
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-rap hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-rap
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-match hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-match
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-xsd hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-xsd
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-mode hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-mode
/home/joakim/.elisp/nxml/nxml-mode-20041004/xmltok hides /usr/local/share/emacs/23.1.50/lisp/nxml/xmltok
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-maint hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-maint
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-pttrn hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-pttrn
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-loc hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-loc
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-parse hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-parse
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-cmpct hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-cmpct
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-uri hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-uri
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-nxml hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-nxml
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-uchnm hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-uchnm
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-util hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-util
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-glyph hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-glyph
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-valid hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-valid
/home/joakim/.elisp/nxml/nxml-mode-20041004/rng-dt hides /usr/local/share/emacs/23.1.50/lisp/nxml/rng-dt
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-ns hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-ns
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-enc hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-enc
/home/joakim/.elisp/nxml/nxml-mode-20041004/nxml-outln hides /usr/local/share/emacs/23.1.50/lisp/nxml/nxml-outln
/usr/local/share/emacs/site-lisp/emacs-w3m/attic/rfc2368 hides /usr/local/share/emacs/23.1.50/lisp/mail/rfc2368
~/.emacs.d/predictive/avl-tree hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/avl-tree
/usr/local/share/emacs/site-lisp/dvc/lisp/contrib/ewoc hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/ewoc
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-datadebug hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-datadebug
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-opt hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-opt
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-speedbar hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-speedbar
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-comp hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-comp
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-custom hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-custom
/usr/local/share/emacs/site-lisp/cedet/eieio/eieio-base hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/eieio-base
~/.elisp/emms/lisp/tq hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/tq
/usr/local/share/emacs/site-lisp/cedet/eieio/chart hides /usr/local/share/emacs/23.1.50/lisp/emacs-lisp/chart
/home/joakim/.elisp/cedet/common/cedet-cscope hides /usr/local/share/emacs/23.1.50/lisp/cedet/cedet-cscope
/home/joakim/.elisp/cedet/common/pulse hides /usr/local/share/emacs/23.1.50/lisp/cedet/pulse
/home/joakim/.elisp/cedet/common/cedet hides /usr/local/share/emacs/23.1.50/lisp/cedet/cedet
/usr/local/share/emacs/site-lisp/cedet/ede/ede hides /usr/local/share/emacs/23.1.50/lisp/cedet/ede
/home/joakim/.elisp/cedet/common/cedet-idutils hides /usr/local/share/emacs/23.1.50/lisp/cedet/cedet-idutils
/home/joakim/.elisp/cedet/common/data-debug hides /usr/local/share/emacs/23.1.50/lisp/cedet/data-debug
/home/joakim/.elisp/cedet/common/cedet-global hides /usr/local/share/emacs/23.1.50/lisp/cedet/cedet-global
/home/joakim/.elisp/cedet/common/mode-local hides /usr/local/share/emacs/23.1.50/lisp/cedet/mode-local
/home/joakim/.elisp/cedet/common/inversion hides /usr/local/share/emacs/23.1.50/lisp/cedet/inversion
/usr/local/share/emacs/site-lisp/cedet/semantic/semantic hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic
/home/joakim/.elisp/cedet/common/cedet-files hides /usr/local/share/emacs/23.1.50/lisp/cedet/cedet-files
/usr/local/share/emacs/site-lisp/cedet/srecode/srecode hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode
/home/joakim/.elisp/compile hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/compile
/usr/local/share/emacs/site-lisp/cedet/semantic/semantic hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/semantic
/usr/local/share/emacs/site-lisp/cedet/semantic/document hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/document
/home/joakim/.elisp/dictionary-1.8.7/dictionary hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/dictionary
/usr/local/share/emacs/23.1.50/lisp/progmodes/cpp hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/cpp
/usr/local/share/emacs/23.1.50/lisp/textmodes/table hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/table
/usr/local/share/emacs/23.1.50/lisp/loaddefs hides /usr/local/share/emacs/23.1.50/lisp/cedet/srecode/loaddefs
/usr/local/share/emacs/23.1.50/lisp/sort hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/sort
/usr/local/share/emacs/site-lisp/cedet/semantic/wisent/wisent hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/wisent
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/java hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/java
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/find hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/find
/usr/local/share/emacs/site-lisp/cedet/semantic/senator hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/senator
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/ctxt hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/ctxt
/usr/local/share/emacs/23.1.50/lisp/complete hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/complete
/usr/local/share/emacs/23.1.50/lisp/emacs-lisp/debug hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/debug
/usr/local/share/emacs/site-lisp/cedet/eieio/chart hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/chart
/usr/local/share/emacs/23.1.50/lisp/format hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/format
/usr/local/share/emacs/23.1.50/lisp/loaddefs hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/loaddefs
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/texi hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/texi
/usr/local/share/emacs/site-lisp/cedet/semantic/wisent/wisent hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/wisent/wisent
/home/joakim/.elisp/nxml/nxhtml/javascript hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/wisent/javascript
/usr/local/share/emacs/23.1.50/lisp/progmodes/grep hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/symref/grep
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/mode hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/decorate/mode
/usr/local/share/emacs/23.1.50/lisp/emacs-lisp/debug hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/bovine/debug
/usr/local/share/emacs/23.1.50/lisp/cedet/srecode/el hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/bovine/el
/usr/local/share/emacs/23.1.50/lisp/complete hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/analyze/complete
/usr/local/share/emacs/23.1.50/lisp/emacs-lisp/debug hides /usr/local/share/emacs/23.1.50/lisp/cedet/semantic/analyze/debug
Features:
(shadow emacsbug autorevert cedet-edebug debug info-look w3m-cookie
w3m-bookmark w3m-tabmenu w3m-search tabify bookmark autoconf
autoconf-mode starttls mailalias smtpmail moy-bbdb newcomment ede-locate
semantic-make semantic-make-by make-mode semantic-tag-write ediff-merg
ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff
smerge-mode diff-mode semanticdb-typecache semantic-tag-ls
semantic-tag-file log-edit pcvs-util add-log vc vc-git semantic-edit
semantic-c semanticdb-file semantic-dep semantic-gcc semantic-c-by
semantic-lex-spp ffap eieio-opt help-mode view wdired image-mode
multi-isearch ede-dired gnus-dired find-dired bbdb-gui mule-util
cal-move gnus-cite smiley w3m-form w3m-symbol w3m w3m-hist w3m-fb
w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util gnus-async
gnus-bcklg gnus-ml gnus-topic parse-time nnfolder utf-7 utf7 nnimap
nndraft nnmh bbdb-gnus bbdb-snarf mail-extr bbdb-com gnus-agent
gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-alias
highline nnmairix nnml stef-elisp csound-x csound-lsp csound-csd
csound-doc csound-opcodes csound-mid csound-ft graphs csound-spdb k
csound-key keykit-interaction keykit-mode kk_utils i csound-eel
comm-tests query-sheet embedded-elisp-library mmm-mode mmm-univ
mmm-class mmm-region mmm-auto mmm-vars mmm-utils mmm-compat
stef-elisp-compatibility nxhtml-autoload mumamo nxhtml-menu html-upl
html-site fmode nxml-enc nxml-nxhtml-autostart slime apropos hyperspec
my-msf-abbrev msf-abbrev python-21 python sym-comp sh-script cperl-mode
perl-mode semantic-el semantic-bovine bovine-debug semantic-debug
boxquote rect grep-edit winner vc-dispatcher vc-svn browse-kill-ring
jv-timeclock ses unsafep timeclock-visualize auto-edit-substitute
epresent-autoloads gtk-look-autoloads package reporter erc-truncate
erc-track erc-spelling flyspell ispell erc-ring erc-pcomplete
erc-netsplit erc-log erc-button erc-fill erc-join erc-autoaway
image-file grep fsdired hide-lines memory-usage my-eshell dired-x
dired-aux ido my-jde-init java-mode-indent-annotations
jde-eclipse-compiler-server flymake jde etags jde-open-source jde-class
jde-parse-class jde-import jde-java-font-lock jde-which-method
jde-java-grammar jde-wiz jde-complete eldoc jde-plugins executable
browse-url jde-gen tempo jde-run jde-jdb jde-bug jde-dbs jde-dbo regress
jde-db jde-parse sregex jde-imenu semantic-java semantic-doc avltree
stack-m elib-node jde-compile cc-mode cc-fonts cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs jde-help jde-widgets
beanshell jde-custom jde-project-file jde-autoload jde-util arc-mode
archive-mode pager emms-jave emms-player-mymplayer emms-playlist-limit
emms-volume emms-volume-amixer emms-tag-editor emms-info-metaflac
emms-i18n emms-mark emms-history emms-bookmarks emms-score
emms-stream-info emms-metaplaylist-mode emms-lastfm emms-browser
emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq
emms-playing-time emms-lyrics emms-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-util emms-streams
emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info
later-do emms-playlist-mode emms-player-vlc emms-player-mplayer
emms-player-simple emms-source-playlist emms-source-file locate
emms-dbus emms-setup emms emms-compat erc-stamp erc-match erc-ezbounce
color-theme ansi-color paren pcomplete plannerinit muse-backlink
remember-planner remember noutline outline planner-cyclic solar cal-dst
cal-bahai holidays hol-loaddefs ede-simple ede-linux ede-emacs
ede-cpp-root planner-appt appt diary-lib diary-loaddefs
planner-tasks-overview planner-erc erc-goodies erc erc-backend
erc-compat pp planner-gnus gnus-msg gnus-art mm-uu mml2015 mm-view smime
dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start
gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems planner-multi crm
planner-publish muse-xml muse-latex muse-wiki planner cal-menu calendar
cal-loaddefs muse-html muse-xml-common muse-colors cus-edit cus-start
cus-load muse-publish muse-project muse-protocols sb-info info
muse-regexps muse muse-nested-tags muse-mode windmove bbdb-autoloads
bbdb timezone pastebin pk-total-recall w3m-load dired-details+ dired
dired-details sort winring ecb ecb-symboldef ecb-analyse
ecb-compatibility ecb-winman-support ecb-autogen autoload ecb-tod
ecb-cycle ecb-eshell ecb-help ecb-jde efc ecb-method-browser hideshow
ecb-file-browser ecb-layout compile ecb-create-layout ecb-compilation
ecb-speedbar ecb-common-browser ecb-semantic-wrapper ecb-navigate
ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-util thingatpt
jka-compr disp-table anything-config rx anything easy-mmode woman man
recentf tree-widget semanticdb-java ede-proj-maven2 cedet-files cedet
cedet-contrib-load contrib-loaddefs cogre-load cogre-loaddefs
speedbar-load speedbar-loaddefs ede-load ede-loaddefs ede-speedbar
ede-files ede eieio-speedbar semantic-ia-sb semantic-analyze
semantic-scope semantic-analyze-fcn semantic-sort semantic-sb speedbar
sb-image dframe eieio-custom ede-source srecode-load srecode
srecode-loaddefs semantic-load senator which-func semantic-imenu imenu
semantic-format ezimage semantic-mru-bookmark semanticdb-mode
semantic-idle semantic-ctxt semantic-decorate-include semanticdb-find
semanticdb-ref semanticdb-el semanticdb-search semantic-find semanticdb
eieio-base semantic-decorate-mode semantic-decorate pulse
semantic-util-modes semantic-util semantic semantic-lex semantic-tag
working fame semantic-fw semantic-loaddefs mode-local find-func
eieio-load eieio-loaddefs cedet-load cedet-compat cedet-loaddefs eieio
byte-opt bytecomp byte-compile inversion cl cl-19 generic-x edmacro
kmacro jvfetchmail mailcrypt zen-mode tramp-imap epa derived epg
epg-config imap-hash imap message sendmail ecomplete rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047
rfc2045 qp ietf-drums mailabbrev nnheader gmm-utils wid-edit mailheader
canlock sha1 hex-util hashcash mail-utils assoc tramp-gw tramp-gvfs
zeroconf url-parse url-vars mm-util mail-prsvr dbus xml tramp-fish
tramp-smb tramp-cache tramp-ftp tramp-cmds tramp regexp-opt auth-source
gnus-util netrc time-date advice help-fns advice-preload shell comint
ring password-cache format-spec tramp-compat trampver server timeclock
battery tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
font-setting tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button
minibuffer faces cus-face text-properties overlay md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind system-font-setting font-render-setting
xwidget gtk x-toolkit x multi-tty emacs)
--
Joakim Verona
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#5669: 23.1.50; auto-revert and image mode doesnt cooperate
2010-03-01 23:48 bug#5669: 23.1.50; auto-revert and image mode doesnt cooperate joakim
@ 2010-03-02 21:21 ` Juri Linkov
2010-05-25 16:06 ` Juri Linkov
0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2010-03-02 21:21 UTC (permalink / raw)
To: joakim; +Cc: 5669
> It seems auto-revert mode and image mode doesnt cooperate, at least for
> me.
>
> To reproduce:
> - create a jpeg image with gimp or something
> - open the same image with emacs
> - enable auto-revert for the image
> - save a changed image with gimp
>
> the buffer shows corruption, the images textual and visual
> representation is mixed.
The patch below should fix this. As you can see, it has to call
`(clear-image-cache)' to update the display. It seems `image-refresh'
in `image-toggle-display-image' is supposed to do this, but doesn't do.
I don't know if `image-refresh' was designed that way or not?
=== modified file 'lisp/image-mode.el'
--- lisp/image-mode.el 2010-02-09 19:22:31 +0000
+++ lisp/image-mode.el 2010-03-02 21:19:38 +0000
@@ -355,6 +355,7 @@ (defun image-mode ()
(image-mode-setup-winprops)
(add-hook 'change-major-mode-hook 'image-toggle-display-text nil t)
+ (add-hook 'after-revert-hook 'image-after-revert-hook nil t)
(run-mode-hooks 'image-mode-hook)
(message "%s" (concat
(substitute-command-keys
@@ -501,6 +502,15 @@ (defun image-toggle-display ()
(if (image-get-display-property)
(image-mode-as-text)
(image-mode)))
+
+(defun image-after-revert-hook ()
+ (when (image-get-display-property)
+ (image-toggle-display-text)
+ ;; FIXME: `image-refresh' in `image-toggle-display-image' currently
+ ;; doesn't update image display. Force this by clearing the image cache.
+ (clear-image-cache)
+ (image-toggle-display-image)))
+
\f
;;; Support for bookmark.el
(declare-function bookmark-make-record-default "bookmark"
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-25 16:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 23:48 bug#5669: 23.1.50; auto-revert and image mode doesnt cooperate joakim
2010-03-02 21:21 ` Juri Linkov
2010-05-25 16:06 ` Juri Linkov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.