all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* lisp question
@ 2011-08-04  2:25 suvayu ali
  2011-08-04  4:52 ` Jambunathan K
  0 siblings, 1 reply; 16+ messages in thread
From: suvayu ali @ 2011-08-04  2:25 UTC (permalink / raw)
  To: Emacs mailing list

Hi Elisp users,

I was trying to write some simple elisp code to manipulate properties
from an org-mode entry. I can't figure out what kind of variable is
returned and how I can extract "somecategory" into a string from it.

(org-get-category (point)) ; evaluating gives me the output below
#("somecategory" 0 12 (fontified t font-lock-fontified t face
org-meta-line org-category "property-test"))

Thanks for any guidance.

-- 
Suvayu

Open source is the future. It sets us free.



^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <mailman.55.1178045196.32220.help-gnu-emacs@gnu.org>]
* Re: lisp question
@ 2007-05-01 18:39 A Soare
  2007-05-01 19:10 ` Jesper Harder
  0 siblings, 1 reply; 16+ messages in thread
From: A Soare @ 2007-05-01 18:39 UTC (permalink / raw)
  To: Emacs   Help  [help-gnu-emacs]

What determined the mathematicians to give the definition of x^0 = 1, not defined for x=0 ?

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <mailman.5.1177957929.32220.help-gnu-emacs@gnu.org>]
* Re: lisp question
@ 2007-04-30 18:25 A Soare
  2007-04-30 19:09 ` Peter Dyballa
  0 siblings, 1 reply; 16+ messages in thread
From: A Soare @ 2007-04-30 18:25 UTC (permalink / raw)
  To: Emacs   Help  [help-gnu-emacs]

Why e^0 evaluates to 1?

^ permalink raw reply	[flat|nested] 16+ messages in thread
* lisp question
@ 2007-04-29 17:14 Hadron
  2007-04-29 17:32 ` Barry Margolin
  0 siblings, 1 reply; 16+ messages in thread
From: Hadron @ 2007-04-29 17:14 UTC (permalink / raw)
  To: help-gnu-emacs


from the lisp tutorial which comes with emacs 22:

,----
| 1.8.3 Variable Number of Arguments
| ----------------------------------
| 
| Some functions, such as `concat', `+' or `*', take any number of
| arguments.  (The `*' is the symbol for multiplication.)  This can be
| seen by evaluating each of the following expressions in the usual way.
| What you will see in the echo area is printed in this text after `=>',
| which you may read as `evaluates to'.
| 
|    In the first set, the functions have no arguments:
| 
|      (+)       => 0
| 
|      (*)       => 1
| 
|    In this set, the functions have one argument each:
| 
|      (+ 3)     => 3
| 
|      (* 3)     => 3
| 
|    In this set, the functions have three arguments each:
| 
|      (+ 3 4 5) => 12
| 
|      (* 3 4 5) => 60
`----

It kind of glosses over sections (1) and (2).

Why do (*) and (* 3) evaluate to 1?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-08-04  6:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-04  2:25 lisp question suvayu ali
2011-08-04  4:52 ` Jambunathan K
2011-08-04  6:49   ` suvayu ali
     [not found] <mailman.55.1178045196.32220.help-gnu-emacs@gnu.org>
2007-05-01 19:21 ` Maarten Bergvelt
2007-05-01 20:32 ` Scott Frazer
  -- strict thread matches above, loose matches on Subject: below --
2007-05-01 18:39 A Soare
2007-05-01 19:10 ` Jesper Harder
2007-05-01 21:11   ` Marco Almeida
     [not found] <mailman.5.1177957929.32220.help-gnu-emacs@gnu.org>
2007-05-01  8:23 ` Brendan Halpin
2007-05-01 11:41   ` Hartmut Figge
2007-05-01 13:24     ` Malte Spiess
2007-04-30 18:25 A Soare
2007-04-30 19:09 ` Peter Dyballa
2007-04-29 17:14 Hadron
2007-04-29 17:32 ` Barry Margolin
2007-04-29 23:06   ` Hadron

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.