emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [bug] export corruption bug and 3 more bugs
@ 2011-05-25 16:58 Samuel Wales
  2011-05-27  4:52 ` [bug, babel] " David Maus
  0 siblings, 1 reply; 11+ messages in thread
From: Samuel Wales @ 2011-05-25 16:58 UTC (permalink / raw)
  To: mail; +Cc: emacs-orgmode

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.

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

end of thread, other threads:[~2011-06-02 21:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 16:58 [bug] export corruption bug and 3 more bugs Samuel Wales
2011-05-27  4:52 ` [bug, babel] " 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

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).