~ubuntu-branches/ubuntu/hardy/ess/hardy

« back to all changes in this revision

Viewing changes to lisp/essddr.el

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2005-03-22 13:48:07 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050322134807-9mpmbb799jugf248
Tags: 5.2.6-1
* New upstream release
* chmod -R u+w on orig source

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;; essddr.el --- Support for editing R documentation (Rd) source
2
2
 
3
 
;;; Copyright (C) 1998--2001 KH <Kurt.Hornik@ci.tuwien.ac.at>, AJR, MM
4
 
;;;
 
3
;; Copyright (C) 1997--2005  A.J. Rossini, Rich M. Heiberger, Martin
 
4
;;      Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
5
5
 
6
 
;; Author: KH <Kurt.Hornik@ci.tuwien.ac.at>
7
 
;; Maintainer: A.J. Rossini <rossini@biostat.washington.edu>
 
6
;; Original Author: KH <Kurt.Hornik@ci.tuwien.ac.at>
8
7
;; Created: 25 July 1997
9
 
;; Modified: $Date: 2002/01/28 08:35:20 $
10
 
;; Version: $Revision: 5.19 $
11
 
;; RCS: $Id: essddr.el,v 5.19 2002/01/28 08:35:20 maechler Exp $
 
8
;; Maintainers: ESS-core <ESS-core@stat.math.ethz.ch>
12
9
 
13
10
;; This file is part of ESS (Emacs Speaks Statistics).
14
11
 
27
24
;; obtain it by writing to the Free Software Foundation, Inc., 675 Mass
28
25
;; Ave, Cambridge, MA 02139, USA.
29
26
 
30
 
;;; ESS RCS: $Id: essddr.el,v 5.19 2002/01/28 08:35:20 maechler Exp $
31
 
 
32
27
;;; Code:
33
28
 
34
29
;; To stave off byte compiler errors
35
30
(eval-when-compile (require 'ess-help))
36
31
 
37
 
(defvar essddr-version "0.9"
 
32
(defvar essddr-version "0.9-1"
38
33
  "Current version of essddr.el.")
39
34
 
40
35
(defvar essddr-maintainer-address
41
 
  "Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>"
 
36
  "Kurt Hornik <Kurt.Hornik@R-project.org>"
42
37
  "Current maintainer of essddr.el.")
43
38
 
44
39
;; Special support for XEmacs (curtesy of auctex):
85
80
  (define-abbrev Rd-mode-abbrev-table "`en" "\\enumerate")
86
81
  (define-abbrev Rd-mode-abbrev-table "`ex" "\\examples")
87
82
  (define-abbrev Rd-mode-abbrev-table "`fi" "\\file")
88
 
  (define-abbrev Rd-mode-abbrev-table "`fi" "\\format")
 
83
  (define-abbrev Rd-mode-abbrev-table "`fo" "\\format")
89
84
  (define-abbrev Rd-mode-abbrev-table "`it" "\\item")
90
85
  (define-abbrev Rd-mode-abbrev-table "`iz" "\\itemize")
91
86
  (define-abbrev Rd-mode-abbrev-table "`kw" "\\keyword")
101
96
  (define-abbrev Rd-mode-abbrev-table "`ta" "\\tabular")
102
97
  (define-abbrev Rd-mode-abbrev-table "`ti" "\\title")
103
98
  (define-abbrev Rd-mode-abbrev-table "`us" "\\usage")
104
 
  (define-abbrev Rd-mode-abbrev-table "`va" "\\value")
105
 
  (define-abbrev Rd-mode-abbrev-table "`ve" "\\verbatim"))
 
99
  (define-abbrev Rd-mode-abbrev-table "`va" "\\value"))
106
100
 
107
101
(defvar Rd-mode-syntax-table nil
108
102
  "Syntax table for Rd mode.")
140
134
  (modify-syntax-entry ?\] "_" Rd-mode-parse-syntax-table))
141
135
 
142
136
(defvar Rd-section-names
143
 
  '("arguments" "alias" "author" "describe" "description" "details"
144
 
    "enumerate" "examples" "format" "itemize" "keyword" "name" "note"
145
 
    "references" "seealso" "section" "source" "synopsis" "tabular"
146
 
    "title" "usage" "value" "verbatim"))
 
137
  '("arguments" "alias" "author" "concept" "describe" "description"
 
138
    "details" "docType" "encoding" "enumerate" "examples" "format"
 
139
    "itemize" "keyword" "name" "note" "preformatted" "references"
 
140
    "seealso" "section" "source" "synopsis" "tabular" "title" "usage"
 
141
    "value"))
 
142
 
147
143
(defvar Rd-keywords
148
 
  '("Alpha" "Gamma" "R" "alpha" "beta" "bold" "cr" "code" "deqn" "dots"
149
 
    "email" "emph" "epsilon" "eqn" "file" "ge" "item" "lambda" "ldots"
150
 
    "le" "left" "link" "method" "mu" "pi" "right" "tab" "sigma" "url"))
 
144
  '("Alpha" "Gamma" "R" "S3method" "S4method" "acronym" "alpha" "beta"
 
145
    "bold" "cite" "code" "command" "cr" "dQuote" "deqn" "dfn" "dontrun"
 
146
    "dontshow" "dots" "email" "emph" "env" "epsilon" "eqn" "file" "ge"
 
147
    "item" "kbd" "lambda" "ldots" "le" "left" "link" "method" "mu"
 
148
    "option" "pi" "pkg" "right" "sQuote" "samp" "sigma" "strong" "tab"
 
149
    "url" "var"))
151
150
 
152
151
;; Need to fix Rd-bold-face problem.
153
152
;;
251
250
 
252
251
`Rd-indent-level'
253
252
  Indentation of Rd code with respect to containing blocks.
254
 
  Default is 4.
 
253
  Default is 2.
255
254
 
256
255
Turning on Rd mode runs the hook `Rd-mode-hook'.
257
256