emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [NEW] navi-mode for org files


From: Thorsten Jolitz
Subject: Re: [O] [NEW] navi-mode for org files
Date: Tue, 09 Apr 2013 09:58:53 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Charles Berry <address@hidden> writes:

> Thorsten Jolitz <tjolitz <at> gmail.com> writes:
>
>> 
>> Charles Berry <ccberry <at> ucsd.edu> writes:
>> 
>> > `------------------------------------------------------------------------
>> >> >
>> >> > I cannot seem to get this to work. If I try to execute
>> >> >
>> >> > ;; # #+begin_src emacs-lisp
>> >> > ;; #  (require 'outshine)
>> >> > ;; #  (add-hook ‘outline-minor-mode-hook ‘outshine-hook-function)
>> >> > ;; # #+end_src
>> >> >
>> >> > the add-hook returns 
>> >> >
>> >> > Debugger entered--Lisp error: (void-variable ‘outline-minor-mode-hook)
>> >> >
>> >> >
>
> SOLVED!
>
> The clue was: 
>
> ,----
> | (add-hook HOOK FUNCTION &optional APPEND LOCAL)
> | 
> | Add to the value of HOOK the function FUNCTION.
> |
> |[...]
> | 
> | HOOK should be a symbol, and FUNCTION may be any valid function.  If
> | HOOK is void, it is first set to nil.  If HOOK's value is a single
> | function, it is changed to a list of functions.
> `----
>
> So how can this not work?
>
> Well, with point on the character just before "outline-minor...",
>
> C-u C-x = 
>
> tells me that I was *not* looking at an apostrophe!!!
>
> ,----
> |              position: 2519 of 66947 (4%), column: 17
> |             character: ‘ (displayed as ‘) (codepoint 8216, #o20030,
> |[snip] 
> | Character code properties: customize what to show
> |   name: LEFT SINGLE QUOTATION MARK
> |   old-name: SINGLE TURNED COMMA QUOTATION MARK
> |   general-category: Pi (Punctuation, Initial quote)
> |   decomposition: (8216) ('‘')
> `----
>
> So, add-hook was trying to reference a variable called
>
>      "‘outline-minor-mode-hook"
>
> If I replace the "left single quotation marks" in that line with 
> "apostrophes", outline-minor-mode seems to work.
>
> :-)
>
> Maybe a similar edit of the source would protect others like me who 
> copy and paste what they see rather than typing it in longhand.

Thanks for finding this strange bug! I don't even have LEFT SINGLE
QUOTATION MARK on my keyboard and wasn't aware of its existance, so this
must be a bug caused by 'copy&paste' or so. No idea where this comes
from. 

Actually, for me it wasn't even a bug since it only appereared in the
comment-sections (and thus in the README files) of the libraries, not in
the code (in my dot emacs)  itself. 

I fixed that and pushed new versions on Github. Sorry for the hassle. 

-- 
cheers,
Thorsten




reply via email to

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