emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
@ 2012-10-30 10:29 Sebastien Vauban
  2012-10-30 10:38 ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastien Vauban @ 2012-10-30 10:29 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

When typing more than 80 characters (or so) on a line, waiting for the
automatic filling, I get this every time I type any character:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  <(251038 nil)
  (if (< p post-affiliated) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent (org-element-property :parent element))) (cond ((eq (org-element-type parent) (quote item)) (make-string (org-list-item-body-column ...) 32)) ((save-excursion (beginning-of-line) (looking-at "[ 	]+")) (match-string 0)) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg (save-excursion (goto-char post-affiliated) (forward-line) (point))) (cend (save-excursion (goto-char ...) (skip-chars-backward " 	\n") (line-beginning-position)))) (if (and (>= p cbeg) (< p cend)) (progn (if (save-excursion ... ...) (match-string 0) "")))))))
  (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (< p post-affiliated) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent (org-element-property :parent element))) (cond ((eq ... ...) (make-string ... 32)) ((save-excursion ... ...) (match-string 0)) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg (save-excursion ... ... ...)) (cend (save-excursion ... ... ...))) (if (and (>= p cbeg) (< p cend)) (progn (if ... ... ""))))))))
  (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (< p post-affiliated) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent ...)) (cond (... ...) (... ...) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg ...) (cend ...)) (if (and ... ...) (progn ...))))))))
  (save-restriction (widen) (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (< p post-affiliated) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote ...)) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let (...) (cond ... ... ...))) ((eql type (quote comment-block)) (let* (... ...) (if ... ...))))))))
  (save-excursion (save-restriction (widen) (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (< p post-affiliated) nil (cond ((eql type ...) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type ...) "") ((memql type ...) (make-string ... 32)) ((eql type ...) (let ... ...)) ((eql type ...) (let* ... ...))))))))
  org-adaptive-fill-function()
  (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill))))
  (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill)))))
  (if (and fc (> (current-column) fc)) (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill))))))
  (let ((fc (current-fill-column))) (if (and fc (> (current-column) fc)) (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill)))))))
  org-auto-fill-function()
  self-insert-command(1)
  (cond ((and org-use-speed-commands (setq org-speed-command (run-hook-with-args-until-success (quote org-speed-command-hook) (this-command-keys)))) (cond ((commandp org-speed-command) (setq this-command org-speed-command) (call-interactively org-speed-command)) ((functionp org-speed-command) (funcall org-speed-command)) ((and org-speed-command (listp org-speed-command)) (eval org-speed-command)) (t (let (org-use-speed-commands) (call-interactively (quote org-self-insert-command)))))) ((and (org-table-p) (progn (and (featurep (quote org-table)) org-table-auto-blank-field (member last-command (quote (org-cycle org-return org-shifttab org-ctrl-c-ctrl-c yas/expand))) (if (or (equal ... 32) (looking-at "[^|\n]*  |")) (let (org-table-may-need-update) (org-table-blank-field)) (org-table-blank-field))) t) (eq N 1) (looking-at "[^|\n]*  |")) (let (org-table-may-need-update) (goto-char (1- (match-end 0))) (backward-delete-char 1) (goto-char (match-beginning 0)) (self-insert-command N))) (t (setq org-table-may-need-update t) (self-insert-command N) (org-fix-tags-on-the-fly) (if org-self-insert-cluster-for-undo (if (not (eq last-command (quote org-self-insert-command))) (setq org-self-insert-command-undo-counter 1) (if (>= org-self-insert-command-undo-counter 20) (setq org-self-insert-command-undo-counter 1) (and (> org-self-insert-command-undo-counter 0) buffer-undo-list (listp buffer-undo-list) (not (cadr buffer-undo-list)) (setcdr buffer-undo-list (cddr buffer-undo-list))) (setq org-self-insert-command-undo-counter (1+ org-self-insert-command-undo-counter)))))))
  org-self-insert-command(1)
  call-interactively(org-self-insert-command nil nil)
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-10-22 on DANI-PC
Org-mode version 7.9.2 (release_7.9.2-533-g07c889 @ d:/home/sva/src/org-mode/lisp/)

