From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#14838: 24.3.50; repeating next-line or previous-line is broken Date: Fri, 12 Jul 2013 12:19:44 +0200 Message-ID: <87ip0gozb3.fsf@rosalinde.fritz.box> References: <87ip0ije8n.fsf@gmx.net> <83bo69vmev.fsf@gnu.org> <8761whxvjc.fsf@rosalinde.fritz.box> <838v1dulyl.fsf@gnu.org> <87zjttx741.fsf@rosalinde.fritz.box> <83ppuo6h73.fsf@gnu.org> <87vc4gyibs.fsf@rosalinde.fritz.box> <83mwps6dzy.fsf@gnu.org> <83a9ls5csm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373624412 29672 80.91.229.3 (12 Jul 2013 10:20:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 10:20:12 +0000 (UTC) Cc: 14838@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 12:20:13 2013 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 1UxaSS-0002JN-Ce for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 12:20:12 +0200 Original-Received: from localhost ([::1]:53918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxaSR-0002n8-To for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 06:20:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxaSM-0002kj-Vu for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 06:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxaSJ-00072c-NW for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 06:20:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxaSJ-00072M-Kc for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 06:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UxaSI-0000Z3-PU for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 06:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 10:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14838 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14838-submit@debbugs.gnu.org id=B14838.13736243952151 (code B ref 14838); Fri, 12 Jul 2013 10:20:02 +0000 Original-Received: (at 14838) by debbugs.gnu.org; 12 Jul 2013 10:19:55 +0000 Original-Received: from localhost ([127.0.0.1]:49677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxaSA-0000Yc-Qv for submit@debbugs.gnu.org; Fri, 12 Jul 2013 06:19:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56407) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxaS9-0000YH-94 for 14838@debbugs.gnu.org; Fri, 12 Jul 2013 06:19:54 -0400 Original-Received: from rosalinde.fritz.box ([89.245.64.169]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M1zFf-1U3YQF3wfD-00u4We; Fri, 12 Jul 2013 12:19:45 +0200 In-Reply-To: <83a9ls5csm.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Jul 2013 12:48:41 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:aoasvOnBJlJtp37Vy8ApRT9cKHaxEgn0Pycfdp1TBsJwnfJW1+Y vkFgDT1PFfLKMMy8Nt39lvJC72WZ4ojlVf8UoCkhcNOkesq2Kb59+LMcF5zoUrqdAP1/Z0L FDx0HWCvRAn8V4t6KvZAYDObYyJuDNkMAIgV7+1N9Toh9jtG1l9CqNQjLL4ct9yDMCA230q ipdroMlTO58N5M37zSCsQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:76278 Archived-At: On Fri, 12 Jul 2013 12:48:41 +0300 Eli Zaretskii wrote: >> Date: Thu, 11 Jul 2013 23:25:05 +0300 >> From: Eli Zaretskii >> Cc: 14838@debbugs.gnu.org >> >> > From: Stephen Berman >> > Cc: jan.h.d@swipnet.se, 14838@debbugs.gnu.org >> > Date: Thu, 11 Jul 2013 22:04:07 +0200 >> > >> > > I don't believe the aref part. I think the real culprit is font-info. >> > > Let's conduct an experiment: if you modify default-font-height so that >> > > it always just calls frame-char-height, does the problem go away? >> > >> > Yep, that it does. And no trace messages are emitted. >> >> Thanks, I will come up with a change that will refrain from calling >> font-info unless it's strictly necessary. > > I'm unsure what test(s) to use to detect reliably the situation where > the font of the default face is different from the frame's default. > The two candidates I thought about are: > > . See if face-remapping-alist is non-nil and includes an association > for the 'default' face > > . Compare > > (frame-parameter 'font) > > with > > (face-font 'default) > > Regarding the 1st candidate, I'm not sure the condition will always > hold whenever the font of the default face was modified in some way. > > Regarding the 2nd candidate, I'm not sure (frame-parameter 'font) will > always return a non-trivial value. Can it return nil, for example? > > Any other suggestions? > > Stephen, can you test both of the above in your case? With emacs -Q, where the problem with holding down C-n does not happen (when I have no ~/.Xresources file): face-remapping-alist => nil (frame-parameter nil 'font) => "-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1" (face-font 'default) => "-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1" and after setting the default font to one that does cause the problem: face-remapping-alist => nil (frame-parameter nil 'font) => "-Adobe-Adobe Courier-normal-normal-normal-*-14-*-*-*-m-90-iso10646-1" (face-font 'default) => "-Adobe-Adobe Courier-normal-normal-normal-*-14-*-*-*-m-90-iso10646-1" I guess that's not very helpful :-( Steve Berman