Your message dated Sat, 30 Jun 2012 13:22:32 +0000
with message-id <e1skxda-0004zg...@franck.debian.org>
and subject line Bug#657269: fixed in python-docutils 0.9.1-1
has caused the Debian Bug report #657269,
regarding rst.el: (accidentally) self-modifying code
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
657269: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657269
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-docutils
Version: 0.8.1-4
Severity: important
File: /usr/share/emacs/site-lisp/rst.el

This is the expression for the default value of the customization
setting `rst-adornment-faces-alist':

,----
|   (let ((alist '((t . font-lock-keyword-face)
|                (nil . font-lock-keyword-face)))
|       (i 1))
|     (while (<= i rst-level-face-max)
|       (nconc alist (list (cons i (intern (format "rst-level-%d-face" i)))))
|       (setq i (1+ i)))
|     alist)
`----

According to the elisp manual (which refers to this as "STANDARD"):

,----[ (elisp) Variable Definitions ]
|      The expression STANDARD can be evaluated at various other times,
|      too--whenever the customization facility needs to know OPTION's
|      standard value.  So be sure to use an expression which is harmless
|      to evaluate at any time.  We recommend avoiding backquotes in
|      STANDARD, because they are not expanded when editing the value, so
|      list values will appear to have the wrong structure.
`----

Unfortunately, the expression above is not safe to evaluate more than
once, because it has the side effect of modifying the very data
structure representing the expression. This happens because of the way
it passes the value of a list literal to `nconc', which destructively
modifies its arguments.

You can see the problem by customizing the variable `rst-level-face-max'
to a few different values, then asking customize to show the saved lisp
expression for `rst-adornment-faces-alist' (without having customized
that).

A quick fix would be to use a copy of the literal list, as in the
patch below.


