emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [NEW] navi-mode for org files
Date: Tue, 09 Apr 2013 09:58:53 +0200	[thread overview]
Message-ID: <87wqscjfsy.fsf@gmail.com> (raw)
In-Reply-To: loom.20130409T031753-122@post.gmane.org

Charles Berry <ccberry@ucsd.edu> 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	other threads:[~2013-04-09  7:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 13:49 [NEW] navi-mode for org files Thorsten Jolitz
2013-04-08  2:12 ` Charles Berry
2013-04-08 19:27   ` Thorsten Jolitz
2013-04-08 21:41     ` Charles Berry
2013-04-08 22:19       ` Thorsten Jolitz
2013-04-09  1:47         ` Charles Berry
2013-04-09  7:58           ` Thorsten Jolitz [this message]
2013-04-08 19:31 ` Thorsten Jolitz
2013-04-09  2:16 ` Charles Berry
2013-04-09  7:52   ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqscjfsy.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).