comparison lisp/cedet/srecode/dictionary.el @ 105328:2f2bc20297c6

Doc/message fixes.
author Glenn Morris <rgm@gnu.org>
date Thu, 01 Oct 2009 03:08:03 +0000
parents 41dc39934483
children 7f4c7f5c0eba
comparison
equal deleted inserted replaced
105327:dcbb3800a4e1 105328:2f2bc20297c6
19 ;; You should have received a copy of the GNU General Public License 19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21 21
22 ;;; Commentary: 22 ;;; Commentary:
23 ;; 23 ;;
24 ;; Dictionaries contain lists of names and their assocaited values. 24 ;; Dictionaries contain lists of names and their associated values.
25 ;; These dictionaries are used to fill in macros from recoder templates. 25 ;; These dictionaries are used to fill in macros from recoder templates.
26 26
27 ;;; Code: 27 ;;; Code:
28 28
29 ;;; CLASSES 29 ;;; CLASSES
152 parent within the new dictionary, and assume that BUFFER 152 parent within the new dictionary, and assume that BUFFER
153 is the same as belongs to the parent dictionary. 153 is the same as belongs to the parent dictionary.
154 The dictionary is initialized with variables setup for that 154 The dictionary is initialized with variables setup for that
155 buffer's table. 155 buffer's table.
156 If BUFFER-OR-PARENT is t, then this dictionary should not be 156 If BUFFER-OR-PARENT is t, then this dictionary should not be
157 assocated with a buffer or parent." 157 associated with a buffer or parent."
158 (save-excursion 158 (save-excursion
159 (let ((parent nil) 159 (let ((parent nil)
160 (buffer nil) 160 (buffer nil)
161 (origin nil) 161 (origin nil)
162 (initfrombuff nil)) 162 (initfrombuff nil))
416 dictionary) 416 dictionary)
417 "Convert this field into an insertable string." 417 "Convert this field into an insertable string."
418 (require 'srecode/fields) 418 (require 'srecode/fields)
419 ;; If we are not in a buffer, then this is not supported. 419 ;; If we are not in a buffer, then this is not supported.
420 (when (not (bufferp standard-output)) 420 (when (not (bufferp standard-output))
421 (error "FIELDS invoked while inserting template to non-buffer.")) 421 (error "FIELDS invoked while inserting template to non-buffer"))
422 422
423 (if function 423 (if function
424 (error "@todo: Cannot mix field insertion with functions.") 424 (error "@todo: Cannot mix field insertion with functions")
425 425
426 ;; No function. Perform a plain field insertion. 426 ;; No function. Perform a plain field insertion.
427 ;; We know we are in a buffer, so we can perform the insertion. 427 ;; We know we are in a buffer, so we can perform the insertion.
428 (let* ((dv (oref cp defaultvalue)) 428 (let* ((dv (oref cp defaultvalue))
429 (sti (oref cp firstinserter)) 429 (sti (oref cp firstinserter))