Commits

Anonymous committed 0daba0e

escaping message arguments

  • Participants
  • Parent commits f22e41d

Comments (0)

Files changed (1)

File ropemacs/__init__.py

         return result
 
     def message(self, message):
-        lisp.message(message)
+        message(message)
 
     def yes_or_no(self, prompt):
         return lisp.yes_or_no_p(prompt)
         message('%s ... done' % self.name)
 
 
+def message(message):
+    lisp.message(message.replace('%', '%%'))
+
 def occurrences_goto_occurrence():
     start = lisp.line_beginning_position()
     end = lisp.line_end_position()
              ('C-c f', 'rope-find-occurrences')]
 
 
-ropemode.decorators.logger.message = lisp.message
+ropemode.decorators.logger.message = message
 lisp(DEFVARS)
 _interface = ropemode.interface.RopeMode(env=LispUtils())
 _interface.init()