unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vitalie Spinu <spinuvit@gmail.com>
To: 11569@debbugs.gnu.org
Subject: bug#11569: 24.1.50; Defadvice fails after IDO load ("Cannot open doc string file")
Date: Sun, 27 May 2012 19:01:03 +0200	[thread overview]
Message-ID: <87y5odtv74.fsf@gmail.com> (raw)


Hi, 

Recent emacs-snapshot fails to load my .emacs with several occurrences
of defadvice in it. The weird part of it is that I cannot easily
reproduce that with emacs-snapshot -Q. This is a back-trace:

Debugger entered--Lisp error: (error "Cannot open doc string file \"/usr/share/emacs/24.1.50/etc/DOC-24.1.50.1\"")
  ad-real-documentation(#[(n &optional killflag) "\b\250\204\f\305\306\307\bD\"\210\310 \203.	\203.\b\311U\203.	\312=\203(\313\314 \315 \"\207\314 \315 |\207\n\203]\b\316X\204]`Sf\317>\204]m\204]\320f\321=\204]i\322\b[\f\"\210\212\323\324\viZ\320#*\207\322\b[\f\"\207" [n delete-active-region overwrite-mode ocol killflag signal wrong-type-argument integerp use-region-p 1 kill kill-region region-beginning region-end 0 (9 10) nil 10 delete-char insert-char 32] 4 1928790 "p\nP"] t)
  ad-make-advised-docstring(delete-backward-char)
  ad-real-documentation(#[(n &optional killflag) "\303\304	\n\"\211)\207" [ad-return-value n killflag nil ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"] t)
  ad-docstring(#[(n &optional killflag) "\303\304	\n\"\211)\207" [ad-return-value n killflag nil ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"])
  ad-advised-definition-p(#[(n &optional killflag) "\303\304	\n\"\211)\207" [ad-return-value n killflag nil ad-Orig-delete-backward-char] 4 #("Advice doc string" 0 17 (ad-advice-info delete-backward-char)) "p\nP"])
  ad-handle-definition(delete-backward-char)
  ad-activate(delete-backward-char nil)
  (progn (ad-add-advice (quote delete-backward-char) (quote (delete-empty-pair nil t (advice lambda nil nil))) (quote before) (quote nil)) (ad-activate (quote delete-backward-char) nil) (quote delete-backward-char))
  (defadvice delete-backward-char (before delete-empty-pair activate) nil)
  eval((defadvice delete-backward-char (before delete-empty-pair activate) nil) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)


How to interactively reproduce:

Start with -Q and load this:
   
   (require 'ido)
   (ido-mode t)
   (setq ido-use-virtual-buffers t)
   

Now do C-x b and select an unloaded buffer.  Evaluate the following
*twice*:
   
   (defadvice delete-backward-char (before delete-empty-pair activate) 
     ())
   
This is the only way I could reproduce the error interactively.

I've been loading the same .emacs with previous emacs snapshots with no
trouble. It might have something to do with this recent issue
http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00472.html

Thanks, 
Vitalie.

===============================================================

In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.1)
 of 2012-05-24 on lansones, modified by Debian
 (emacs-snapshot package, version 2:20120524-1~ppa1~precise1)
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
Configured using:
 `configure '--build' 'i686-linux-gnu' '--host' 'i686-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu'
 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g
 -Wl,--as-needed -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  recentf-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-y C-p C-p C-p C-p C-p C-p C-p C-e C-x C-e C-n C-x 
C-e C-n C-x C-e C-g q C-e C-e C-x C-e C-g C-x C-e C-n 
C-n C-x b t e x <return> C-x b s c <return> C-n C-n 
C-e C-x C-e C-x C-e M-x r e p o r <tab> <return>

Recent messages:
Quit
Back to top level.
t
Quit
t
Loading /home/vitoshka/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading vc-git...done
delete-backward-char
Entering debugger...

Load-path shadows:


To: 
Subject: 
Gcc: nnfolder+archive:sent-2012-May





             reply	other threads:[~2012-05-27 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27 17:01 Vitalie Spinu [this message]
2012-05-28 19:48 ` bug#11569: 24.1.50; Defadvice fails after IDO load ("Cannot open doc string file") Glenn Morris
2013-01-05 19:54   ` Glenn Morris
2013-01-06  9:02     ` Vitalie Spinu

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=87y5odtv74.fsf@gmail.com \
    --to=spinuvit@gmail.com \
    --cc=11569@debbugs.gnu.org \
    /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).