From 647a066c8d2a8d596fdbecc68e53934efec1506d Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 21 Dec 2000 21:24:03 +0000 Subject: [PATCH] Fix the same problem as described on ebnf2ps.el log entry. Doc fix. (ebnf-yac-skip-code): Code fix. (ebnf-yac-comment-chars): Const fix. --- lisp/ChangeLog | 26 ++++++++++++++++++++++++++ lisp/progmodes/ebnf-yac.el | 13 +++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a31586a57b1..12265a8df73 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -9,6 +9,32 @@ * server.el (server-switch-buffer): Choose a window on a visible frame. +2000-12-21 Vinicius Jose Latorre + + * ebnf2ps.el: Fix a problem with skip-chars-forward: it doesn't accept + ranges like \177-\237, but accepts the character sequence from \177 to + \237. Doc fix. + (ebnf-version): New version (3.4). + (ebnf-setup): Code fix. + (ebnf-range-regexp): New fun. + (ebnf-8-bit-chars): Const fix. + + * ebnf-bnf.el: Fix the same problem as described on ebnf2ps.el log + entry. Doc fix. + (ebnf-bnf-lex): Code fix. + (ebnf-bnf-comment-chars): Const fix. + + * ebnf-iso.el: Fix the same problem as described on ebnf2ps.el log + entry. Doc fix. + (ebnf-iso-comment-chars): Const fix. + + * ebnf-otz.el: Doc fix. + + * ebnf-yac.el: Fix the same problem as described on ebnf2ps.el log + entry. Doc fix. + (ebnf-yac-skip-code): Code fix. + (ebnf-yac-comment-chars): Const fix. + 2000-12-21 Eli Zaretskii * files.el (insert-directory-safely): New function. diff --git a/lisp/progmodes/ebnf-yac.el b/lisp/progmodes/ebnf-yac.el index 5301f409654..a0a7f7048b9 100644 --- a/lisp/progmodes/ebnf-yac.el +++ b/lisp/progmodes/ebnf-yac.el @@ -5,8 +5,8 @@ ;; Author: Vinicius Jose Latorre ;; Maintainer: Vinicius Jose Latorre ;; Keywords: wp, ebnf, PostScript -;; Time-stamp: <99/11/20 18:02:43 vinicius> -;; Version: 1.0 +;; Time-stamp: <2000/12/19 15:47:23 vinicius> +;; Version: 1.1 ;; This file is part of GNU Emacs. @@ -387,7 +387,10 @@ See documentation for variable `ebnf-yac-lex'." (forward-char) (let ((pair 1)) (while (> pair 0) - (skip-chars-forward "^{}/'\"\000-\010\013\016-\037\177-\377" ebnf-limit) + ;; replace the range "\177-\377" (see `ebnf-range-regexp'). + (skip-chars-forward (ebnf-range-regexp "^{}/'\"\000-\010\013\016-\037" + ?\177 ?\377) + ebnf-limit) (cond ((= (following-char) ?{) (forward-char) @@ -423,7 +426,9 @@ See documentation for variable `ebnf-yac-lex'." )) -(defconst ebnf-yac-comment-chars "^*\000-\010\013\016-\037\177-\237") +;; replace the range "\177-\237" (see `ebnf-range-regexp'). +(defconst ebnf-yac-comment-chars + (ebnf-range-regexp "^*\000-\010\013\016-\037" ?\177 ?\237)) (defun ebnf-yac-skip-comment () -- 2.39.5