From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Strange loading of vc-bzr with additional file-handler Date: Sat, 19 Jul 2008 15:41:11 +0200 Message-ID: <4881EEF7.8070201@gmail.com> References: <4881EC8F.9050001@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216474888 20670 80.91.229.12 (19 Jul 2008 13:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 13:41:28 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 19 15:42:16 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KKChU-00031M-BJ for ged-emacs-devel@m.gmane.org; Sat, 19 Jul 2008 15:42:16 +0200 Original-Received: from localhost ([127.0.0.1]:42158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKCgb-00053w-HA for ged-emacs-devel@m.gmane.org; Sat, 19 Jul 2008 09:41:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKCgY-00052g-0w for emacs-devel@gnu.org; Sat, 19 Jul 2008 09:41:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKCgW-00051F-Fh for emacs-devel@gnu.org; Sat, 19 Jul 2008 09:41:17 -0400 Original-Received: from [199.232.76.173] (port=58391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKCgW-000516-Dk for emacs-devel@gnu.org; Sat, 19 Jul 2008 09:41:16 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:57703) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKCgW-0001cg-9E for emacs-devel@gnu.org; Sat, 19 Jul 2008 09:41:16 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:63331 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KKCgT-0004Xl-6L for emacs-devel@gnu.org; Sat, 19 Jul 2008 15:41:14 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <4881EC8F.9050001@gmail.com> X-Antivirus: avast! (VPS 080718-1, 2008-07-18), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1KKCgT-0004Xl-6L. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KKCgT-0004Xl-6L ec49a928c94eaa5b226c39a259d56312 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100977 Archived-At: Lennart Borgman (gmail) wrote: > I am testing a file handler for sending files to the shell when opening > them. I do not understand all the bits and pieces there. Though I have > only defined operation 'insert-file-contents it works well most of the > time, but suddenly I got the strange traceback below. > > Debugger entered--Lisp error: (void-function vc-bzr-state-heuristic) > vc-bzr-state-heuristic("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > vc-bzr-registered("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > apply(vc-bzr-registered "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > vc-call-backend(Bzr registered > "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > #[(b) "  # ... (some byte code here) > vc-registered("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > apply(vc-registered "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > (let ((inhibit-file-name-handlers ...) (inhibit-file-name-operation > operation)) (apply operation args)) > (if done nil (let (... ...) (apply operation args))) > (unless done (let (... ...) (apply operation args))) > (let ((done nil) ftype) (when (eq operation ...) (when ... ...) > (unless ... ... ...)) (unless done (let ... ...))) > sex-file-handler(vc-registered > "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > vc-registered("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > vc-backend("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf") > #[nil " ! " [buffer-file-name vc-backend] 2]() > vc-find-file-hook() > run-hooks(find-file-hook) > after-find-file(nil t) > find-file-noselect-1(#> > "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf" nil nil > "c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf" (0 203134463)) > find-file-noselect("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf" nil > nil t) > ad-Orig-find-file("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf" t) > (setq ad-return-value (ad-Orig-find-file filename wildcards)) > (let (ad-return-value) (setq ad-return-value (ad-Orig-find-file > filename wildcards)) ad-return-value) > find-file("c:/emacs-lisp/gimp-mode-v1.40/gimpmode.pdf" t) > call-interactively(find-file nil nil) Here is more info. When trying to exit Emacs after the above error I got another error Debugger entered--Lisp error: (invalid-read-syntax "#") load("c:/emacs/p/080718/emacs/lisp/emacs-lisp/warnings.elc" nil t t nil) apply(load ("c:/emacs/p/080718/emacs/lisp/emacs-lisp/warnings.elc" nil t t)) (let ((inhibit-file-name-handlers ...) (inhibit-file-name-operation operation)) (apply operation args)) (if done nil (let (... ...) (apply operation args))) (unless done (let (... ...) (apply operation args))) (let ((done nil) ftype) (when (eq operation ...) (when ... ...) (unless ... ... ...)) (unless done (let ... ...))) sex-file-handler(load "c:/emacs/p/080718/emacs/lisp/emacs-lisp/warnings.elc" nil t t) warn("recentf mode: %s" "Symbol's function definition is void: vc-bzr-state-heuristic") byte-code(" !\" " [error warn "recentf mode: %s" error-message-string] 4) recentf-save-list() run-hooks(kill-emacs-hook) kill-emacs() save-buffers-kill-emacs() save-buffers-kill-terminal(nil) call-interactively(save-buffers-kill-terminal nil nil) This comes when executing code similar to that in (info "(elisp) Magic File Names")