Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Problem with Save shortcut

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Problem with Save shortcut


Chronological Thread 
  • From: Alvaro Tejero Cantero <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Problem with Save shortcut
  • Date: Sun, 4 Mar 2012 05:50:19 +0000
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of address@hidden designates 10.236.187.5 as permitted sender) smtp.mail=address@hidden; dkim=pass header.i=address@hidden

Dear Lukasz,

Can you try commenting out lines 454-465 in
src/src/Plugins/Qt/QTMWidget.cpp (refers to svn version 4862; for
reference copied below)?.

This chunk was added quite recently probably with the aim of improving
the Windows port. Commenting it out solves my problems with Alt and
Meta, although the issue with the duplicate keybindings remain. I will
try to have a look at this at another time.

Massimiliano (QT port dev) is aware of this, so there will be a fix to
the mainline soon.

if (event->text().count() == 1) {
QChar c= event->text()[0];
if (c.isPrint()) { // not a control character or dead key or modifier
char ac=c.toAscii();
if (ac && ac != ' ') { // a true ascii printable
r= ac;
if (DEBUG_QT) cout << "ascii key= " <<r << "\n";
the_gui->process_keypress(wid, r, texmacs_time());
return;
}
}


-á.



On Wed, Feb 29, 2012 at 18:47, Alvaro Tejero Cantero <address@hidden> wrote:
> Dear Lukasz!
>
> Thanks, you remind me why I switched back to the X version a few
> months ago. It was the save shortcut.
>
> Displaying shortcuts in uppercase is a new convention, I think. It
> also confused the hell out of me the first time I saw it.
>
> I have compiled recently svn version 4862 (fairly recent). There the
> Alt and Meta keys are not recognized reliably. In one session Alt was
> recognized, but only for some keychords such as Alt-e - enumerate, and
> not for others such as Alt-m -emphasize. Lately no single combination
> seems to work.
>
> My Qt is version:
>
> $qmake -version
> QMake version 2.01a
> Using Qt version 4.7.2 in /usr/lib
>
> Under Ubuntu 11.04. What distro and QT version do you have? This might
> help Massimiliano to debug the problem. You can also activate
> Tools->Debugging tool and then in the newly-visible menu
> Debug->Keyboard. Events will appear in the console if you launched
> TeXmacs from one.
>
> Thanks for reporting this,
>
> -á.
>
>
>
> On Wed, Feb 29, 2012 at 18:33, Lukasz Stafiniak <address@hidden> wrote:
>> On Thu, Sep 29, 2011 at 10:26 PM, Joris van der Hoeven
>> <address@hidden> wrote:
>>> On Mon, Sep 26, 2011 at 05:02:53PM +0200, Alvaro Tejero Cantero wrote:
>>>> Over the course of a session, TeXmacs ceases responding to the save
>>>> command and outputs the following message to the console
>>>>
>>>> QAction::eventFilter: Ambiguous shortcut overload: F3
>>>>
>>>> Saving via the icon bar or the menus continues to work.
>>>>
>>>> I have observed this consistently during the last days but cannot find
>>>> a pattern.
>>>
>>> Might this be a bug in the Qt version?
>>> Do you have the same bug in the X11 version?
>>
>> Hmm, have this been investigated? I've just started using a Qt version
>> for the first time, and I have the same problem, but it is more
>> serious, e.g. Qt does not display lower-case letters in shortcut
>> reminders, some shortcuts worked for some time and stopped (e.g. M-!
>> and M-?), some only work as single case (e.g. M-f produces superscript
>> and S-M-f produces the letter F), I got twice:
>>
>> QAction::eventFilter: Ambiguous shortcut overload: Meta+T, N, T
>>
>> but now pressing M-t has no effect (produces letter t), etc. I have
>> qt4. I guess there's something wrong with my install.
>>
>> Regards.



Archive powered by MHonArc 2.6.19.

Top of Page