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))
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))
def send(self, filename): mua = self.command if '%s' not in mua: mua += ' %s' return ui.system(mua % commands.mkarg(filename)[1:])