0

I'm opening the very same file with Emacs-24.5 and with Emacs-23.1. But the latter shows me what seems to be an older version of this file! Might this be a bug of in Emacs-23.1?

I updated the question with images showing the file (opened with C-x C-f) content and the respective output of (buffer-file-name)

The image show that there are different contents for the same file

buffer-file-name

  • 2
    Check the value of buffer-file-name for each file and see if one has slightly different name -- e.g., with a tilde or something. M-x describe-variable RET buffer-file-name RET. – lawlist Aug 3 '15 at 4:56
  • 1
    What @lawlist said. Probably two different files, and pilot error. – Drew Aug 3 '15 at 5:03
  • I updated my question please have a look. – Dieter.Wilhelm Aug 5 '15 at 16:01
  • 1
    Dieter.Wilhelm: That's a picture of what you described, but doesn't really help. Show us the buffer-file-name values for each one (as lawlist suggested). You might also tell us exactly how you're opening the file in each one? – phils Aug 6 '15 at 1:44
  • 1
    Just throwing in a few ideas : you could check (verify-visited-file-modtime). You could also look at the file in dired to check its attributes/last modification time, or simply (file-attributes buffer-file-name) but it's less readable. Might also want to check (file-truename buffer-file-name) just in case. – YoungFrog Aug 6 '15 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.