C-u c i
while looking at the thread in emacs).You can get it on github. There is a small elisp snippet in the README to run the script and apply the patchset from emacs.
C-u c i
while looking at the thread in emacs).(defun copy-full-path () (interactive) (let ((path (buffer-file-name))) (when path (setq path (expand-file-name path)) (funcall interprogram-cut-function path) (message "copied %s in clipboard" path))))
(defun prepare-report () (interactive) (notmuch-mua-new-mail) (insert "foo@example.com") (search-forward "Subject: ") (insert "work report week " (format-time-string "%W")) (search-forward "\n\n") (backward-char) (insert "my super email content\n"))
If you use notmuch as your email client and receive Coverity reports emails, here's a quick function that compiles the reports to a single buffer (newest first), applies some color on the errors, and enables the compilation minor mode so you can use Emacs regular "jump to next error" key.
Adapt the default-directory to your project source.
(defun samba-coverity () (interactive) (let ((b (get-buffer-create "*coverity*"))) (with-current-buffer b (erase-buffer) (setq default-directory (expand-file-name "~/prog/samba-git")) (insert (shell-command-to-string (concat "for i in $(notmuch search --output=messages" " 'from:scan-admin@coverity.com'); do notmuch show $i; done" " | perl -pE 's,^/(\\S+): (\\d+) in,cov:$1:$2: in,'"))) (goto-char (point-min)) (while (search-forward-regexp (rx bol ">>>") nil t) (let ((beg (save-excursion (beginning-of-line) (point))) (end (save-excursion (end-of-line) (point)))) (put-text-property beg end 'face 'error))) (goto-char (point-min)) (compilation-minor-mode)) (switch-to-buffer b)))