emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Gilbert <magicgilbert@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: possible single-quote bug in PDF docs (was: trouble with Imenu integration)
Date: Fri, 16 Jul 2010 15:21:22 -0700	[thread overview]
Message-ID: <3C4C24C7-732F-4F0C-BA58-11F8158DE3E5@gmail.com> (raw)
In-Reply-To: <B6A30FA3-1E30-44C6-AF82-1479311D53C1@gmail.com>

>>>> Following the instructions from manual, I have this near the end of my startup file (I hope that is copied correctly):
>>> 
>>>> 	(add-hook ’org-mode-hook
>>>> 		   (lambda () (imenu-add-to-menubar "Imenu")))
>>> 
>>> Um... Wrong type of quote?  It's
>>> 'org-mode-hook (ASCII 39)
>>> not
>>> ’org-mode-hook (Unicode 8217)
>> 
>> Yep. When there wasn't an obvious answer, I found the same thing. Thank you regardless, David. What effect is it that the incorrect character has on the LISP processing? The error returned was related the name of the variable...
>> 
>> Also, I guess this is a possible bug in the documentation: Looks like the single quote in the PDF version of the manual is Unicode 8217. (And of course I copied and pasted, to avoid getting anything wrong when I typed it!) Would that be something worth correcting? I have this vague notion that I've encountered it elsewhere. The HTML version of the manual is rendered correctly, but the PDF is not, I think. A quick scan suggests this — the renderer turns all the single quotes into curly quotes, even when they are being used in code.
> 
> Yes.  Unfortunately I don't know a way to fix this.

I am ignorant of LATEX and your particular architectural challenges of course. But the way scripts like John Grubers SmartyPants does it is by only converting those quote marks that are outside of tags indicating that the section is code or other exempt section (in HTML these would be  <pre>, <code>, <kbd>, or<script>). 

— Michael

  reply	other threads:[~2010-07-16 22:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 10:33 trouble with Imenu integration Michael Gilbert
2010-07-09 19:23 ` why would org-mode-hook be a void variable? (was: trouble with Imenu integration) Michael Gilbert
2010-07-09 20:09   ` why would org-mode-hook be a void variable? Bernt Hansen
2010-07-11 23:43     ` Michael Gilbert
2010-07-09 20:31   ` why would org-mode-hook be a void variable? (was: trouble with Imenu integration) Eric S Fraga
2010-07-16 17:36 ` trouble with Imenu integration David Maus
2010-07-16 20:21   ` possible single-quote bug in PDF docs (was: trouble with Imenu integration) Michael Gilbert
2010-07-16 20:33     ` Carsten Dominik
2010-07-16 22:21       ` Michael Gilbert [this message]
2010-07-17  6:34       ` David Maus
2010-07-18  6:05         ` Carsten Dominik
2010-07-18  7:45           ` [PATCH] Use proper quote and backtick in PDF output David Maus
2010-07-18  9:08             ` Carsten Dominik
2010-07-18  9:05           ` possible single-quote bug in PDF docs (was: trouble with Imenu integration) David Maus
2010-07-18  9:51             ` Carsten Dominik

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=3C4C24C7-732F-4F0C-BA58-11F8158DE3E5@gmail.com \
    --to=magicgilbert@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).