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
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
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:
> >
>
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
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
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
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,
>
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