# HG changeset patch # User Vinicius Jose Latorre # Date 1100911227 0 # Node ID 6ae939127d99a7a8f275df90bb846fdb997a4a20 # Parent db40ada53c362bbde96af6a4739cc59ee7a8bb29 eval-and-compile diff -r db40ada53c36 -r 6ae939127d99 lisp/ChangeLog --- a/lisp/ChangeLog Sat Nov 20 00:33:10 2004 +0000 +++ b/lisp/ChangeLog Sat Nov 20 00:40:27 2004 +0000 @@ -1,7 +1,7 @@ 2004-11-19 Vinicius Jose Latorre * progmodes/ebnf2ps.el: Fix typos. Insert :version tag into all - defgroup and defcustom. + defgroup and defcustom. Eliminate eval-and-compile usage. * progmodes/ebnf-otz.el: Fix typos. diff -r db40ada53c36 -r 6ae939127d99 lisp/progmodes/ebnf2ps.el --- a/lisp/progmodes/ebnf2ps.el Sat Nov 20 00:33:10 2004 +0000 +++ b/lisp/progmodes/ebnf2ps.el Sat Nov 20 00:40:27 2004 +0000 @@ -5,7 +5,7 @@ ;; Author: Vinicius Jose Latorre ;; Maintainer: Vinicius Jose Latorre -;; Time-stamp: <2004/11/19 22:24:27 vinicius> +;; Time-stamp: <2004/11/19 22:30:34 vinicius> ;; Keywords: wp, ebnf, PostScript ;; Version: 4.2 ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ @@ -1114,19 +1114,18 @@ ;; to avoid gripes with Emacs 20 -(eval-and-compile - (or (fboundp 'assq-delete-all) - (defun assq-delete-all (key alist) - "Delete from ALIST all elements whose car is KEY. +(or (fboundp 'assq-delete-all) + (defun assq-delete-all (key alist) + "Delete from ALIST all elements whose car is KEY. Return the modified alist. Elements of ALIST that are not conses are ignored." - (let ((tail alist)) - (while tail - (if (and (consp (car tail)) - (eq (car (car tail)) key)) - (setq alist (delq (car tail) alist))) - (setq tail (cdr tail))) - alist)))) + (let ((tail alist)) + (while tail + (if (and (consp (car tail)) + (eq (car (car tail)) key)) + (setq alist (delq (car tail) alist))) + (setq tail (cdr tail))) + alist))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;