Esempio n. 1
0
 def send(self, filename):
     elisp = """(progn
                   (load-file "/usr/share/reportbug/reportbug.el")
                   (tfheen-reportbug-insert-template "%s"))"""
     filename = re.sub('["\\\\]', "\\\\\\g<0>", filename)
     elisp = commands.mkarg(elisp % filename)
     return ui.system("emacsclient --no-wait --eval %s 2>/dev/null" " || emacs --eval %s" % (elisp, elisp))
Esempio n. 2
0
 def send(self, filename):
     elisp = """(progn
                   (load-file "/usr/share/reportbug/reportbug.el")
                   (tfheen-reportbug-insert-template "%s"))"""
     filename = re.sub("[\"\\\\]", "\\\\\\g<0>", filename)
     elisp = commands.mkarg(elisp % filename)
     return ui.system("emacsclient --no-wait --eval %s 2>/dev/null"
                      " || emacs --eval %s" % (elisp, elisp))
Esempio n. 3
0
 def send(self, filename):
     mua = self.command
     if '%s' not in mua:
         mua += ' %s'
     return ui.system(mua % commands.mkarg(filename)[1:])
Esempio n. 4
0
 def send(self, filename):
     mua = self.command
     if '%s' not in mua:
         mua += ' %s'
     return ui.system(mua % commands.mkarg(filename)[1:])