unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: emacs-devel <emacs-devel@gnu.org>
Cc: ken.manheimer@gmail.com
Subject: Bug in allout-hide-current-leaves
Date: Sat, 19 Jan 2008 18:24:55 +0100	[thread overview]
Message-ID: <47923267.2090500@gmx.at> (raw)

To reproduce with Emacs -Q: Open src/keyboard.c, do M-x allout-mode, and
M-x allout-hide-current-leaves.  Gets me:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
   -(nil nil 2)
   (max 1 (- allout-recent-prefix-end allout-recent-prefix-beginning allout-header-subtraction))
   (setq allout-recent-prefix-end (or (match-end 1) (match-end 2)) allout-recent-prefix-beginning (or (match-beginning 1) (match-beginning 2)) allout-recent-depth (max 1 (- allout-recent-prefix-end allout-recent-prefix-beginning 
allout-header-subtraction)))
   allout-prefix-data()
   (setq done (allout-prefix-data))
   (if (looking-at allout-regexp) (setq done (allout-prefix-data)) (forward-char -1))
   (while (and (not done) (search-backward "\n" nil 1)) (forward-char 1) (if (looking-at allout-regexp) (setq done ...) (forward-char -1)))
   (let (done) (while (and ... ...) (forward-char 1) (if ... ... ...)) (if (bobp) (cond ... ... ...) done))
   (progn (let (done) (while ... ... ...) (if ... ... done)))
   (unwind-protect (progn (let ... ... ...)) (set-match-data save-match-data-internal (quote evaporate)))
   (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ...)))
   (save-match-data (let (done) (while ... ... ...) (if ... ... done)))
   allout-goto-prefix()
   (if (allout-goto-prefix) (if (and ... ...) (allout-previous-heading) (point)))
   allout-goto-prefix-doublechecked()
   (if (allout-goto-prefix-doublechecked) (if (<= ... bol-point) (if ... ... ...) (goto-char ...) nil))
   (let ((bol-point ...)) (if (allout-goto-prefix-doublechecked) (if ... ... ... nil)))
   allout-back-to-current-heading()
   allout-hide-current-leaves()
   call-interactively(allout-hide-current-leaves)
   execute-extended-command(nil)
   call-interactively(execute-extended-command)

Note that `allout-regexp' is

"\\(/\\*_[ 	]*[\\.,\\*\\+--=>()\\[{}&!\\?#%\"X@\\$~_\\\\:;\\^/\\*_]\\)\\|\\(/\\*_\\|/\\*_\\)+ ?[^/*_]\\|\f"

hence it cannot possibly match _two_ parenthetical subexpressions.

             reply	other threads:[~2008-01-19 17:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 17:24 martin rudalics [this message]
2008-01-21  9:08 ` Bug in allout-hide-current-leaves Richard Stallman
2008-01-21 18:49 ` Ken Manheimer
2008-01-21 18:59   ` Ken Manheimer
2008-01-21 19:35     ` martin rudalics
2008-01-21 23:45       ` Ken Manheimer
2008-01-22 22:29         ` Richard Stallman
2008-01-26 16:49         ` Ken Manheimer

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47923267.2090500@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=ken.manheimer@gmail.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.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).