all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* documentation bug
@ 2012-09-13 14:50 Tyler Smith
  2012-09-13 15:25 ` Giovanni Ridolfi
  2012-09-18  9:10 ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Tyler Smith @ 2012-09-13 14:50 UTC (permalink / raw
  To: Emacs-orgmode

Hi,

I'm using org-mode 7.8.03, which shipped with Emacs 24.0.94.1. The
documentation for exporting html includes the following:

12.5.1 HTML export commands
---------------------------

`C-c C-e h     (`org-export-as-html')'
     Export as HTML file.  [...] If there is an active region(1), only
the region will be
     exported.

However, I think this is incorrect. If there is an active region,
org-export will turn on subtree-p. This results in unexpected
behaviour. For example, if an active region is marked that contains
two subtrees, but point is at the beginning of a third subtree, then
instead of exporting the two subtrees in the active region, you get
only the third subtree which is outside the region. The same problem
appears to hold for C-c C-e R. You actually need to call C-c C-e 1 h
to get the expected behaviour.

I'm not sure if this is a problem with the docs or the code itself,
but they don't seem to match up on this point.

Thanks,

Tyler

^ permalink raw reply	[flat|nested] 7+ messages in thread
* documentation bug
@ 2008-05-08 16:49 harven
  2008-05-08 18:02 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: harven @ 2008-05-08 16:49 UTC (permalink / raw
  To: bug-gnu-emacs

In Gnu Emacs Manual version 22.1,
there is an entry "television" in the index.
It refers to section Appending Kills.
I can't see anything relevant to "television"
in this section, so may be the entry should
be removed.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* documentation bug
@ 2004-10-27 14:19 Frederik Fouvry
  0 siblings, 0 replies; 7+ messages in thread
From: Frederik Fouvry @ 2004-10-27 14:19 UTC (permalink / raw


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2004-02-19 on cc.at.coli.uni-sb.de
configured using `configure  --prefix=/export/black --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x --with-gcc --with-pop --with-sound'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: de_DE@euro
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In the Elisp manual, there is the following section (in
"Conventions for Writing Minor Modes"):

     The command should accept one optional argument.  If the argument
     is `nil', it should toggle the mode (turn it on if it is off, and
     off if it is on).  Otherwise, it should turn the mode on if the
     argument is a positive integer, a symbol other than `nil' or `-',
     or a list whose CAR is such an integer or symbol; it should turn
     the mode off otherwise.

     Here is an example taken from the definition of
     `transient-mark-mode'.  It shows the use of `transient-mark-mode'
     as a variable that enables or disables the mode's behavior, and
     also shows the proper way to toggle, enable or disable the minor
     mode based on the raw prefix argument value.

          (setq transient-mark-mode
                (if (null arg) (not transient-mark-mode)
                  (> (prefix-numeric-value arg) 0)))


The given example does not behave as documented for the arguments
'(-) and '(nil):

(prefix-numeric-value '(-)) -> 1
(prefix-numeric-value '(nil)) -> 1

According to the quoted text, these arguments should switch off
the mode.

Either prefix-numeric-value() is not behaving correctly, or the
example is not complete.  In the latter case, one could write

          (setq transient-mark-mode
	        (let ((larg (if (consp arg) (car arg) arg)))
                  (if (null larg) (not transient-mark-mode)
		    (> (prefix-numeric-value larg) 0))))

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-18 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 14:50 documentation bug Tyler Smith
2012-09-13 15:25 ` Giovanni Ridolfi
2012-09-18  9:10 ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2008-05-08 16:49 harven
2008-05-08 18:02 ` Eli Zaretskii
2008-05-09 11:13   ` Richard M Stallman
2004-10-27 14:19 Frederik Fouvry

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.