From: Samuel Wales <samologist@gmail.com>
To: mail@christianmoe.com
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] export corruption bug and 3 more bugs
Date: Wed, 25 May 2011 09:58:03 -0700 [thread overview]
Message-ID: <BANLkTimbZ-iSRtAN5PcRMWauGvG4E6Rbzg@mail.gmail.com> (raw)
Minimal .emacs and test case for export corruption bug.
In the process, I found 2 Emacs 22 incompatibilities (fixed in the
minimal .emacs -- I had already fixed them) and 1 args out of range
error (not fixed -- can somebody find this bug?). There is no stack
trace.
The args out of range error occurs when you do c-c c-e A on the lowest
level headline.
The corruption bug occurs when you export the top level of the test case.
I wanted to post my blog today, but I don't know which org version to
roll back to to make sure it will work, and for health reasons can't
afford the typing for git bisect.
Thanks.
Samuel
===
* something
hi there
more
*** still more
more
more
***** org
try exporting the above for one bug and the below for the
other.
use c-c c-e A .
******* Confusion and conflation
#bug!
Some definitions using the same name /exclude/ people who
have serious disease. Can you predict the results?
******* test
===
;;;
;;;alpha-org-testcase.el
;;;
;;;minimal testcase for org
;;;
;;;how to use:
;;;
;;;1) put this file in your shell's current directory.
;;;2) put any testcase org files in your shell's current directory.
;;;3) comment out the set-frame-font line if you don't have that font.
;;;4) call like this.
;;;
;;; delorgsrc=your-org-src-dir emacs22 -Q -l alpha-org-testcase.el
;;;
(require 'cl)
;;my org files use these
(setq org-odd-levels-only t)
(setf org-export-initial-scope 'subtree)
;;fix abominations
(blink-cursor-mode 0)
(setf visible-bell 'top-bottom)
(defvar alpha-mac-font
"-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1")
;;;'(progn
;;; (progn
;;; (defconst alpha-mac-font-2
;;; "-apple-courier-medium-r-normal--*-*-*-*-*-240-*")
;;; (set-frame-font alpha-mac-font-2))
;;; )
(set-frame-font alpha-mac-font)
;;; (setq mac-pass-control-to-system nil)
;;; (setq mac-command-modifier 'hyper)
;;; (setq mac-option-modifier 'meta)
;;basics
(defun alpha-add-path (p) (setq load-path (cons p load-path)))
(alpha-add-path (concat (getenv "delorgsrc") "/lisp"))
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(require 'org-install)
(setq org-agenda-files '("todo-new--a.org"))
;;;(defvar alpha-org-map (make-sparse-keymap "alpha org map"))
;;;(define-key global-map [f8] alpha-org-map)
(setq org-completion-use-ido t)
(setf org-outline-path-complete-in-steps nil)
;;fix compatibility bug in org [2011-05-25 Wed 08:59]
(when (= emacs-major-version 22)
(defun activate-mark ()
"Activate the mark."
(when (mark t)
(setq mark-active t)
(unless transient-mark-mode
(setq transient-mark-mode 'lambda))
(when (and select-active-regions
(display-selections-p))
(x-set-selection 'PRIMARY (current-buffer))))))
;;[2011-05-25 Wed 09:23] fix compatibility bug in Org.
;;this is redefinition. it is for 22 for export.
(defcustom select-active-regions nil
"If non-nil, an active region automatically becomes the window selection."
:type 'boolean
:group 'killing
:version "23.1")
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MRV paper.
next reply other threads:[~2011-05-25 16:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-25 16:58 Samuel Wales [this message]
2011-05-27 4:52 ` [bug, babel] export corruption bug and 3 more bugs David Maus
2011-05-27 14:15 ` Samuel Wales
2011-05-27 14:47 ` [bug, babel][OT] " Jambunathan K
2011-05-27 15:01 ` Samuel Wales
2011-05-27 15:22 ` Jambunathan K
2011-06-01 7:16 ` [bug, babel] " David Maus
2011-06-02 6:12 ` Samuel Wales
2011-06-02 18:19 ` Eric Schulte
2011-06-02 20:37 ` Samuel Wales
2011-06-02 21:00 ` Eric Schulte
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=BANLkTimbZ-iSRtAN5PcRMWauGvG4E6Rbzg@mail.gmail.com \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@christianmoe.com \
/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).