unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21923: 24.4; Image refresh does not refreshed modified file
@ 2015-11-14 20:00 Sam Sinayoko
  2015-11-16 15:50 ` Eli Zaretskii
  2015-11-16 21:02 ` Stephen Leake
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Sinayoko @ 2015-11-14 20:00 UTC (permalink / raw)
  To: 21923

[-- Attachment #1: test1.png --]
[-- Type: image/png, Size: 4753 bytes --]

[-- Attachment #2: test2.png --]
[-- Type: image/png, Size: 5664 bytes --]

[-- Attachment #3: Type: text/plain, Size: 4639 bytes --]


The image does not refresh even if it has been modified. The test below
opens an image in emacs, then swaps the image with a second (different)
image, before re-opening the first, now modified, image. Even after
refreshing the buffer with g, the image still looks like the original
image instead of the new one.

Sam

(defun img-bug ()
  (interactive)
  (let ((img1 "test1.png")
	(img2 "test2.png")
	(tmp  "tmp.png"))
    (find-file img1)
    ;; swap the two images by renaming them
    (copy-file img1 tmp t)
    (copy-file img2 img1 t)
    (copy-file tmp img2 t)
    (find-file img1)))





In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2014-10-20 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1348
Configured using:
 `configure --with-ns'

Important settings:
  value of $LC_ALL: en_GB.UTF-8
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Dired

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
n <return> s-k s-o <down-mouse-1> <mouse-1> C-x b <return> 
C-x b t m <tab> C-g C-x b * <tab> <backspace> / <tab> 
t <tab> C-g C-x C-f / t m <tab> <return> C-n C-n C-n 
s C-p C-p C-p C-p C-p C-p C-p C-p C-n C-p C-p C-p C-p 
C-p C-p C-p C-p C-p <return> q C-n <return> q C-p <return> 
n p n p g y e s <return> q & o p e n <return> q <backspace> 
C-x k <return> C-n & o p e n <return> C-p & p e n <return> 
<help-echo> <down-mouse-1> <mouse-1> <help-echo> <down-mouse-1> 
<mouse-1> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> & o p e n <return> <down-mouse-1> <mouse-1> 
s-o <down-mouse-1> <mouse-1> s-x s-x C-g C-g s-x C-x 
C-q s-x C-g C-g C-g s-x M-x i m g - b u <tab> <return> 
y e s <return> <help-echo> <down-mouse-1> <mouse-1> 
C-x b <return> g g g g s-r <backspace> <backspace> 
<backspace> <backspace> C-c C-c s-o <down-mouse-1> 
<mouse-1> C-x b s c <tab> <return> C-p C-p C-p C-p 
C-p C-p <help-echo> <help-echo> <down-mouse-1> <mouse-1> 
g C-p C-p C-p & o p e n <tab> <return> q <backspace> 
C-x b <return> C-n & o p e n <return> q <backspace> 
C-x k <return> C-p <return> q C-n <return> g y e s 
<return> q s-o <down-mouse-1> <mouse-1> s-k s-k C-x 
b s c <tab> r <tab> C-g <help-echo> C-x 1 M-x i m g 
- b u <tab> <return> y e s <return> n y e s <return> 
p n p q M-x e m a c s - r e <tab> <backspace> <backspace> 
r e p <tab> <backspace> <backspace> <backspace> b u 
<tab> <backspace> <backspace> r e <tab> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> r e <tab> p <tab> o <tab> r 
<tab> <return>

Recent messages:
Type C-c C-c to view the image as text.
s-r is undefined
(No changes to be performed)
open test1.png: finished.
open test2.png: finished.
Type C-c C-c to view the image as text. [2 times]
Quit
Type C-c C-c to view the image as text. [6 times]
Making completion list... [3 times]
<s-backspace> is undefined [2 times]

Load-path shadows:
None found.

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
help-fns mail-prsvr mail-utils wdired image-file help-mode shell
pcomplete comint ansi-color ring dired-aux image-mode easymenu dired
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel ns-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-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 nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process cocoa ns multi-tty emacs)

Memory information:
((conses 16 86277 6089)
 (symbols 48 18474 0)
 (miscs 40 67 263)
 (strings 32 13539 4255)
 (string-bytes 1 371069)
 (vectors 16 10540)
 (vector-slots 8 388683 5690)
 (floats 8 65 354)
 (intervals 56 575 22)
 (buffers 960 14))


^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21923: 24.4; Image refresh does not refreshed modified file
  2015-11-14 20:00 Sam Sinayoko
@ 2015-11-16 15:50 ` Eli Zaretskii
  2015-11-16 21:02 ` Stephen Leake
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2015-11-16 15:50 UTC (permalink / raw)
  To: Sam Sinayoko; +Cc: 21923

> From: Sam Sinayoko <s.sinayoko@soton.ac.uk>
> Date: Sat, 14 Nov 2015 20:00:29 +0000
> 
> The image does not refresh even if it has been modified. The test below
> opens an image in emacs, then swaps the image with a second (different)
> image, before re-opening the first, now modified, image. Even after
> refreshing the buffer with g, the image still looks like the original
> image instead of the new one.

I cannot reproduce this (but I'm not on Darwin).

Is this in "emacs -Q"?  If not, please try in "emacs -Q", maybe it's
some customization you have there.  (I'm confused by your mentioning
of "refreshing with g", which seems to hint on Dired?)

If this happens in "emacs -Q", it might be specific to Darwin.  In any
case, if you can try this in a later version, it will help, in case we
already fixed this even on Darwin.

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21923: 24.4; Image refresh does not refreshed modified file
       [not found] <D26FABFF.6CBA%s.sinayoko@soton.ac.uk>
@ 2015-11-16 17:12 ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2015-11-16 17:12 UTC (permalink / raw)
  To: Sinayoko S., 21923-done

> From: "Sinayoko S." <S.Sinayoko@soton.ac.uk>
> Date: Mon, 16 Nov 2015 15:53:11 +0000
> 
> Yes this was with ³emacs -Q². However I¹ve installed a new version of
> Emacs (24.5) and it has fixed the problem. Not sure if there¹s any changes
> that have been made between the two versions that may explain this.

Great, so I'm closing the bug.

Thanks for a quick response.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21923: 24.4; Image refresh does not refreshed modified file
  2015-11-14 20:00 Sam Sinayoko
  2015-11-16 15:50 ` Eli Zaretskii
@ 2015-11-16 21:02 ` Stephen Leake
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Leake @ 2015-11-16 21:02 UTC (permalink / raw)
  To: Sam Sinayoko; +Cc: 21923

Sam Sinayoko <s.sinayoko@soton.ac.uk> writes:

> The image does not refresh even if it has been modified. 

This is fixed in Emacs 25.


-- 
-- Stephe





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-16 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <D26FABFF.6CBA%s.sinayoko@soton.ac.uk>
2015-11-16 17:12 ` bug#21923: 24.4; Image refresh does not refreshed modified file Eli Zaretskii
2015-11-14 20:00 Sam Sinayoko
2015-11-16 15:50 ` Eli Zaretskii
2015-11-16 21:02 ` Stephen Leake

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).