emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Org errors when requiring a new pabbrev.el version
Date: Sun, 04 Nov 2007 13:29:40 +0100	[thread overview]
Message-ID: <87640iry6j.fsf@baldur.tsdh.de> (raw)

Hi,

in <uk5p1r61m.fsf@newcastle.ac.uk> 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

             reply	other threads:[~2007-11-04 12:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-04 12:29 Tassilo Horn [this message]
2007-11-04 13:39 ` Org errors when requiring a new pabbrev.el version Carsten Dominik

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87640iry6j.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-orgmode@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/org-mode.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).