all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 17916@debbugs.gnu.org
Subject: bug#17916: 24.4.50; `write-region' doc for numeric APPEND arg
Date: Thu, 03 Jul 2014 19:39:49 +0300	[thread overview]
Message-ID: <83wqbu1jmy.fsf@gnu.org> (raw)
In-Reply-To: <d50aa5b4-8835-470d-b190-eb664e864bd3@default>

> Date: Thu, 3 Jul 2014 09:14:07 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> 
>   If APPEND is a number, `write-region' seeks to that byte offset from
>   the start of the file and writes the data from there.
> 
> Because of the word "seek", this will be clear to some programmers, but
> it might not be clear to others.  We should make clear that
> `write-region' overwrites existing bytes in the file; it does not insert
> the region text at the given position.

This assumes not only that the reader knows about 'seek', it also
assumes that she has general knowledge about writing to files: there
is no "inserting" stuff in the middle of a file.  When you write, you
always overwrite whatever is there.  Isn't that common knowledge?





  reply	other threads:[~2014-07-03 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 16:14 bug#17916: 24.4.50; `write-region' doc for numeric APPEND arg Drew Adams
2014-07-03 16:39 ` Eli Zaretskii [this message]
2021-07-14  9:28   ` Lars Ingebrigtsen
     [not found] <<d50aa5b4-8835-470d-b190-eb664e864bd3@default>
     [not found] ` <<83wqbu1jmy.fsf@gnu.org>
2014-07-03 17:23   ` Drew Adams

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=83wqbu1jmy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=17916@debbugs.gnu.org \
    --cc=drew.adams@oracle.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.