From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: [OT, meta] markup (Re: have emacs use SIGTERM to end a process instead of SIGHUP) Date: Mon, 15 Jul 2013 16:10:37 +0200 Organization: Aioe.org NNTP Server Message-ID: <87li57dici.fsf_-_@VLAN-3434.student.uu.se> References: <51DB3A43.4090909@johnleach.co.uk> <87txk4c55k.fsf@thinkpad.tsdh.de> <51DFE1EE.2000805@johnleach.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1373897721 8155 80.91.229.3 (15 Jul 2013 14:15:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2013 14:15:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 16:15:24 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 1UyjYf-0000o0-97 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 16:15:21 +0200 Original-Received: from localhost ([::1]:43266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyjYe-00068s-GZ for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 10:15:20 -0400 X-Received: by 10.180.36.211 with SMTP id s19mr6665187wij.1.1373897457806; Mon, 15 Jul 2013 07:10:57 -0700 (PDT) Original-Path: usenet.stanford.edu!mf3no24145059wib.1!news-out.google.com!md6ni62573wic.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:ldt1szzoLEG1LJ9j3fZkv/ZzXHM= Original-Xref: usenet.stanford.edu gnu.emacs.help:199868 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:92135 Archived-At: Tassilo Horn 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? I think it just looks strange. 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. -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573