bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suggest adding texinfo-mode-abbrev-table to texinfo.el?


From: Philip Lijnzaad
Subject: suggest adding texinfo-mode-abbrev-table to texinfo.el?
Date: Tue, 28 Aug 2001 14:01:58 +0100

Dear all, 

on emacs 20.5, the texinfo mode does not have an abbrev-table, which seems
like an omission. If emacs 21.x does not have it either and you are willing
to consider adding it, here is the context diff of texinfo that adds the
abbrev-table. Kind regards,
                                                                      Philip

*** /sw/common/share/emacs/20.5/lisp/textmodes/texinfo.el       Tue Feb  9 
00:28:03 1999
--- texinfo.el  Sun Aug 26 14:37:37 2001
***************
*** 1,3 ****
--- 1,9 ----
+ ;;; This is texinfo.el from emacs-20.5, with additions to have an 
abbrev-table.
+ ;;; The four lines contaning 'abbrev' are my changes; rest unchanged.
+ ;;;
+ ;;; Philip address@hidden, Aug. 2001
+ 
+ ;;;
  ;;; texinfo.el --- major mode for editing Texinfo files
  
  ;; Copyright (C) 1985, '88, '89, '90, '91,
***************
*** 274,279 ****
--- 280,291 ----
    (modify-syntax-entry ?} "){" texinfo-mode-syntax-table)
    (modify-syntax-entry ?\' "w" texinfo-mode-syntax-table))
  
+ ;;; @amendment by address@hidden
+ (defvar texinfo-mode-abbrev-table nil 
+   "Abbrev table used while in texinfo mode.")
+ (define-abbrev-table 'texinfo-mode-abbrev-table ())
+ 
+ 
  ;; Written by Wolfgang Bangerth <address@hidden>
  ;; To override this example, set either `imenu-generic-expression'
  ;; or `imenu-create-index-function'.
***************
*** 487,492 ****
--- 499,505 ----
    (setq mode-name "Texinfo")
    (setq major-mode 'texinfo-mode)
    (use-local-map texinfo-mode-map)
+   (setq local-abbrev-table texinfo-mode-abbrev-table)
    (set-syntax-table texinfo-mode-syntax-table)
    (make-local-variable 'page-delimiter)
    (setq page-delimiter


-- 
Real programs don't eat cache (Malay)
-----------------------------------------------------------------------------
Philip Lijnzaad, address@hidden \ European Bioinformatics Institute,rm A2-08
+44 (0)1223 49 4639                 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           \ Cambridgeshire CB10 1SD,  GREAT BRITAIN




reply via email to

[Prev in Thread] Current Thread [Next in Thread]