Package: text-modes
Version: 1.21
ELisp file: text-modes/folding.el
Version : X.x Feb 12 1998 [Jari 2.30] (from the change history)
[ Jari & Anders: I'm not sure if you are still maintaining folding.el ]
There seems to be a problem with the folding mode and XEmacs 21.1 (I have
tried .4 and .6). When you try to goto a line inside a sub-fold with a
nesting level 2 or higher you get the following error message:
wrong type argument: sequencep, 2
instead of entering the fold with an updated "2Fld", "3Fld", ... mode-line.
If the buffer has been "unfolded" (Show whole buffer) then the goto works
but of course it only enters the first fold nesting level.
When I start XEmacs 20.4, load & evaluate folding.el from text-modes 1.21
(it doesn't come with 20.4), everything works fine, that is XEmacs enters
the folds and shows "2Fld", "3Fld" and so on.
You can try to reproduce this bug with the folding.el file:
c-x c-f /usr/local/lib/xemacs/xemacs-packages/lisp/text-modes/folding.el
M-x folding-mode -> Folds buffer
M-g 2928
or you can try with the following small C program and try to go to line 10:
---------------------------------- Cut Here -------------------------
/* {{{ fold1 */
Inside fold1
/* {{{ fold1.1 */
Inside fold1.1
/* {{{ fold1.1.1 */
fold1.1.1
/* }}} */
/* }}} */
Again inside fold1
/* }}} */
/* {{{ fold2 */
fold2
/* }}} */
/* {{{ fold3 */
fold3
/* }}} */
---------------------------------- Cut Here --------------------------
Maybe this has something to do with the error messages from XEmacs when you
try to byte-compile folding.el:
------------------------ Cut Here -------------------------------
bosw27:text-modes> xemacs -batch -no-site-file -no-init-file -eval '(setq
load-path (cons "." load-path))' -f batch-byte-compile folding.el
Compiling
/appl/pdtools/common/lib/xemacs/xemacs-packages/lisp/text-modes/folding.el..
.
Loading overlay...
** folding.el: Info, Ignore [X]Emacs specific missing event-/posn- functions
calls
While compiling the end of the data in file
/appl/pdtools/common/lib/xemacs/xemacs-packages/lisp/text-modes/folding.el:
** The following functions are not known to be defined:
event-start, posn-window, posn-col-row, hs-discard-overlays
Wrote
/appl/pdtools/common/lib/xemacs/xemacs-packages/lisp/text-modes/folding.elc
Done
------------------------ Cut Here -------------------------------
I'm no emacs-lisp expert so I have no idea what the error could be...
Regards,
Stefan
---
Stefan Becker Technical Expert SW, NMP/STP R&D Center Bochum
E-Mail: Stefan.Becker(a)nokia.com
Office: +49-(0)234-984-4672 FAX: +49-(0)234-984-3601
GSM : +49-(0)172-2704283