-- 
Sebastien Vauban

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

* Re: error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
  2012-10-30 10:29 error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function Sebastien Vauban
@ 2012-10-30 10:38 ` Sebastien Vauban
  2012-10-30 12:07   ` Nicolas Goaziou
  2012-10-30 15:14   ` Sebastien Vauban
  0 siblings, 2 replies; 6+ messages in thread
From: Sebastien Vauban @ 2012-10-30 10:38 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

> When typing more than 80 characters (or so) on a line, waiting for the
> automatic filling, I get this every time I type any character:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   <(251038 nil)
>   (if (< p post-affiliated) nil (cond ((eql type (quote comment)) ...
>   (let* ((p (line-beginning-position)) (element (save-excursion ...
>   (if (and (derived-mode-p (quote message-mode)) ...
>   (save-restriction (widen) (if (and (derived-mode-p ...
>   (save-excursion (save-restriction (widen) (if (and ...
>   org-adaptive-fill-function()

FYI, this seems to happen when in an itemized list, not on a regular
paragraph...

> GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-10-22 on DANI-PC
> Org-mode version 7.9.2 (release_7.9.2-533-g07c889 @ d:/home/sva/src/org-mode/lisp/)

Best regards,
Seb

-- 
Sebastien Vauban

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

* Re: error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
  2012-10-30 10:38 ` Sebastien Vauban
@ 2012-10-30 12:07   ` Nicolas Goaziou
  2012-10-30 15:14   ` Sebastien Vauban
  1 sibling, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2012-10-30 12:07 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hello,

"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:

