#1185: puppet-mode.el issue with array syntax
---------------------------------------+------------------------------------
Reporter: heydrick | Owner: rra
Type: defect | Status: new
Priority: normal | Milestone:
Component: documentation | Version: 0.24.4
Severity: normal | Resolution:
Keywords: emacs mode puppet-mode.el | Stage: Needs more info
Patch: None | Complexity: Unknown
---------------------------------------+------------------------------------
Comment (by heydrick):
It must be emacs 21 specific as it works fine for me with 22. Here's the
backtrace from emacs 21.4.2.
{{{
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p "1
occurrences")
=("1 occurrences" 0)
(if (= (count-matches "\\]" apoint opoint) 0) apoint)
(progn (if (= ... 0) apoint))
(if apoint (progn (if ... apoint)))
(when apoint (if (= ... 0) apoint))
(let ((opoint ...) (apoint ...)) (when apoint (if ... apoint)))
(progn (let (... ...) (when apoint ...)))
(unwind-protect (progn (let ... ...)) (set-match-data save-match-data-
internal))
(let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-
match-data save-match-data-internal)))
(save-match-data (let (... ...) (when apoint ...)))
(save-excursion (save-match-data (let ... ...)))
puppet-in-array()
(let ((not-indented t) (array-start ...) cur-indent) (cond (array-start
...) (... ... ...) (t ...)) (if cur-inden$
(if (bobp) (indent-line-to 0) (let (... ... cur-indent) (cond ... ...
...) (if cur-indent ... ...)))
puppet-indent-line()
indent-for-tab-command(nil)
* call-interactively(indent-for-tab-command)
}}}
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1185#comment:2>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---