From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Org errors when requiring a new pabbrev.el version Date: Sun, 04 Nov 2007 13:29:40 +0100 Message-ID: <87640iry6j.fsf@baldur.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IoecC-0002X0-M3 for emacs-orgmode@gnu.org; Sun, 04 Nov 2007 07:30:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IoecC-0002Wo-1l for emacs-orgmode@gnu.org; Sun, 04 Nov 2007 07:30:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IoecB-0002Wl-VB for emacs-orgmode@gnu.org; Sun, 04 Nov 2007 07:30:08 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ioec7-0003gy-Ij for emacs-orgmode@gnu.org; Sun, 04 Nov 2007 07:30:05 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ioebw-0002e7-CG for emacs-orgmode@gnu.org; Sun, 04 Nov 2007 12:29:52 +0000 Received: from dslb-084-063-028-042.pools.arcor-ip.net ([84.63.28.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2007 12:29:52 +0000 Received: from tassilo by dslb-084-063-028-042.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2007 12:29:52 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, in Phillip Lord posted a new version oy his pabbrev.el in the emacs-sources mailinglist. There seem to be some changes that break the current code in org.el. When I do (require 'pabbrev) I get. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-variable pabbrev-expand-after-command-list) add-to-list(pabbrev-expand-after-command-list orgtbl-self-insert-command t) (progn (add-to-list (quote pabbrev-expand-after-command-list) (quote orgtbl-self-insert-command) t) (add-to-list (quote pabbrev-expand-after-command-list) (quote org-self-insert-command) t)) eval((progn (add-to-list (quote pabbrev-expand-after-command-list) (quote orgtbl-self-insert-command) t) (add-to-list (quote pabbrev-expand-after-command-list) (quote org-self-insert-command) t))) do-after-load-evaluation("/home/heimdall/elisp/pabbrev.el") load-with-code-conversion("/home/heimdall/elisp/pabbrev.el" "/home/heimdall/elisp/pabbrev.el" nil t) require(pabbrev) eval((require (quote pabbrev))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) --8<---------------cut here---------------end--------------->8--- The corresponding code in org.el is --8<---------------cut here---------------start------------->8--- (eval-after-load "pabbrev" '(progn (add-to-list 'pabbrev-expand-after-command-list 'orgtbl-self-insert-command t) (add-to-list 'pabbrev-expand-after-command-list 'org-self-insert-command t))) --8<---------------cut here---------------end--------------->8--- It seems the variable name has been changed. This is what the comments of pabbrev.el say. --8<---------------cut here---------------start------------->8--- ;;; Package Support: ;; ;; Some packages need extra support for pabbrev to work with. There are two ;; plists properties which package developers can use. ;; ;; (put 'command-name 'pabbrev-expand-after-command t) ;; ;; means that the following the named command (in this case command-name), ;; expansion will be offered. `self-insert-command' and a few others is ;; normally fine, but not always. ;; ;; (put mode-name 'pabbrev-global-mode-excluded-modes t) ;; ;; will mean that any buffer with this major mode will not have ;; global-pabbrev-mode activated. ;; --8<---------------cut here---------------end--------------->8--- Bye, Tassilo