>> When typing more than 80 characters (or so) on a line, waiting for the
>> automatic filling, I get this every time I type any character:
>>
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>>   <(251038 nil)
>>   (if (< p post-affiliated) nil (cond ((eql type (quote comment)) ...
>>   (let* ((p (line-beginning-position)) (element (save-excursion ...
>>   (if (and (derived-mode-p (quote message-mode)) ...
>>   (save-restriction (widen) (if (and (derived-mode-p ...
>>   (save-excursion (save-restriction (widen) (if (and ...
>>   org-adaptive-fill-function()
>
> FYI, this seems to happen when in an itemized list, not on a regular
> paragraph...

It should be fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

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

* Re: error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
  2012-10-30 10:38 ` Sebastien Vauban
  2012-10-30 12:07   ` Nicolas Goaziou
@ 2012-10-30 15:14   ` Sebastien Vauban
  2012-10-30 17:53     ` Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Sebastien Vauban @ 2012-10-30 15:14 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Nicolas,

"Sebastien Vauban" wrote:
>> When typing more than 80 characters (or so) on a line, waiting for the
>> automatic filling, I get this every time I type any character:
>>
>> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>>   <(251038 nil)
>>   (if (< p post-affiliated) nil (cond ((eql type (quote comment)) ...
>>   (let* ((p (line-beginning-position)) (element (save-excursion ...
>>   (if (and (derived-mode-p (quote message-mode)) ...
>>   (save-restriction (widen) (if (and (derived-mode-p ...
>>   (save-excursion (save-restriction (widen) (if (and ...
>>   org-adaptive-fill-function()
>
> FYI, this seems to happen when in an itemized list, not on a regular
> paragraph...
>
>> GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-10-22 on DANI-PC
>> Org-mode version 7.9.2 (release_7.9.2-533-g07c889 @ d:/home/sva/src/org-mode/lisp/)

Thanks for your answer -- which I don't see yet on Gmane.

However, after updating to Org-mode version 7.9.2 (release_7.9.2-541-gdda563 @
d:/home/sva/src/org-mode/lisp/), I have another problem with the exact same
cause (typing more than 80 characters, or pressing M-q on an itemized list):

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  goto-char(nil)
  (save-excursion (goto-char item) (looking-at "[ 	]*\\(\\S-+\\)\\(.*[ 	]+::\\)?\\([ 	]+\\|$\\)") (setq bpos (match-beginning 1) tpos (match-end 0) bcol (progn (goto-char bpos) (current-column)) tcol (progn (goto-char tpos) (current-column))) (if (> tcol (+ bcol org-description-max-indent)) (progn (setq tcol (+ bcol 5)))))
  (let (bpos bcol tpos tcol) (save-excursion (goto-char item) (looking-at "[ 	]*\\(\\S-+\\)\\(.*[ 	]+::\\)?\\([ 	]+\\|$\\)") (setq bpos (match-beginning 1) tpos (match-end 0) bcol (progn (goto-char bpos) (current-column)) tcol (progn (goto-char tpos) (current-column))) (if (> tcol (+ bcol org-description-max-indent)) (progn (setq tcol (+ bcol 5))))) tcol)
  org-list-item-body-column(nil)
  (make-string (org-list-item-body-column post-affiliated) 32)
  (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent (org-element-property :parent element))) (cond ((eq (org-element-type parent) (quote item)) (make-string (org-list-item-body-column (org-element-property :begin parent)) 32)) ((save-excursion (beginning-of-line) (looking-at "[ 	]+")) (match-string 0)) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg (save-excursion (goto-char post-affiliated) (forward-line) (point))) (cend (save-excursion (goto-char (org-element-property :end element)) (skip-chars-backward " 	\n") (line-beginning-position)))) (if (and (>= p cbeg) (< p cend)) (progn (if (save-excursion (beginning-of-line) (looking-at "[ 	]+")) (match-string 0) ""))))))
  (if (and post-affiliated (< p post-affiliated)) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent (org-element-property :parent element))) (cond ((eq (org-element-type parent) (quote item)) (make-string (org-list-item-body-column ...) 32)) ((save-excursion (beginning-of-line) (looking-at "[ 	]+")) (match-string 0)) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg (save-excursion (goto-char post-affiliated) (forward-line) (point))) (cend (save-excursion (goto-char ...) (skip-chars-backward " 	\n") (line-beginning-position)))) (if (and (>= p cbeg) (< p cend)) (progn (if (save-excursion ... ...) (match-string 0) "")))))))
  (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (and post-affiliated (< p post-affiliated)) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent (org-element-property :parent element))) (cond ((eq ... ...) (make-string ... 32)) ((save-excursion ... ...) (match-string 0)) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg (save-excursion ... ... ...)) (cend (save-excursion ... ... ...))) (if (and (>= p cbeg) (< p cend)) (progn (if ... ... ""))))))))
  (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (and post-affiliated (< p post-affiliated)) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote (item plain-list))) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let ((parent ...)) (cond (... ...) (... ...) (t "")))) ((eql type (quote comment-block)) (let* ((cbeg ...) (cend ...)) (if (and ... ...) (progn ...))))))))
  (save-restriction (widen) (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (and post-affiliated (< p post-affiliated)) nil (cond ((eql type (quote comment)) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type (quote footnote-definition)) "") ((memql type (quote ...)) (make-string (org-list-item-body-column post-affiliated) 32)) ((eql type (quote paragraph)) (let (...) (cond ... ... ...))) ((eql type (quote comment-block)) (let* (... ...) (if ... ...))))))))
  (save-excursion (save-restriction (widen) (if (and (derived-mode-p (quote message-mode)) (not (message-in-body-p))) nil (let* ((p (line-beginning-position)) (element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element)) (post-affiliated (org-element-property :post-affiliated element))) (if (and post-affiliated (< p post-affiliated)) nil (cond ((eql type ...) (looking-at "[ 	]*# ?") (match-string 0)) ((eql type ...) "") ((memql type ...) (make-string ... 32)) ((eql type ...) (let ... ...)) ((eql type ...) (let* ... ...))))))))
  org-adaptive-fill-function()
  (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill))))
  (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill)))))
  (if (and fc (> (current-column) fc)) (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill))))))
  (let ((fc (current-fill-column))) (if (and fc (> (current-column) fc)) (progn (let* ((fill-prefix (org-adaptive-fill-function)) (adaptive-fill-mode (not (equal fill-prefix "")))) (if fill-prefix (progn (do-auto-fill)))))))
  org-auto-fill-function()
  self-insert-command(1)
  (cond ((and org-use-speed-commands (setq org-speed-command (run-hook-with-args-until-success (quote org-speed-command-hook) (this-command-keys)))) (cond ((commandp org-speed-command) (setq this-command org-speed-command) (call-interactively org-speed-command)) ((functionp org-speed-command) (funcall org-speed-command)) ((and org-speed-command (listp org-speed-command)) (eval org-speed-command)) (t (let (org-use-speed-commands) (call-interactively (quote org-self-insert-command)))))) ((and (org-table-p) (progn (and (featurep (quote org-table)) org-table-auto-blank-field (member last-command (quote (org-cycle org-return org-shifttab org-ctrl-c-ctrl-c yas/expand))) (if (or (equal ... 32) (looking-at "[^|\n]*  |")) (let (org-table-may-need-update) (org-table-blank-field)) (org-table-blank-field))) t) (eq N 1) (looking-at "[^|\n]*  |")) (let (org-table-may-need-update) (goto-char (1- (match-end 0))) (backward-delete-char 1) (goto-char (match-beginning 0)) (self-insert-command N))) (t (setq org-table-may-need-update t) (self-insert-command N) (org-fix-tags-on-the-fly) (if org-self-insert-cluster-for-undo (if (not (eq last-command (quote org-self-insert-command))) (setq org-self-insert-command-undo-counter 1) (if (>= org-self-insert-command-undo-counter 20) (setq org-self-insert-command-undo-counter 1) (and (> org-self-insert-command-undo-counter 0) buffer-undo-list (listp buffer-undo-list) (not (cadr buffer-undo-list)) (setcdr buffer-undo-list (cddr buffer-undo-list))) (setq org-self-insert-command-undo-counter (1+ org-self-insert-command-undo-counter)))))))
  org-self-insert-command(1)
  call-interactively(org-self-insert-command nil nil)
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
  2012-10-30 15:14   ` Sebastien Vauban
@ 2012-10-30 17:53     ` Nicolas Goaziou
  2012-10-30 22:16       ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2012-10-30 17:53 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:

