#1185: puppet-mode.el issue with array syntax
---------------------------------------+------------------------------------
 Reporter:  heydrick                   |        Owner:  rra            
     Type:  defect                     |       Status:  assigned       
 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:  Easy           
---------------------------------------+------------------------------------
Changes (by rra):

  * status:  new => assigned
  * complexity:  Unknown => Easy

Comment:

 Ah, the problem is that count-matches doesn't do the same thing in emacs21
 as it does in emacs22.  Hm.  That means I need to find a good replacement.

 Replacing the call to count-matches with puppet-count-matches and adding:

 {{{
 (defun puppet-count-matches (re start end)
   "The same as Emacs 22 count-matches, for portability to other versions
 of Emacs."
   (save-excursion
     (let ((n 0))
       (goto-char start)
       (while (re-search-forward re end t) (incf n))
       n)))
 }}}

 should fix it.  Can you give that a try?

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1185#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to