diff -u /usr/share/emacs/site-lisp/rst.el /tmp/buffer-content-21867y0f
--- /usr/share/emacs/site-lisp/rst.el   2011-10-23 17:13:51.000000000 -0400
+++ /tmp/buffer-content-21867y0f        2012-01-24 20:15:38.000000000 -0500
@@ -3275,8 +3275,8 @@
   :set 'rst-set-level-default)
 
 (defcustom rst-adornment-faces-alist
-  (let ((alist '((t . font-lock-keyword-face)
-                (nil . font-lock-keyword-face)))
+  (let ((alist (copy-list '((t . font-lock-keyword-face)
+                           (nil . font-lock-keyword-face))))
        (i 1))
     (while (<= i rst-level-face-max)
       (nconc alist (list (cons i (intern (format "rst-level-%d-face" i)))))

Diff finished.  Tue Jan 24 20:15:38 2012


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-docutils depends on:
ii  docutils-common               0.8.1-4    text processing system for reStruc
ii  python                        2.7.2-7    interactive high-level object-orie
ii  python-roman                  0.5-3      module for generating/analyzing Ro
ii  python-support                1.0.14     automated rebuilding support for P

Versions of packages python-docutils recommends:
ii  docutils-doc                 0.8.1-4     text processing system for reStruc
ii  libpaper-utils               1.1.23+nmu1 library for handling paper charact
ii  python-imaging               1.1.7-4     Python Imaging Library
pn  python-lxml                  <none>      (no description available)
pn  python-pygments              <none>      (no description available)

Versions of packages python-docutils suggests:
ii  texlive-lang-french           2009-3     TeX Live: French
ii  texlive-latex-base            2009-8     TeX Live: Basic LaTeX packages
ii  texlive-latex-recommended     2009-8     TeX Live: LaTeX recommended packag
pn  ttf-linux-libertine           <none>     (no description available)

-- no debconf information

-- debsums errors found:
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 10854 
package 'jhcore':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 17672 
package 'docbook-mathml':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 22720 
package 'apt-show-source':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 35919 
package 'tads2-mode':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 39027 
package 'lambdamoo':
 missing architecture

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



--- End Message ---
--- Begin Message ---
Source: python-docutils
Source-Version: 0.9.1-1

We believe that the bug you reported is fixed in the latest version of
python-docutils, which is due to be installed in the Debian FTP archive:

docutils-common_0.9.1-1_all.deb
  to main/p/python-docutils/docutils-common_0.9.1-1_all.deb
docutils-doc_0.9.1-1_all.deb
  to main/p/python-docutils/docutils-doc_0.9.1-1_all.deb
python-docutils_0.9.1-1.debian.tar.gz
  to main/p/python-docutils/python-docutils_0.9.1-1.debian.tar.gz
python-docutils_0.9.1-1.dsc
  to main/p/python-docutils/python-docutils_0.9.1-1.dsc
python-docutils_0.9.1-1_all.deb
  to main/p/python-docutils/python-docutils_0.9.1-1_all.deb
python-docutils_0.9.1.orig.tar.gz
  to main/p/python-docutils/python-docutils_0.9.1.orig.tar.gz
python3-docutils_0.9.1-1_all.deb
  to main/p/python-docutils/python3-docutils_0.9.1-1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 657...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakub Wilk <jw...@debian.org> (supplier of updated python-docutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 30 Jun 2012 14:15:26 +0200
Source: python-docutils
Binary: python-docutils python3-docutils docutils-common docutils-doc
Architecture: source all
Version: 0.9.1-1
Distribution: experimental
Urgency: low
Maintainer: Debian Python Modules Team 
<python-modules-team@lists.alioth.debian.org>
Changed-By: Jakub Wilk <jw...@debian.org>
Description: 
 docutils-common - text processing system for reStructuredText - common data
 docutils-doc - text processing system for reStructuredText - documentation
 python-docutils - text processing system for reStructuredText (implemented in 
Pytho
 python3-docutils - text processing system for reStructuredText (implemented in 
Pytho
Closes: 657269 675489
Changes: 
 python-docutils (0.9.1-1) experimental; urgency=low
 .
   * New upstream release.
     + Fix self-modifying code in rst.el (closes: #657269). Thanks to Samuel
       Bronson for the bug report and the patch.
     + Drop parsers.rst.directives.misc-encoding.diff: applied upstream.
     + Refresh other patches.
     + Add patch to fix sys.path for tests (test-sys-path.diff).
     + Update debian/rules.
   * Rebuild against debhelper (>= 9.20120528) to fix postinst that
     unconditionally overwrites files in /etc (see: #477751, closes: #675489).
     Thanks to Helmut Grohne for the bug report.
   * DEP-8 tests: use $ADTTMP.
Checksums-Sha1: 
 1d403ef62f22043fa64879124b2f53d37c3c88f2 2445 python-docutils_0.9.1-1.dsc
 c55d1ccabe2de82dd93d0f14884d07bbe10a3d40 1541437 
python-docutils_0.9.1.orig.tar.gz
 48dd98aa08b38c153ae297fef7b8adefdf11b83c 32558 
python-docutils_0.9.1-1.debian.tar.gz
 114cf4c6023f1c04f6f9e74160070cbc13665e7b 415320 python-docutils_0.9.1-1_all.deb
 62791678772e21b699acc14cb894d78212fd5e9b 413362 
python3-docutils_0.9.1-1_all.deb
 f87920327e0107d52cb0bbd8c87e8cec1833d21a 201932 docutils-common_0.9.1-1_all.deb
 88239cce7ba6335e6133b68d6e9c37607dc4fbf8 1314780 docutils-doc_0.9.1-1_all.deb
Checksums-Sha256: 
 2699e57e92447f964269ed38dbbe4d6c37bae8b720f1a468c6ee4930df130cd5 2445 
python-docutils_0.9.1-1.dsc
 e89f187dbbc6674f839239c89fec44af9f18809b66a8a55a41b57b9ee2356994 1541437 
python-docutils_0.9.1.orig.tar.gz
 8f7d41a140826e0cbad79caf21bc5e03fa15303b418609f7d7adfce8954a9747 32558 
python-docutils_0.9.1-1.debian.tar.gz
 8895df8a735897eca75b96a286ae5302fdf83a3a8c1437b77839873be6777b2d 415320 
python-docutils_0.9.1-1_all.deb
 f4e9206965cc1239efba6fe8f1a32ba49cf3157e2c127ad8229779da51682c38 413362 
python3-docutils_0.9.1-1_all.deb
 d1253a2a012b56a8edaf186d444cdf53e641f4460190072def22915f748ac4dd 201932 
docutils-common_0.9.1-1_all.deb
 d886273984aebe567944fc9a4e402e0a690397edfc848e0c4f9e7108a169433e 1314780 
docutils-doc_0.9.1-1_all.deb
Files: 
 2546cd3a93acc1ae63563b55d5465cc0 2445 python optional 
python-docutils_0.9.1-1.dsc
 b0d5cd5298fedf9c62f5fd364a274d56 1541437 python optional 
python-docutils_0.9.1.orig.tar.gz
 77c02fb910a810e84a782312d6e3f1e8 32558 python optional 
python-docutils_0.9.1-1.debian.tar.gz
 1c60dd696ea6a14f2cb30915d200b27f 415320 python optional 
python-docutils_0.9.1-1_all.deb
 e978bd184fc5ef4b6e2eb02827c95945 413362 python optional 
python3-docutils_0.9.1-1_all.deb
 758e5ac7d99d11712b0213754d80269e 201932 python optional 
docutils-common_0.9.1-1_all.deb
 72c94f06e296fd29e6755d8fbd7be96b 1314780 doc optional 
docutils-doc_0.9.1-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJP7veiAAoJEC1Os6YBVHX1bfAP/jDYZVYk5yLyeU4PHmn7RaPA
FuQduSW9HLebbTzmk6m79WUAy9cFWwoD0eBU1duGxf10kOLFgFZ/HpqbU+juQ8Vp
ltk4zIUjfn83SPyYftoae+hq7HpJkHH3dUWPrv7xaGkOHJYHh0IUGVEhHQTJrRGl
TkpILxx9Zpjt+Lm5dM+vxWv5NVlLBC8zE72N2UmNlwCrYWnnySMBy2khQ+M7D/4B
qu1TeL5J7kDVT8N0CFDpzFWL53//h2XYkI30xnBxeu/o5wZMqPdEcF2EJYod3jm7
c8TIzuu7+zgahj2bS7/J56FR03luibiADCJAfzDAAlY0mEP+sWgZ0IyeQ2XfUliB
r7WZaTdzDQ+R3bStNKdE9FG+cXPf1kpsD+RG6DPLzELcFonIY78oRfXpFdD0CNR6
l03OdjZ+WI7ETUgQnO/CHKq7OWOSig81R+GcQap8gNO6Vmppa4Xnm/LcJ4nLQTK+
B56c4O5fZjdcVqZINJw6+RZKpO1cyew6l0W+atFLpQsEzkXrQiV9yn7j2Zl7brEE
S2U3gK4rmv3ate2P3/VdJOyCGOsL2PY+zywL6+qhXqcuCA8qNwdwTwFac2EZb5M+
XOkHKbH5mGBu02SWZM9DC5+fcbmwlzZcfBC7QWXOWlETZ/pn1K3528AoReSNzfSf
0DEDBA3V1zvuLYXlhXgk
=i3NS
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to