emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: John Kitchin
Subject: Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?
Date: Sun, 14 Feb 2016 11:45:14 -0500

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/Using-Lexical-Binding.html

John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Thu, Feb 11, 2016 at 12:33 PM, Nick Dokos <address@hidden> wrote:
Thorsten Jolitz <address@hidden> writes:

> John Kitchin <address@hidden> writes:
>
>> On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz <address@hidden>
>> 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.
>
> Maybe not so strange, since I'm on:
>
> ,----
> | GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6)
> |  of 2015-09-10 on foutrelis
> `----
>
> And I thought with Archlinux I'm always up-to-date ...

Unless you build your own from the upstream git repo, you can never be
up to date; even so, it depends on how often you build - I build from
upstream every six months or so and my current version is

GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.15) of
2015-08-16

It's probably time to rebuild...

--
Nick




reply via email to

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