From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: [bug] export corruption bug and 3 more bugs Date: Wed, 25 May 2011 09:58:03 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPHPJ-0005yX-Qy for emacs-orgmode@gnu.org; Wed, 25 May 2011 12:58:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPHPI-0005e1-Pt for emacs-orgmode@gnu.org; Wed, 25 May 2011 12:58:05 -0400 Received: from mail-px0-f171.google.com ([209.85.212.171]:44457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPHPI-0005dm-Hr for emacs-orgmode@gnu.org; Wed, 25 May 2011 12:58:04 -0400 Received: by pxi7 with SMTP id 7so5272485pxi.30 for ; Wed, 25 May 2011 09:58:03 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org 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.