From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nathanael Schweers Newsgroups: gmane.emacs.help Subject: Re: setting line-length for mediawiki-mode? Date: Fri, 17 Mar 2017 20:45:33 +0100 Message-ID: <87pohfoffm.fsf@mailbox.org> References: <8737edupvl.fsf@skimble.plus.com> <20170316175107.GA16002@workstation> <87ziglaqqz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489779972 24552 195.159.176.226 (17 Mar 2017 19:46:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Mar 2017 19:46:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, hector To: Alex Kost Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 17 20:46:07 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coxp0-0004xE-JV for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2017 20:45:58 +0100 Original-Received: from localhost ([::1]:50516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coxp6-0005GI-HJ for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Mar 2017 15:46:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coxof-0005G1-8i for help-gnu-emacs@gnu.org; Fri, 17 Mar 2017 15:45:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coxoc-0002Qs-7H for help-gnu-emacs@gnu.org; Fri, 17 Mar 2017 15:45:37 -0400 Original-Received: from mx1.mailbox.org ([80.241.60.212]:40456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coxob-0002Q9-Tj for help-gnu-emacs@gnu.org; Fri, 17 Mar 2017 15:45:34 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 1857F45DC8; Fri, 17 Mar 2017 20:45:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:in-reply-to:date:date:references:subject:subject :from:from:received; s=mail20150812; t=1489779925; bh=D4V7eZXyg8 rW8QaMLFgQsWJHEAyxhzcUrqZL2JfXIP4=; b=adkY4bbCDwm+g0xOd56BJEqvpm a453OMOfmbcAl1AMC6ffeMeWxE6csVgUJRuEmBYcYh13MRuPYy4xd800HBZP8xpr C7YSKzIYFb1qwSY+nrtg/vwx8EsGyHon0YI0OvMgpb1X6SBo5cY2PwC/+rC/+fnn RDEaQ9d7QvKXRcIcr7t+GAgP0IAP9qmdBKtmUDwVmwvEyY2nmFqvHJammBrP5Hei lXp5UKTmkzenoQZn3BqJaihj33dUaLFwPlHs2hz+8aIARvp3bI08qu1TpHbnLEpX sKBSSVqz5QHV0A3cRQnAdr92JDfO98ShswNoEZoPm1xg2xpL9gyp2hH0y+eg== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id y4DfwwuEx_V4; Fri, 17 Mar 2017 20:45:25 +0100 (CET) In-Reply-To: <87ziglaqqz.fsf@gmail.com> (Alex Kost's message of "Thu, 16 Mar 2017 23:52:36 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.241.60.212 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112597 Archived-At: Alex Kost writes: Just a small remark: If I recall correctly, it=E2=80=99s better to function-quote function arguments, so this code: > (add-hook 'mediawiki-mode-hook 'some-stuff-for-mediawiki) should rather look like this: (add-hook 'mediawiki-mode-hook #'some-stuff-for-mediawiki) This has the benefit of adding some compiler warning in case it cannot be known that the function will be defined. If I=E2=80=99m not entirely mistaken, it might even be good for performance= , as the function value of the passed symbol (in the first form) has to be looked up every time it=E2=80=99s called, while the second form gives the function object directly. Take this last piece of =E2=80=9Cadvice=E2=80=9C= with a grain of salt though. In any case, #' is read syntax for function-quote, just as ' is read syntax for quote. -- Nathanael Schweers