help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delete all text from beginning of buffer to mark


From: Emanuel Berg
Subject: Re: How to delete all text from beginning of buffer to mark
Date: Tue, 09 May 2017 08:53:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Kaushal Modi wrote:

> For safety, I would set the start to
> (point-min) instead of 1. Then if the user
> has narrowed the buffer, the deletion will
> begin only from the beginning of the narrowed
> region, instead of the actual beginning of
> the buffer.

You are right! Nice catch. Myself I never use
narrowing but that's no excuse writing code
that isn't sound ("movable" in this case).

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]