From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14838@debbugs.gnu.org
Subject: bug#14838: 24.3.50; repeating next-line or previous-line is broken
Date: Fri, 12 Jul 2013 12:19:44 +0200 [thread overview]
Message-ID: <87ip0gozb3.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <83a9ls5csm.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Jul 2013 12:48:41 +0300")
On Fri, 12 Jul 2013 12:48:41 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Thu, 11 Jul 2013 23:25:05 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: 14838@debbugs.gnu.org
>>
>> > From: Stephen Berman <stephen.berman@gmx.net>
>> > 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
next prev parent reply other threads:[~2013-07-12 10:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 21:29 bug#14838: 24.3.50; repeating next-line or previous-line is broken Stephen Berman
2013-07-11 2:51 ` Eli Zaretskii
2013-07-11 10:04 ` Stephen Berman
2013-07-11 15:59 ` Eli Zaretskii
2013-07-11 18:51 ` Stephen Berman
2013-07-11 19:16 ` Eli Zaretskii
2013-07-11 20:04 ` Stephen Berman
2013-07-11 20:25 ` Eli Zaretskii
2013-07-12 9:48 ` Eli Zaretskii
2013-07-12 10:19 ` Stephen Berman [this message]
2013-07-12 10:35 ` Eli Zaretskii
2013-07-13 7:29 ` Eli Zaretskii
2013-07-13 13:15 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ip0gozb3.fsf@rosalinde.fritz.box \
--to=stephen.berman@gmx.net \
--cc=14838@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).