GNU bug report logs - #17259
ediff-set-fine-diff-properties-in-one-buffer uses dolist on a vector?

Previous Next

Package: emacs;

Reported by: Ivan Shmakov <ivan <at> siamics.net>

Date: Sun, 13 Apr 2014 09:56:01 UTC

Severity: normal

Merged with 17257, 17265, 17273, 17285, 17287, 17382, 17491

Found in versions 24.3.90, 24.4.50

Fixed in versions 24.3.91, 24.4

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17259 in the body.
You can then email your comments to 17259 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17259; Package emacs. (Sun, 13 Apr 2014 09:56:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Shmakov <ivan <at> siamics.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 13 Apr 2014 09:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Shmakov <ivan <at> siamics.net>
To: submit <at> debbugs.gnu.org
Subject: ediff-set-fine-diff-properties-in-one-buffer uses dolist on a vector?
Date: Sun, 13 Apr 2014 09:54:13 +0000
Package:  emacs

	In edce85e3 [1], ediff-set-fine-diff-properties-in-one-buffer
	was edited to use dolist (was: mapcar) to iterate over the
	fine-diff-vector local variable, resulting now in errors like:

Debugger entered--Lisp error: (wrong-type-argument listp [#<overlay from 1210 to 1210 in  *XXX*> #<overlay from 1220 to 1269 in  *YYY*>])
  ediff-set-fine-diff-properties-in-one-buffer(A 0 nil)
  ediff-set-fine-diff-properties(0)
  ediff-make-fine-diffs(0 noforce)
  ediff-install-fine-diff-if-necessary(0)
  ediff-next-difference(1)
  call-interactively(ediff-next-difference nil nil)
  command-execute(ediff-next-difference)

	Replacing dolist with an equivalent mapc invocation has fixed
	the issue for me.

	If, OTOH, dolist is actually /supposed/ to work on non-list
	sequences, I’d like to suggest updating its documentation, which
	currently reads:

(defmacro dolist (spec &rest body)
  "Loop over a list.
Evaluate BODY with VAR bound to each car from LIST, in turn.
Then evaluate RESULT to get return value, default nil.

\(fn (VAR LIST [RESULT]) BODY...)"
  …)

[1] http://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/vc/ediff-diff.el?h=emacs-24&id=edce85e3a164a57da09c564c4f2a8edc8f009df1

-- 
FSF associate member #7257




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17259; Package emacs. (Sun, 13 Apr 2014 10:17:02 GMT) Full text and rfc822 format available.

Message #8 received at 17259 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ivan Shmakov <ivan <at> siamics.net>
Cc: 17259 <at> debbugs.gnu.org
Subject: Re: bug#17259: ediff-set-fine-diff-properties-in-one-buffer uses
 dolist	on a vector?
Date: Sun, 13 Apr 2014 13:16:37 +0300
> From: Ivan Shmakov <ivan <at> siamics.net>
> Date: Sun, 13 Apr 2014 09:54:13 +0000
> 
> Package:  emacs
> 
> 	In edce85e3 [1], ediff-set-fine-diff-properties-in-one-buffer
> 	was edited to use dolist (was: mapcar) to iterate over the
> 	fine-diff-vector local variable, resulting now in errors like:
> 
> Debugger entered--Lisp error: (wrong-type-argument listp [#<overlay from 1210 to 1210 in  *XXX*> #<overlay from 1220 to 1269 in  *YYY*>])
>   ediff-set-fine-diff-properties-in-one-buffer(A 0 nil)
>   ediff-set-fine-diff-properties(0)
>   ediff-make-fine-diffs(0 noforce)
>   ediff-install-fine-diff-if-necessary(0)
>   ediff-next-difference(1)
>   call-interactively(ediff-next-difference nil nil)
>   command-execute(ediff-next-difference)

A duplicate of 17257, filed less than an hour ago.




Merged 17257 17259. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 13 Apr 2014 10:18:01 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265. Request was from Nicolas Richard <theonewiththeevillook <at> yahoo.fr> to control <at> debbugs.gnu.org. (Thu, 17 Apr 2014 20:31:03 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265 17273. Request was from Nicolas Richard <theonewiththeevillook <at> yahoo.fr> to control <at> debbugs.gnu.org. (Thu, 17 Apr 2014 20:33:02 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265 17273 17285. Request was from Nicolas Richard <theonewiththeevillook <at> yahoo.fr> to control <at> debbugs.gnu.org. (Thu, 17 Apr 2014 20:37:02 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265 17273 17285 17287. Request was from Nicolas Richard <theonewiththeevillook <at> yahoo.fr> to control <at> debbugs.gnu.org. (Fri, 18 Apr 2014 08:59:02 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265 17273 17285 17287 17382. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 02 May 2014 07:39:02 GMT) Full text and rfc822 format available.

Forcibly Merged 17257 17259 17265 17273 17285 17287 17382 17491. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 14 May 2014 15:38:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Jun 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.