[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bnf-mode 0bbd059 19/36: Added abbreviation table used i
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bnf-mode 0bbd059 19/36: Added abbreviation table used in bnf-mode buffers |
Date: |
Wed, 17 Mar 2021 18:40:17 -0400 (EDT) |
branch: externals/bnf-mode
commit 0bbd059aa4ed179f42495ad4bee964e78e0830f9
Author: Serghei Iakovlev <egrep@protonmail.ch>
Commit: Serghei Iakovlev <egrep@protonmail.ch>
Added abbreviation table used in bnf-mode buffers
---
NEWS | 1 +
bnf-mode.el | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 2cc33d1..f431754 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Previously BNF Mode used ert through ert-runner for testing
purposes. However, it seems ert-runner is abandoned (the last
commit a few years ago), it still uses only Emacs 24 on its own
tests and in general it looks as not maintained anymore project.
+** Added abbreviation table used in bnf-mode buffers
* BNF Mode 0.4.4
** Rework documentation and provide Info-file.
diff --git a/bnf-mode.el b/bnf-mode.el
index c04a0ff..f19936f 100644
--- a/bnf-mode.el
+++ b/bnf-mode.el
@@ -68,6 +68,9 @@ Note: enabling this feature will disable comments
recognition, which
start with semicolons only (\";\")."
:type 'boolean)
+(defvar bnf-mode-abbrev-table nil
+ "Abbreviation table used in `bnf-mode' buffers.")
+
;;; Specialized rx
@@ -94,7 +97,7 @@ are available:
See `rx' documentation for more information about REGEXPS param."
(let ((rx-constituents (append bnf-rx-constituents rx-constituents)))
- (rx-to-string (cond ((null sexps) (error "No regexp"))
+ (rx-to-string (cond ((null sexps) (error "No regexp is provided"))
((cdr sexps) `(and ,@sexps))
(t (car sexps)))
t))))
@@ -203,8 +206,9 @@ style. Will be used only if
`bnf-mode-algol-comments-style' is set to t.")
The variable `bnf-mode-algol-comments-style' can be changed to control
comments style used in grammars.
-Turning on BNF mode calls the value of `prog-mode-hook' and then of
+Turning on BNF Mode calls the value of `prog-mode-hook' and then of
`bnf-mode-hook', if they are non-nil."
+ :abbrev-table bnf-mode-abbrev-table
:syntax-table bnf-mode-syntax-table
;; Comments setup
- [elpa] externals/bnf-mode 45834dc 03/36: Add file test/.nosearch, (continued)
- [elpa] externals/bnf-mode 45834dc 03/36: Add file test/.nosearch, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 046d2e7 04/36: Added .gitattributes file, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode cd9082a 05/36: Rearrange Makefile variables to correct order of them, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 05287d9 11/36: Merge pull request #12 from sergeyklay/feature/buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 99a45b6 12/36: Code cleanup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 164101e 13/36: Merge pull request #13 from sergeyklay/feature/buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode e744d8a 15/36: HTTPS everywhere, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 9d89e81 07/36: Rephrase docs, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 7e6c3c0 08/36: Amended development dependencies, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8e69700 18/36: Merge pull request #14 from sergeyklay/minor-fixes, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 0bbd059 19/36: Added abbreviation table used in bnf-mode buffers,
Stefan Monnier <=
- [elpa] externals/bnf-mode dd6fae4 23/36: Added mised define-abbrev-table call, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 3d5c4fd 30/36: Cleaned up comments syntax propertize for ALGOL 60 style, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 5b223e8 34/36: Provide canonical BNF sytax, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 1b4f75f 06/36: Add field containing commit SHA expanded during archive creation, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8799c4a 09/36: Add a workaround for ert-runner to work with Emacs > 26, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode d697e0a 10/36: Migrate tests to use buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 4ba8d28 14/36: Load undercover first to improve coverage report, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 62238ee 16/36: Cleaned up Makefile, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode a3b6d86 21/36: Update change log, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8948987 20/36: Rename bnf-test-face-at => bnf-get-face-at, Stefan Monnier, 2021/03/17