From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Jan_Dj=C3=A4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking. Date: Tue, 4 Sep 2012 10:31:46 +0200 Message-ID: References: <83392zf7bu.fsf@gnu.org> <504506E8.5070506@cs.ucla.edu> <83r4qieszx.fsf@gnu.org> <25F1A420-CE2F-432B-BDE3-3E973E1B2CC3@swipnet.se> <50459584.8020209@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346747532 13094 80.91.229.3 (4 Sep 2012 08:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 08:32:12 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , "emacs-devel@gnu.org" To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 10:32:13 2012 Return-path: Envelope-to: ged-emacs-devel@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 1T8oYO-0001Ns-I0 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 10:32:12 +0200 Original-Received: from localhost ([::1]:33896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8oYL-0007sv-O2 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2012 04:32:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8oYD-0007so-Qd for emacs-devel@gnu.org; Tue, 04 Sep 2012 04:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8oY7-0004Cu-FG for emacs-devel@gnu.org; Tue, 04 Sep 2012 04:32:01 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:37924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8oY7-0004Cg-8I for emacs-devel@gnu.org; Tue, 04 Sep 2012 04:31:55 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id D2CBC500D7 for ; Tue, 4 Sep 2012 10:26:05 +0200 (CEST) Original-Received: (qmail 11865 invoked by uid 89); 4 Sep 2012 08:31:30 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 4 Sep 2012 08:31:30 -0000 Original-Received: from [172.16.2.213] (gw01.ismobile.com [212.73.186.202]) by coolsville.localdomain (Postfix) with ESMTPSA id 8FD077FA05E; Tue, 4 Sep 2012 10:31:51 +0200 (CEST) In-Reply-To: <50459584.8020209@cs.ucla.edu> X-Mailer: iPhone Mail (9B206) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 83.140.103.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152984 Archived-At: Hello.=20 4 sep 2012 kl. 07:45 skrev Paul Eggert : > On 09/03/2012 10:29 PM, Jan Dj=C3=A4rv wrote: >> Emacs does not use const much. >=20 > It's typically easy to determine whether a local variable > is never changed once initialized, simply by reading the code. > So, for local variables, 'const' is typically more trouble than > it's worth, as it adds a bit of noise to the code > without much compensating value. >=20 I disagree. Given that Emacs have quite a lot of functions that are more tha= n a couple of hundred lines long, it is not typically easy. For smaller fun= ctions, it can be, but small functions sometimes becomes big. Jan D.=