Exemplo 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))
Exemplo 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))
Exemplo 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:])
Exemplo 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:])