emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/progmodes/fortran.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/fortran.el,v
Date: Thu, 13 Mar 2008 03:26:47 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/03/13 03:26:47

Index: fortran.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/fortran.el,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -b -r1.143 -r1.144
--- fortran.el  2 Feb 2008 04:23:20 -0000       1.143
+++ fortran.el  13 Mar 2008 03:26:47 -0000      1.144
@@ -676,75 +676,72 @@
     fortran-mode-abbrev-table)
   "Abbrev table for Fortran mode.")
 
-(let (abbrevs-changed)
-  ;; Use the 6th arg (SYSTEM-FLAG) of define-abbrev if possible.
-  ;; Only use `apply' to quieten the byte-compiler.
-  (mapc
-   (function (lambda (element)
+;; Not in defvar because user abbrevs may be restored before this file loads.
+(mapc
+ (lambda (e)
                (condition-case nil
-                   (apply 'define-abbrev fortran-mode-abbrev-table
-                          (append element '(nil 0 t)))
-                 (wrong-number-of-arguments
-                  (apply 'define-abbrev fortran-mode-abbrev-table
-                         (append element '(nil 0)))))))
-   '((";au"   "automatic"         )
-     (";b"    "byte"              )
-     (";bd"   "block data"        )
-     (";ch"   "character"         )
-     (";cl"   "close"             )
-     (";c"    "continue"          )
-     (";cm"   "common"            )
-     (";cx"   "complex"           )
-     (";df"   "define"            )
-     (";di"   "dimension"         )
-     (";do"   "double"            )
-     (";dc"   "double complex"    )
-     (";dp"   "double precision"  )
-     (";dw"   "do while"          )
-     (";e"    "else"              )
-     (";ed"   "enddo"             )
-     (";el"   "elseif"            )
-     (";en"   "endif"             )
-     (";eq"   "equivalence"       )
-     (";ew"   "endwhere"          )
-     (";ex"   "external"          )
-     (";ey"   "entry"             )
-     (";f"    "format"            )
-     (";fa"   ".false."           )
-     (";fu"   "function"          )
-     (";g"    "goto"              )
-     (";im"   "implicit"          )
-     (";ib"   "implicit byte"     )
-     (";ic"   "implicit complex"  )
-     (";ich"  "implicit character")
-     (";ii"   "implicit integer"  )
-     (";il"   "implicit logical"  )
-     (";ir"   "implicit real"     )
-     (";inc"  "include"           )
-     (";in"   "integer"           )
-     (";intr" "intrinsic"         )
-     (";l"    "logical"           )
-     (";n"    "namelist"          )
-     (";o"    "open"              )     ; was ;op
-     (";pa"   "parameter"         )
-     (";pr"   "program"           )
-     (";ps"   "pause"             )
-     (";p"    "print"             )
-     (";rc"   "record"            )
-     (";re"   "real"              )
-     (";r"    "read"              )
-     (";rt"   "return"            )
-     (";rw"   "rewind"            )
-     (";s"    "stop"              )
-     (";sa"   "save"              )
-     (";st"   "structure"         )
-     (";sc"   "static"            )
-     (";su"   "subroutine"        )
-     (";tr"   ".true."            )
-     (";ty"   "type"              )
-     (";vo"   "volatile"          )
-     (";w"    "write"             )
-     (";wh"   "where"             ))))
+       (define-abbrev fortran-mode-abbrev-table (car e) (cdr e) nil :count 0
+         :system t)
+     (wrong-number-of-arguments         ; Emacs 22
+      (define-abbrev fortran-mode-abbrev-table (car e) (cdr e) nil 0 t))))
+   '((";au"   . "automatic"         )
+     (";b"    . "byte"              )
+     (";bd"   . "block data"        )
+     (";ch"   . "character"         )
+     (";cl"   . "close"             )
+     (";c"    . "continue"          )
+     (";cm"   . "common"            )
+     (";cx"   . "complex"           )
+     (";df"   . "define"            )
+     (";di"   . "dimension"         )
+     (";do"   . "double"            )
+     (";dc"   . "double complex"    )
+     (";dp"   . "double precision"  )
+     (";dw"   . "do while"          )
+     (";e"    . "else"              )
+     (";ed"   . "enddo"             )
+     (";el"   . "elseif"            )
+     (";en"   . "endif"             )
+     (";eq"   . "equivalence"       )
+     (";ew"   . "endwhere"          )
+     (";ex"   . "external"          )
+     (";ey"   . "entry"             )
+     (";f"    . "format"            )
+     (";fa"   . ".false."           )
+     (";fu"   . "function"          )
+     (";g"    . "goto"              )
+     (";im"   . "implicit"          )
+     (";ib"   . "implicit byte"     )
+     (";ic"   . "implicit complex"  )
+     (";ich"  . "implicit character")
+     (";ii"   . "implicit integer"  )
+     (";il"   . "implicit logical"  )
+     (";ir"   . "implicit real"     )
+     (";inc"  . "include"           )
+     (";in"   . "integer"           )
+     (";intr" . "intrinsic"         )
+     (";l"    . "logical"           )
+     (";n"    . "namelist"          )
+     (";o"    . "open"              )     ; was ;op
+     (";pa"   . "parameter"         )
+     (";pr"   . "program"           )
+     (";ps"   . "pause"             )
+     (";p"    . "print"             )
+     (";rc"   . "record"            )
+     (";re"   . "real"              )
+     (";r"    . "read"              )
+     (";rt"   . "return"            )
+     (";rw"   . "rewind"            )
+     (";s"    . "stop"              )
+     (";sa"   . "save"              )
+     (";st"   . "structure"         )
+     (";sc"   . "static"            )
+     (";su"   . "subroutine"        )
+     (";tr"   . ".true."            )
+     (";ty"   . "type"              )
+     (";vo"   . "volatile"          )
+     (";w"    . "write"             )
+     (";wh"   . "where"             )))
 
 
 ;;;###autoload




reply via email to

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