From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: [OT, meta] markup (Re: have emacs use SIGTERM to end a process instead of SIGHUP) Date: Tue, 16 Jul 2013 09:47:58 +0200 Message-ID: <87sizfgd3l.fsf@thinkpad.tsdh.de> References: <51DB3A43.4090909@johnleach.co.uk> <87txk4c55k.fsf@thinkpad.tsdh.de> <51DFE1EE.2000805@johnleach.co.uk> <87li57dici.fsf_-_@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373960921 8577 80.91.229.3 (16 Jul 2013 07:48:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 07:48:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 16 09:48:42 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uz000-0000XH-Rm for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jul 2013 09:48:40 +0200 Original-Received: from localhost ([::1]:60433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz000-0003U6-Ha for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jul 2013 03:48:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyzzn-0003Sw-6G for help-gnu-emacs@gnu.org; Tue, 16 Jul 2013 03:48:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyzzk-0006K7-JW for help-gnu-emacs@gnu.org; Tue, 16 Jul 2013 03:48:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyzzk-0006Ji-9p for help-gnu-emacs@gnu.org; Tue, 16 Jul 2013 03:48:24 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uyzzg-0000Kz-NH for help-gnu-emacs@gnu.org; Tue, 16 Jul 2013 09:48:22 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jul 2013 09:48:20 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jul 2013 09:48:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 90 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:Jes8zMU7Zs7kozfH68wUABsVkHc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92150 Archived-At: Emanuel Berg writes: >> --8<---------------cut here---------------start------------->8--- >> (defvar nanoc-process nil) >> (make-variable-buffer-local 'nanoc-process) >> >> (defun nanoc-kill-process () >> (when nanoc-process >> (delete-process nanoc-process))) >> >> (defun nanoc-server () >> "Runs a nanoc web server" >> (interactive) >> (let ((default-directory (repository-root)) >> (process-connection-type t)) >> (setq nanoc-process >> (start-process-shell-command >> "nanoc-server" "nanoc-server" >> "bundle exec nanoc view -p 3005 -C")) >> (add-hook 'kill-buffer-hook #'nanoc-kill-process nil t))) >> --8<---------------cut here---------------end--------------->8--- > > Are there any perks of this markup that I'm unaware of? Well, it's emphasized by Gnus (and maybe other emacs MUAs, too). > I think it just looks strange. Would you prefer org-mode blocks that are also font-locked with the language-specific rules by Gnus (and probably other emacs MUAs)? #+BEGIN_SRC emacs-lisp (defvar nanoc-process nil) (make-variable-buffer-local 'nanoc-process) (defun nanoc-kill-process () (when nanoc-process (delete-process nanoc-process))) (defun nanoc-server () "Runs a nanoc web server" (interactive) (let ((default-directory (repository-root)) (process-connection-type t)) (setq nanoc-process (start-process-shell-command "nanoc-server" "nanoc-server" "bundle exec nanoc view -p 3005 -C")) (add-hook 'kill-buffer-hook #'nanoc-kill-process nil t))) #+END_SRC IMHO, that's very nice when the reader uses Gnus, but if he doesn't, it looks much more weird than the markers above. > I take it is configurable like everything else, but it may be a wasted > effort as my impression is that not that many people use it. So it'd > be interesting to hear. I use it cause it's convenient to use. ,----[ C-h k C-c M-m ] | C-c M-m runs the command message-mark-inserted-region, which is an interactive | compiled Lisp function in `message.el'. | | It is bound to C-c M-m, . | | (message-mark-inserted-region BEG END &optional VERBATIM) | | Mark some region in the current article with enclosing tags. | See `message-mark-insert-begin' and `message-mark-insert-end'. | If VERBATIM, use slrn style verbatim marks ("#v+" and "#v-"). `---- ,----[ C-h k C-c M-f ] | C-c M-f runs the command message-mark-insert-file, which is an interactive | compiled Lisp function in `message.el'. | | It is bound to C-c M-f, . | | (message-mark-insert-file FILE &optional VERBATIM) | | Insert FILE at point, marking it with enclosing tags. | See `message-mark-insert-begin' and `message-mark-insert-end'. | If VERBATIM, use slrn style verbatim marks ("#v+" and "#v-"). | | [back] `---- Bye, Tassilo