emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] externals/hcel 9dc18bef43 11/13: fixing header comments


From: Stefan Monnier
Subject: Re: [elpa] externals/hcel 9dc18bef43 11/13: fixing header comments
Date: Wed, 21 Sep 2022 09:21:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> -      (get-text-property (1- (point)) prop)))
> +      (get-text-property (max 0 (1- (point))) prop)))

Buffer positions start at `point-min` (usually 1) not 0, so you should
probably use (max (point-min) (1- (point)))


        Stefan




reply via email to

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