all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simias <simias.n@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; hexl-mode and auto-revert-mode incompatibilities
Date: Tue, 22 Jan 2008 03:06:45 +0100	[thread overview]
Message-ID: <86wsq2txze.fsf@simias.hd.free.fr> (raw)
In-Reply-To: <4794A050.3000902@gmx.at> (martin rudalics's message of "Mon, 21 Jan 2008 14:38:24 +0100")

martin rudalics <rudalics@gmx.at> writes:

>>   If I open a file in emacs, enable both hexl-mode and
>> auto-revert-mode in its buffer and then modify the content of the file
>> externally, the buffer gets refreshed but its content seems... rather
>> littered. C-l doesn't fix it.
>>
>>   I have similar problems with "auto-revert-tail-mode", but not when I
>> revert the buffer "manually" with M-x revert-buffer.
>>
>>   It seems that when the buffer gets refreshed, it behaves as if
>> hexl-mode was not here (for instance with auto-revert-tail-mode, it
>> just appends the text, without printing the hex values) but I'm not
>> sure about what's going on here.
>
> It's because `auto-revert-mode' doesn't reset the major mode when
> reverting the buffer and `hexl-mode' does nothing when the buffer is
> already in `hexl-mode'.  Does the attached patch give good results?
> *** hexl.el.~1.115.~	Sat Oct 27 12:07:12 2007
> --- hexl.el	Mon Jan 21 14:32:58 2008
  [...]

  Thank you for investigating this.

  It does for auto-revert-mode (everything seems to work fine), however
with auto-revert-tail-mode it's even more broken. When I append to a
file externally and both auto-revert-tail-mode and hexl-mode are
activated, first emacs tells me:
"Converting to hexl format discards undo info; ok? (y or n)",
and when I answer "yes" the buffer fills with gibberish.
  
  Thanks again,
-- 
Simias

  reply	other threads:[~2008-01-22  2:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21  1:58 23.0.50; hexl-mode and auto-revert-mode incompatibilities Simias
2008-01-21 13:38 ` martin rudalics
2008-01-22  2:06   ` Simias [this message]
2008-01-22 13:50     ` martin rudalics
2008-01-25  8:55       ` Simias
2008-01-25  9:28         ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wsq2txze.fsf@simias.hd.free.fr \
    --to=simias.n@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.