From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12463: 24.2; pos-visible-in-window-p gets slower over time Date: Sat, 22 Sep 2012 16:20:56 -0400 Message-ID: References: <87wqzs1a4c.fsf@queen.i-did-not-set--mail-host-address--so-tickle-me> <83mx0n22p0.fsf@gnu.org> <87d31jcqce.fsf@gnu.org> <4023344.MyoQPQRfcJ@queen> <87sjac1185.fsf@gnu.org> <878vc4ylr6.fsf@gnu.org> <83pq5fyglu.fsf@gnu.org> <87d31fd8zi.fsf@gnu.org> <83fw6by2qz.fsf@gnu.org> <83a9wjxqhs.fsf@gnu.org> <83sjaawnlf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348345284 17880 80.91.229.3 (22 Sep 2012 20:21:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 20:21:24 +0000 (UTC) Cc: lekktu@gmail.com, cyd@gnu.org, jwalt@garni.ch, 12463@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 22:21:28 2012 Return-path: Envelope-to: geb-bug-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 1TFWCc-0001hY-0W for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 22:21:26 +0200 Original-Received: from localhost ([::1]:50861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFWCX-00057e-5Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 16:21:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFWCU-00057K-OE for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 16:21:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFWCT-0003d6-R1 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 16:21:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFWCT-0003d2-NB for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 16:21:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFWE9-0006bG-LL for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12463 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12463-submit@debbugs.gnu.org id=B12463.134834536325336 (code B ref 12463); Sat, 22 Sep 2012 20:23:01 +0000 Original-Received: (at 12463) by debbugs.gnu.org; 22 Sep 2012 20:22:43 +0000 Original-Received: from localhost ([127.0.0.1]:49639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFWDr-0006ab-BQ for submit@debbugs.gnu.org; Sat, 22 Sep 2012 16:22:43 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49043) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFWDq-0006aU-CN for 12463@debbugs.gnu.org; Sat, 22 Sep 2012 16:22:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCocG/2dsb2JhbABEtBGBCIIWAQVWIxALNBIUGA0kiCG6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="199731304" Original-Received: from 76-10-135-6.dsl.teksavvy.com (HELO pastel.home) ([76.10.135.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Sep 2012 16:20:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 535CC593DE; Sat, 22 Sep 2012 16:20:56 -0400 (EDT) In-Reply-To: <83sjaawnlf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Sep 2012 09:58:20 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64779 Archived-At: >> >> Sorry, can't remember. Probably because I generally prefer passing >> >> arguments explicitly over passing them via dynamic binding. >> > We have gobs of functions in Emacs that access global variables like >> > Vdynamic_library_alist. I don't think one more function will change >> > anything. >> The question is not "global or not" but "let-bound or not". >> If it's generally accessed as a global var, that's perfectly fine. >> If it's generally let-bound, I prefer an explicit argument. > Sorry, I don't follow. We are discussing C code, so how do you mean > "let-bound"? If you mean by using specbind, then no, it isn't > let-bound, it's a global variable that always has the same value as it > had when the last cons cell was added to it. I'm saying: is the variable usually set once and left alone, or is it usually let-bound around the call to the function that uses the variable? In the case of dynamic-library-alist it seems it's never let-bound, so it's probably better to access it directly as a global var, rather than pass it as a parameter. Stefan