From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: are heading properties always strings? Date: Fri, 3 Jan 2014 16:14:03 -0500 Message-ID: References: <878uuxbgcu.fsf@bzg.ath.cx> <87ppo9e9au.fsf@Rainer.invalid> <8761q1we4i.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b1600b1c215d804ef1763f1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzC4F-0001Ko-BK for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 16:14:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzC4D-0002RK-U0 for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 16:14:07 -0500 In-Reply-To: <8761q1we4i.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Achim Gratz , "emacs-orgmode@gnu.org" --047d7b1600b1c215d804ef1763f1 Content-Type: text/plain; charset=ISO-8859-1 excellent, that is exactly where I would have expected it, in the documentation for org-entry-put. it would also make sense to say in org-entry-get that you get a string. if you store a number in a property, it is not obvious you can't just get it and do math on it. Thanks! John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Fri, Jan 3, 2014 at 5:31 AM, Bastien wrote: > Achim Gratz writes: > > > Bastien writes: > >>> 3. It also wasn't obvious that you have to give org-entry-put a > >>> string. If you try to set it to an integer, you get strange control > >>> characters like ^A or ^C. > >> > >> Can you tell which place in the documentation you expect to find this > >> information? In functions' docstrings or in the manual? > > > > Besides documenting the requirement, I guess it makes sense to check for > > stringiness before using the argument. > > Indeed, done here: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=9758f2 > > -- > Bastien > > --047d7b1600b1c215d804ef1763f1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
excellent, that is exactly where I would have expected it,= in the documentation for org-entry-put.=A0

it would also make sens= e to say in org-entry-get that you get a string. if you store a number in a= property, it is not obvious you can't just get it and do math on it. <= br>
Thanks!

John=

-----------------------------------
John Kitchin
Associate Pr= ofessor
Doherty Hall A207F
Department of Chemical Engineering
Carn= egie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Fri, Jan 3, 2014 at 5:31 AM, Bastien = <bzg@= gnu.org> wrote:
Achim Gratz <Stro= meko@nexgo.de> writes:

> Bastien writes:
>>> 3. It also wasn't obvious that you have to give org-entry-= put a
>>> string. If you try to set it to an integer, you get strange co= ntrol
>>> characters like ^A or ^C.
>>
>> Can you tell which place in the documentation you expect to find t= his
>> information? =A0In functions' docstrings or in the manual?
>
> Besides documenting the requirement, I guess it makes sense to check f= or
> stringiness before using the argument.

Indeed, done here:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3D9758f= 2

--
=A0Bastien


--047d7b1600b1c215d804ef1763f1--