emacs-devel
[Top][All Lists]
Advanced

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

`mark' func returning nil


From: Kevin Ryde
Subject: `mark' func returning nil
Date: Thu, 05 Jan 2006 09:19:28 +1100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

The docstring and manual of the `mark' func reads to me like it always
returns an integer, and the nil return is only if you use the FORCE arg.

But if I'm not mistaken nil is normal when the mark has never been set
in a buffer (eg. C-x b foo C-: (mark) => nil).  It'd be nice if that
could be clarified, since I didn't realize it until I'd written some
code expecting an integer, which bombed in a new buffer.

2006-01-02  Kevin Ryde  <address@hidden>

        * simple.el (mark): Clarify docstring, return is nil if mark not yet
        set.

        * markers.texi (The Mark): Clarify `mark', return is nil if mark not
        yet set.

Attachment: simple.el.diff
Description: Text document

Attachment: markers.texi.diff
Description: Text document


reply via email to

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