aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/srecode
diff options
context:
space:
mode:
authorPaul Eggert2011-11-19 19:07:02 -0800
committerPaul Eggert2011-11-19 19:07:02 -0800
commit615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90 (patch)
treee0458a9eac443c36a3a4bfa117fde01bbd6e4140 /lisp/cedet/srecode
parentc3ca24d48c10fb771ee02eb58f7d49bd82d6306e (diff)
parente1dbe924b53c541fdf238a5a722b7177d5c8760b (diff)
downloademacs-615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90.tar.gz
emacs-615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90.zip
Merge from trunk.
Diffstat (limited to 'lisp/cedet/srecode')
-rw-r--r--lisp/cedet/srecode/compile.el6
-rw-r--r--lisp/cedet/srecode/ctxt.el4
-rw-r--r--lisp/cedet/srecode/dictionary.el6
-rw-r--r--lisp/cedet/srecode/document.el10
-rw-r--r--lisp/cedet/srecode/extract.el2
-rw-r--r--lisp/cedet/srecode/fields.el4
-rw-r--r--lisp/cedet/srecode/find.el4
-rw-r--r--lisp/cedet/srecode/insert.el6
-rw-r--r--lisp/cedet/srecode/mode.el2
-rw-r--r--lisp/cedet/srecode/semantic.el2
-rw-r--r--lisp/cedet/srecode/srt-mode.el2
-rw-r--r--lisp/cedet/srecode/texi.el2
12 files changed, 25 insertions, 25 deletions
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el
index 052999bf7c8..d3623d6022f 100644
--- a/lisp/cedet/srecode/compile.el
+++ b/lisp/cedet/srecode/compile.el
@@ -62,11 +62,11 @@
62 (dictionary :initarg :dictionary 62 (dictionary :initarg :dictionary
63 :type (or null srecode-dictionary) 63 :type (or null srecode-dictionary)
64 :documentation 64 :documentation
65 "List of section dictinaries. 65 "List of section dictionaries.
66The compiled template can contain lists of section dictionaries, 66The compiled template can contain lists of section dictionaries,
67or values that are expected to be passed down into different 67or values that are expected to be passed down into different
68section macros. The template section dictionaries are merged in with 68section macros. The template section dictionaries are merged in with
69any incomming dictionaries values.") 69any incoming dictionaries values.")
70 (binding :initarg :binding 70 (binding :initarg :binding
71 :documentation 71 :documentation
72 "Preferred keybinding for this template in `srecode-minor-mode-map'.") 72 "Preferred keybinding for this template in `srecode-minor-mode-map'.")
@@ -552,7 +552,7 @@ A list of defined variables VARS provides a variable table."
552 (when (not hs) 552 (when (not hs)
553 (setq hs (make-hash-table :test 'equal :size 20)) 553 (setq hs (make-hash-table :test 'equal :size 20))
554 (puthash context hs contexthash)) 554 (puthash context hs contexthash))
555 ;; Put into that contenxt's hash. 555 ;; Put into that context's hash.
556 (puthash objname (car lp) hs) 556 (puthash objname (car lp) hs)
557 ) 557 )
558 558
diff --git a/lisp/cedet/srecode/ctxt.el b/lisp/cedet/srecode/ctxt.el
index cae52428e75..11d84e96f41 100644
--- a/lisp/cedet/srecode/ctxt.el
+++ b/lisp/cedet/srecode/ctxt.el
@@ -64,7 +64,7 @@ Some useful context values used by the provided srecode templates are:
64 \"comment\" - In a comment in a block of code 64 \"comment\" - In a comment in a block of code
65 -- these items show up at the end of the context list. -- 65 -- these items show up at the end of the context list. --
66 \"public\", \"protected\", \"private\" - 66 \"public\", \"protected\", \"private\" -
67 In or near a section of public/pritected/private entries. 67 In or near a section of public/protected/private entries.
68 \"code\" - In a block of code. 68 \"code\" - In a block of code.
69 \"string\" - In a string in a block of code 69 \"string\" - In a string in a block of code
70 \"comment\" - In a comment in a block of code 70 \"comment\" - In a comment in a block of code
@@ -73,7 +73,7 @@ Some useful context values used by the provided srecode templates are:
73 ) 73 )
74 74
75(defun srecode-calculate-nearby-things () 75(defun srecode-calculate-nearby-things ()
76 ;; NOTE: May need to add bounes to this FCN 76 ;; NOTE: May need to add bounds to this FCN
77 "Calculate the CONTEXT type items nearby the current point. 77 "Calculate the CONTEXT type items nearby the current point.
78Assume that what we want to insert next is based on what is just 78Assume that what we want to insert next is based on what is just
79before point. If there is nothing, then assume it is whatever is 79before point. If there is nothing, then assume it is whatever is
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el
index 521532bed33..62ceff82448 100644
--- a/lisp/cedet/srecode/dictionary.el
+++ b/lisp/cedet/srecode/dictionary.el
@@ -202,7 +202,7 @@ associated with a buffer or parent."
202 :size 20) 202 :size 20)
203 :origin origin))) 203 :origin origin)))
204 ;; Only set up the default variables if we are being built 204 ;; Only set up the default variables if we are being built
205 ;; directroy for a particular buffer. 205 ;; directly for a particular buffer.
206 (when initfrombuff 206 (when initfrombuff
207 ;; Variables from the table we are inserting from. 207 ;; Variables from the table we are inserting from.
208 ;; @todo - get a better tree of tables. 208 ;; @todo - get a better tree of tables.
@@ -280,7 +280,7 @@ inserted dictionaries."
280 (progn 280 (progn
281 (srecode-dictionary-show-section new "FIRST") 281 (srecode-dictionary-show-section new "FIRST")
282 (srecode-dictionary-show-section new "LAST")) 282 (srecode-dictionary-show-section new "LAST"))
283 ;; Not the very first one. Lets clean up CAR. 283 ;; Not the very first one. Let's clean up CAR.
284 (let ((tail (car (last ov)))) 284 (let ((tail (car (last ov))))
285 (srecode-dictionary-hide-section tail "LAST") 285 (srecode-dictionary-hide-section tail "LAST")
286 (srecode-dictionary-show-section tail "NOTLAST") 286 (srecode-dictionary-show-section tail "NOTLAST")
@@ -436,7 +436,7 @@ The root dictionary is usually for a current or active insertion."
436 436
437;;; COMPOUND VALUE METHODS 437;;; COMPOUND VALUE METHODS
438;; 438;;
439;; Compound values must provide at least the toStriong method 439;; Compound values must provide at least the toString method
440;; for use in converting the compound value into sometehing insertable. 440;; for use in converting the compound value into sometehing insertable.
441 441
442(defmethod srecode-compound-toString ((cp srecode-dictionary-compound-value) 442(defmethod srecode-compound-toString ((cp srecode-dictionary-compound-value)
diff --git a/lisp/cedet/srecode/document.el b/lisp/cedet/srecode/document.el
index a52cadbfb2c..134b5310ab3 100644
--- a/lisp/cedet/srecode/document.el
+++ b/lisp/cedet/srecode/document.el
@@ -122,7 +122,7 @@ RESULT is a string."
122 ("read" . "Reads from") 122 ("read" . "Reads from")
123 ("reset" . "Resets the parameters and returns") 123 ("reset" . "Resets the parameters and returns")
124 ("scan" . "Scans the ") 124 ("scan" . "Scans the ")
125 ("setup\\|init\\(iallize\\)?" . "Initializes the ") 125 ("setup\\|init\\(ialize\\)?" . "Initializes the ")
126 ("select" . "Chooses the ") 126 ("select" . "Chooses the ")
127 ("send" . "Sends a") 127 ("send" . "Sends a")
128 ("re?c\\(v\\|ieves?\\)" . "Receives a ") 128 ("re?c\\(v\\|ieves?\\)" . "Receives a ")
@@ -167,7 +167,7 @@ doesn't always work correctly."
167 ("str\\(ing\\)?" . "string") 167 ("str\\(ing\\)?" . "string")
168 ("use?r" . "user") 168 ("use?r" . "user")
169 ("num\\(ber\\)?" . "number") 169 ("num\\(ber\\)?" . "number")
170 ("\\(^\\|\\s-\\)id\\($\\|\\s-\\)" . "Identifier") ;complex cause ;commen sylable 170 ("\\(^\\|\\s-\\)id\\($\\|\\s-\\)" . "Identifier") ;complex cause ;common sylable
171 ) 171 )
172 "List of common English abbreviations or full words. 172 "List of common English abbreviations or full words.
173These are nouns (as opposed to verbs) for use in creating expanded 173These are nouns (as opposed to verbs) for use in creating expanded
@@ -720,7 +720,7 @@ allocating something based on its type."
720 "Convert tag or string PARAM into a name,comment pair. 720 "Convert tag or string PARAM into a name,comment pair.
721Optional COMMENTLIST is list of previously existing comments to 721Optional COMMENTLIST is list of previously existing comments to
722use instead in alist form. If the name doesn't appear in the list of 722use instead in alist form. If the name doesn't appear in the list of
723standard names, then englishify it instead." 723standard names, then english it instead."
724 (let ((cmt "") 724 (let ((cmt "")
725 (aso srecode-document-autocomment-param-alist) 725 (aso srecode-document-autocomment-param-alist)
726 (fnd nil) 726 (fnd nil)
@@ -811,8 +811,8 @@ not account for verb parts."
811 (if (string-match (car (car al)) (downcase ts)) 811 (if (string-match (car (car al)) (downcase ts))
812 (progn 812 (progn
813 (setq newstr (concat newstr (cdr (car al)))) 813 (setq newstr (concat newstr (cdr (car al))))
814 ;; don't terminate because we may actuall have 2 words 814 ;; don't terminate because we may actually have 2 words
815 ;; next to eachother we didn't identify before 815 ;; next to each other we didn't identify before
816 (setq llow t))) 816 (setq llow t)))
817 (setq al (cdr al))) 817 (setq al (cdr al)))
818 (if (not llow) (setq newstr (concat newstr ts))) 818 (if (not llow) (setq newstr (concat newstr ts)))
diff --git a/lisp/cedet/srecode/extract.el b/lisp/cedet/srecode/extract.el
index 80e6f9d8d1c..d87dc315829 100644
--- a/lisp/cedet/srecode/extract.el
+++ b/lisp/cedet/srecode/extract.el
@@ -61,7 +61,7 @@
61 (oset st lastdict dict)) 61 (oset st lastdict dict))
62 62
63(defmethod srecode-extract-state-set-anchor ((st srecode-extract-state)) 63(defmethod srecode-extract-state-set-anchor ((st srecode-extract-state))
64 "Reset the achor point on extract state ST." 64 "Reset the anchor point on extract state ST."
65 (oset st anchor (point))) 65 (oset st anchor (point)))
66 66
67(defmethod srecode-extract-state-extract ((st srecode-extract-state) 67(defmethod srecode-extract-state-extract ((st srecode-extract-state)
diff --git a/lisp/cedet/srecode/fields.el b/lisp/cedet/srecode/fields.el
index 088781cfb53..f13fb17ca8f 100644
--- a/lisp/cedet/srecode/fields.el
+++ b/lisp/cedet/srecode/fields.el
@@ -101,7 +101,7 @@ Has virtual :start and :end initializers.")
101 )) 101 ))
102 102
103 ;; Create a temporary overlay now. We have to use an overlay and 103 ;; Create a temporary overlay now. We have to use an overlay and
104 ;; not a marker becaues of the in-front insertion rules. The rules 104 ;; not a marker because of the in-front insertion rules. The rules
105 ;; are backward from what is wanted while typing. 105 ;; are backward from what is wanted while typing.
106 (setq olay (make-overlay start end (current-buffer) t nil)) 106 (setq olay (make-overlay start end (current-buffer) t nil))
107 (overlay-put olay 'srecode-init-only t) 107 (overlay-put olay 'srecode-init-only t)
@@ -338,7 +338,7 @@ PRE-LEN is used in the after mode for the length of the changed text."
338 (inhibit-modification-hooks t) 338 (inhibit-modification-hooks t)
339 ) 339 )
340 ;; Sometimes a field is deleted, but we might still get a stray 340 ;; Sometimes a field is deleted, but we might still get a stray
341 ;; event. Lets just ignore those events. 341 ;; event. Let's just ignore those events.
342 (when (slot-boundp field 'overlay) 342 (when (slot-boundp field 'overlay)
343 ;; First, fixup the two overlays, in case they got confused. 343 ;; First, fixup the two overlays, in case they got confused.
344 (let ((main (oref field overlay)) 344 (let ((main (oref field overlay))
diff --git a/lisp/cedet/srecode/find.el b/lisp/cedet/srecode/find.el
index fdca64a7da1..b947c63f4dd 100644
--- a/lisp/cedet/srecode/find.el
+++ b/lisp/cedet/srecode/find.el
@@ -103,7 +103,7 @@ If TAB is nil, then always return t."
103 (let ((proj (oref tab :project))) 103 (let ((proj (oref tab :project)))
104 ;; Return t if the project wasn't set. 104 ;; Return t if the project wasn't set.
105 (if (not proj) t 105 (if (not proj) t
106 ;; If the project directory was set, lets check it. 106 ;; If the project directory was set, let's check it.
107 (let ((dd (expand-file-name default-directory)) 107 (let ((dd (expand-file-name default-directory))
108 (projexp (regexp-quote (directory-file-name proj)))) 108 (projexp (regexp-quote (directory-file-name proj))))
109 (if (string-match (concat "^" projexp) dd) 109 (if (string-match (concat "^" projexp) dd)
@@ -238,7 +238,7 @@ Optional argument HASH is the hash table to fill in."
238 (tabs (when mt (oref mt :tables))) 238 (tabs (when mt (oref mt :tables)))
239 ) 239 )
240 (while tabs 240 (while tabs
241 ;; Exclude templates for a perticular application. 241 ;; Exclude templates for a particular application.
242 (when (and (not (oref (car tabs) :application)) 242 (when (and (not (oref (car tabs) :application))
243 (srecode-template-table-in-project-p (car tabs))) 243 (srecode-template-table-in-project-p (car tabs)))
244 (maphash (lambda (key temp) 244 (maphash (lambda (key temp)
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el
index 84964a9e8b4..60f277b2c9f 100644
--- a/lisp/cedet/srecode/insert.el
+++ b/lisp/cedet/srecode/insert.el
@@ -255,7 +255,7 @@ ST can be a class, or an object."
255 (let ((c (oref st code))) 255 (let ((c (oref st code)))
256 (srecode-push st) 256 (srecode-push st)
257 (srecode-insert-code-stream c dictionary)) 257 (srecode-insert-code-stream c dictionary))
258 ;; Poping the stack is protected 258 ;; Popping the stack is protected.
259 (srecode-pop st))) 259 (srecode-pop st)))
260 260
261(defun srecode-insert-code-stream (code dictionary) 261(defun srecode-insert-code-stream (code dictionary)
@@ -936,7 +936,7 @@ with the dictionaries found in the dictionary."
936 (if (srecode-dictionary-lookup-name dictionary (oref sti :object-name)) 936 (if (srecode-dictionary-lookup-name dictionary (oref sti :object-name))
937 ;; If we have a value, then call the next method 937 ;; If we have a value, then call the next method
938 (srecode-insert-method-helper sti dictionary 'includedtemplate) 938 (srecode-insert-method-helper sti dictionary 'includedtemplate)
939 ;; If we don't have a special dictitonary, then just insert with the 939 ;; If we don't have a special dictionary, then just insert with the
940 ;; current dictionary. 940 ;; current dictionary.
941 (srecode-insert-subtemplate sti dictionary 'includedtemplate)) 941 (srecode-insert-subtemplate sti dictionary 'includedtemplate))
942 ) 942 )
@@ -946,7 +946,7 @@ with the dictionaries found in the dictionary."
946;; It will first insert the included template, then insert the embedded 946;; It will first insert the included template, then insert the embedded
947;; template wherever the $^$ in the included template was. 947;; template wherever the $^$ in the included template was.
948;; 948;;
949;; Since it uses dual inheretance, it will magically get the end-matching 949;; Since it uses dual inheritance, it will magically get the end-matching
950;; behavior of #, with the including feature of >. 950;; behavior of #, with the including feature of >.
951;; 951;;
952(defclass srecode-template-inserter-include-wrap (srecode-template-inserter-include srecode-template-inserter-section-start) 952(defclass srecode-template-inserter-include-wrap (srecode-template-inserter-include srecode-template-inserter-section-start)
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el
index bb2db79acc6..23d09bc9a4b 100644
--- a/lisp/cedet/srecode/mode.el
+++ b/lisp/cedet/srecode/mode.el
@@ -61,7 +61,7 @@
61 (define-key km (format "%c" k) 'srecode-bind-insert) 61 (define-key km (format "%c" k) 'srecode-bind-insert)
62 (setq k (1+ k)))) 62 (setq k (1+ k))))
63 km) 63 km)
64 "Keymap used behind the srecode prefix key in in srecode minor mode.") 64 "Keymap used behind the srecode prefix key in srecode minor mode.")
65 65
66(defvar srecode-menu-bar 66(defvar srecode-menu-bar
67 (list 67 (list
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el
index 4a1a15c1d12..956bdfbd97a 100644
--- a/lisp/cedet/srecode/semantic.el
+++ b/lisp/cedet/srecode/semantic.el
@@ -394,7 +394,7 @@ as `function' will leave point where code might be inserted."
394 (srecode-semantic-apply-tag-to-dict tagobj dict))) 394 (srecode-semantic-apply-tag-to-dict tagobj dict)))
395 395
396 ;; Insert dict-entries into the dictionary LAST so that previous 396 ;; Insert dict-entries into the dictionary LAST so that previous
397 ;; items can be overriden. 397 ;; items can be overridden.
398 (let ((entries dict-entries)) 398 (let ((entries dict-entries))
399 (while entries 399 (while entries
400 (srecode-dictionary-set-value dict 400 (srecode-dictionary-set-value dict
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el
index 5a407aad135..0a99b7869e8 100644
--- a/lisp/cedet/srecode/srt-mode.el
+++ b/lisp/cedet/srecode/srt-mode.el
@@ -483,7 +483,7 @@ section or ? for an ask variable."
483 483
484 (if (> start (point)) 484 (if (> start (point))
485 ;; If our starting point is after the found point, that 485 ;; If our starting point is after the found point, that
486 ;; means we are not inside the macro. Retur nil. 486 ;; means we are not inside the macro. Return nil.
487 nil 487 nil
488 ;; We are inside the macro, extract the text so far. 488 ;; We are inside the macro, extract the text so far.
489 (let* ((macroend (match-beginning 0)) 489 (let* ((macroend (match-beginning 0))
diff --git a/lisp/cedet/srecode/texi.el b/lisp/cedet/srecode/texi.el
index 33440d04432..acfc2486711 100644
--- a/lisp/cedet/srecode/texi.el
+++ b/lisp/cedet/srecode/texi.el
@@ -231,7 +231,7 @@ This is to take advantage of TeXinfo's markup symbols."
231 (if buffer 231 (if buffer
232 (progn (set-buffer buffer) 232 (progn (set-buffer buffer)
233 (srecode-texi-texify-docstring string)) 233 (srecode-texi-texify-docstring string))
234 ;; Else, no buffer, so lets do something else 234 ;; Else, no buffer, so let's do something else
235 (with-mode-local texinfo-mode 235 (with-mode-local texinfo-mode
236 (srecode-texi-texify-docstring string))))) 236 (srecode-texi-texify-docstring string)))))
237 237