all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Igor Saprykin <sheleztt@gmail.com>
Cc: 43231@debbugs.gnu.org
Subject: bug#43231: 27.1; hexl-insert-hex-char on an empty file "hexl-current-address: Point is not on a character in the file".
Date: Sun, 06 Sep 2020 17:15:57 +0300	[thread overview]
Message-ID: <83tuwbng82.fsf@gnu.org> (raw)
In-Reply-To: <CAOzyyiQiWks1fV5COdf9f2UuJQ27ohig3w7T_Ua6VnZUVeJUEQ@mail.gmail.com> (message from Igor Saprykin on Sat, 5 Sep 2020 12:22:42 -0700)

tags 43231 notabug
thanks

> From: Igor Saprykin <sheleztt@gmail.com>
> Date: Sat, 5 Sep 2020 12:22:42 -0700
> 
> hexl-mode doesn't seem to allow me to create a binary file.
> 
> Steps:
> 1. Open Emacs
> 2. Create a new file using C-x C-f /tmp/boot-sect.bin
> 3. M-x hexl-mode
> 4. M-x hexl-insert-hex-char
> 5. e
> 6. Nothing is written into the buffer and the message buffer says "Point is not on a character file".

hexl-mode doesn't support adding or deleting characters, it only
supports replacing them.  E.g., hexl-insert-hex-char _replaces_ the
character at point with what you type.  So what you see is what this
mode is supposed to do: it is based on the assumption that the size of
the file you are editing shouldn't be changed.

If you want to create a file from scratch, why do you need hexl-mode?
You can type bytes in hex or octal using C-q.





  reply	other threads:[~2020-09-06 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05 19:22 bug#43231: 27.1; hexl-insert-hex-char on an empty file "hexl-current-address: Point is not on a character in the file" Igor Saprykin
2020-09-06 14:15 ` Eli Zaretskii [this message]
2020-09-06 14:40   ` Lars Ingebrigtsen
2020-09-06 14:47     ` Eli Zaretskii
2020-09-06 22:10       ` Unknown
2020-09-08 14:03         ` Eli Zaretskii
2020-09-12 15:29           ` Unknown
2020-09-06 17:25   ` Lars Ingebrigtsen
2020-09-06 20:55     ` Igor Saprykin

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=83tuwbng82.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=43231@debbugs.gnu.org \
    --cc=sheleztt@gmail.com \
    /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.