help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: on specifying the C source code directory


From: Marcin Borkowski
Subject: Re: on specifying the C source code directory
Date: Tue, 02 Feb 2016 08:23:54 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.1

On 2016-02-02, at 01:17, Emanuel Berg <embe8573@student.uu.se> wrote:

> Daniel Bastos <dbastos@toledo.com> writes:
>
>> (setq find-function-C-source-directory
>> (file-name-as-directory "path/to/my/emacs/src"))
>
> `file-name-as-directory' just adds a trail slash so
> that can be added manually.

As the docstring says, in Unix this is so.  I don't know about other
systems.

> Also, it doesn't seem to be necessary! I never thought
> about it, but I see now that I have it like this - no
> slash - and it has always worked just the same:
>
>     (defvar find-function-C-source-directory)
>     (setq find-function-C-source-directory "~/.emacs.d/emacs-24.1/src")

Out of curiosity: why defvar?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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