Commits

Anonymous committed 4fa2929

get() should return None for unknown variables

  • Participants
  • Parent commits 9fefc54
  • Branches default

Comments (0)

Files changed (1)

ropemacs/__init__.py

         return lisp.y_or_n_p(prompt)
 
     def get(self, name):
-        return lisp['ropemacs-' + name.replace('_', '-')].value()
+        lispname = 'ropemacs-' + name.replace('_', '-')
+        if lisp.boundp(lisp[lispname]):
+            return lisp[lispname].value()
 
     def get_offset(self):
         return lisp.point() - 1