> However, after updating to Org-mode version 7.9.2 (release_7.9.2-541-gdda563 @
> d:/home/sva/src/org-mode/lisp/), I have another problem with the exact same
> cause (typing more than 80 characters, or pressing M-q on an itemized
> list):

And here is another take to the problem. Is it fixed now?

Thanks,

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

* Re: error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function
  2012-10-30 17:53     ` Nicolas Goaziou
@ 2012-10-30 22:16       ` Sebastien Vauban
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastien Vauban @ 2012-10-30 22:16 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Nicolas,

Nicolas Goaziou wrote:
> "Sebastien Vauban" writes:
>
>> However, after updating to Org-mode version 7.9.2
>> (release_7.9.2-541-gdda563 @ d:/home/sva/src/org-mode/lisp/), I have
>> another problem with the exact same cause (typing more than 80 characters,
>> or pressing M-q on an itemized list):
>
> And here is another take to the problem. Is it fixed now?

It seems to be fine. Thanks a lot...

Best regards,
  Seb

-- 
Sebastien Vauban

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

end of thread, other threads:[~2012-10-30 22:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-30 10:29 error: (wrong-type-argument number-or-marker-p nil) in org-adaptive-fill-function Sebastien Vauban
2012-10-30 10:38 ` Sebastien Vauban
2012-10-30 12:07   ` Nicolas Goaziou
2012-10-30 15:14   ` Sebastien Vauban
2012-10-30 17:53     ` Nicolas Goaziou
2012-10-30 22:16       ` Sebastien Vauban

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