Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-14 Thread John Kitchin
FYI, I found this today: (To silence byte-compiler warnings about unused variables, just use a variable name that start with an underscore. The byte-compiler interprets this as an indication that this is a variable known not to be used.) https://www.gnu.org/software/emacs/manual/html_node/elisp/U

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-11 Thread Nick Dokos
Thorsten Jolitz writes: > John Kitchin writes: > >> On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz >> wrote: >> >> #+BEGIN_SRC emacs-lisp >> (defun my-foo (_) >> "Hello World. >> Argument _ unknown argument." >> (+ 1 1)) >> #+END_SRC >> >> strange. in Emacs 25.1, I am

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-11 Thread John Kitchin
There is up to date ... And up to date😉 funnily enough I run a near bleeding edge version of Emacs from home brew and org 8.2.10 from Melpa. On Thursday, February 11, 2016, Thorsten Jolitz wrote: > John Kitchin > writes: > > > On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz > > > wrote: > > >

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-11 Thread Thorsten Jolitz
John Kitchin writes: > On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz > wrote: > > #+BEGIN_SRC emacs-lisp > (defun my-foo (_) > "Hello World. > Argument _ unknown argument." > (+ 1 1)) > #+END_SRC > > strange. in Emacs 25.1, I am pretty sure I get no errors from > check

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-10 Thread John Kitchin
On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz wrote: > #+BEGIN_SRC emacs-lisp > (defun my-foo (_) > "Hello World. > Argument _ unknown argument." > (+ 1 1)) > #+END_SRC > strange. in Emacs 25.1, I am pretty sure I get no errors from checkdoc. John --- P

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-10 Thread Thorsten Jolitz
John Kitchin writes: > I guess it is a required signature for the function (i.e. some other > function will call it with some argument), and _ indicates it is not > used in the body. If you were to give it the arg a name, then checkdoc > would complain about it not being in the docstring. Sounds

Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-09 Thread John Kitchin
I guess it is a required signature for the function (i.e. some other function will call it with some argument), and _ indicates it is not used in the body. If you were to give it the arg a name, then checkdoc would complain about it not being in the docstring. Thorsten Jolitz writes: > Hi List, >

[O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-09 Thread Thorsten Jolitz
Hi List, just out of curiosity, a few functions in org-element.el contain _ in their parameter list, but its not used in the body. What does it stand for? -- cheers, Thorsten