emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with sparse tree not displaying results
Date: Tue, 03 Nov 2009 10:12:54 -0500	[thread overview]
Message-ID: <87ljinhcax.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <87pr7zhdgn.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Tue\, 03 Nov 2009 09\:47\:52 -0500")

[cc list culled]

Bernt Hansen <bernt@norang.ca> writes:

> git bisect identifies the following commit as causing the problem:
>
> 525b0148c5d53280c46b3ecfb2d2adcfcbf999bc is the first bad commit
> commit 525b0148c5d53280c46b3ecfb2d2adcfcbf999bc
> Author: Carsten Dominik <carsten.dominik@gmail.com>
> Date:   Fri Sep 18 13:53:23 2009 +0100
>
>     Make testing for headline independent of visibility
>
> :040000 040000 ba0fd654b88682f598ad22ec2bc1a092e7bbc6cc d3abe9044257023f6000a88dc697ebdf7f650fa8 M	lisp

In case anyone is interested I used the following setup to find it:

In my org-mode git repository I checked out master and ran

$ make clean  # to remove compiled files
$ minimal-emacs /tmp/foo.org -l /tmp/exec.el -f foo   # this is my test case

and verified that it beeped (showing failure)

$ git checkout release_6.29
$ minimal-emacs /tmp/foo.org -l /tmp/exec.el -f foo

This works (no beep)

Then

$ git bisect start master release_6.29

and for each checked out version

$ minimal-emacs /tmp/foo.org -l /tmp/exec.el -f foo

If it fails do

$ git bisect bad

otherwise do

$ git bisect good

rinse and repeat until the bad commit is identified.

There are 671 commits between release_6.29 and master and this finds the
bad commit by looking at only 10 commits (12 if you count the initial
test of master and release_6.29)

,----[ git bisect log ]
| $ git bisect log
| # bad: [5a24f6c9d2f0b479f0c7970607ccbddf00feb861] Keep compiler happy
| # good: [d67a9be8a20c270aaa8ac3bbd562fa458567c452] Release 6.29
| git bisect start 'master' 'release_6.29'
| # good: [8ba39da7e9debf3862c80f8066cc9c15d5e47d3c] [BUG FIX] DONE non-orgtbl formatted lists
| git bisect good 8ba39da7e9debf3862c80f8066cc9c15d5e47d3c
| # bad: [d5f8d47192d9b5a67a6eb687517a41413d005dc9] Improve documentation for MobileOrg
| git bisect bad d5f8d47192d9b5a67a6eb687517a41413d005dc9
| # good: [3f640c191a4789b24a7589e04c4f63ec16444abb] outline-end-of-subtree: Bugfix.
| git bisect good 3f640c191a4789b24a7589e04c4f63ec16444abb
| # good: [0ad03e87b81bd92e78c8ba6bc8febc2e772021dd] Merge commit 'origin/master'
| git bisect good 0ad03e87b81bd92e78c8ba6bc8febc2e772021dd
| # good: [6f9644682bfc53fc11229a3c5747a424feb28b8a] org-babel now explicitly requires org-table
| git bisect good 6f9644682bfc53fc11229a3c5747a424feb28b8a
| # good: [8c2a918fd97716a21a7e1fd8e7e258ec048f3979] Merge branch 'MobileOrg'
| git bisect good 8c2a918fd97716a21a7e1fd8e7e258ec048f3979
| # good: [2e8ece9219f0164b5f9c1abff1b65119089bef42] New STARTUP keyword `showeverything'
| git bisect good 2e8ece9219f0164b5f9c1abff1b65119089bef42
| # bad: [3492407250f4c2b9a65be7603c46dcc2e68132e5] Rename the Mobileorg capture file
| git bisect bad 3492407250f4c2b9a65be7603c46dcc2e68132e5
| # bad: [525b0148c5d53280c46b3ecfb2d2adcfcbf999bc] Make testing for headline independent of visibility
| git bisect bad 525b0148c5d53280c46b3ecfb2d2adcfcbf999bc
| # good: [762136b25c5ba363ea210742aab85ae34b9ecb93] Fix problem with insertion of statistics cookies at visibility boundaries
| git bisect good 762136b25c5ba363ea210742aab85ae34b9ecb93
`----

-Bernt


,----[ /tmp/foo.org ]
| 
| * Customers
| ** Customer A
| *** Billing
| **** Support during September					    :ARCHIVE:
| ** Customer B
|    07964-xxxxxx
| 
| *** Problem with Laptop
| ** Customer C
| *** Current Details
| 
| *** Test of 07968 showing up
| ** Customer D
|    01673-xxxxxx
|    07968-xxxxxx
| 
| *** Laptop slowdown fix
|     spoolsv.exe at 99%
| 
`----

,----[ /tmp/exec.el ]
| (defun foo ()
|   (interactive)
|   (org-occur "0796[48]")
|   (next-line))
`----

,----[ ~/bin/minimal-emacs ]
| #!/bin/sh
| emacs -q -l ~/minimal.emacs $*
`----

,----[ ~/minimal.emacs ]
| (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
| (require 'org-install)
| 
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
| (global-set-key "\C-cb" 'org-iswitchb)
`----

  reply	other threads:[~2009-11-03 15:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03 12:30 Problem with sparse tree not displaying results Chris Randle
2009-11-03 13:31 ` Giovanni Ridolfi
2009-11-03 14:47   ` Bernt Hansen
2009-11-03 15:12     ` Bernt Hansen [this message]
2009-11-03 16:32     ` Carsten Dominik
2009-11-03 14:36 ` 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=87ljinhcax.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --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).