Hi,

Yes, the "preference" part is set as Emacs mode. And I have found "C-x *"
were correctly listed after reading Scheme files (to show this, I put "cout
<< "s:" << s << LF" right before the returning point of the function
"apply_wildcards (string s, hashmap<string,tree> w)" in the file
"src/Texmacs/Server/tm_config.cpp". After the initialization, it prints all
the shortcuts, which shows the correct Emacs key mapping).

The event process indicates the C-x was just "eaten" by something. I don't
know. I thought It was QKeySequence::Cut which may be interrupted by Qt by
default, but no.

Best,
Tian-Min


On Wed, Sep 4, 2013 at 2:23 PM, Miguel de Benito Delgado <
m.debenit...@gmail.com> wrote:

> Hi,
>
>   this seems to be specific to Linux (haven't tested yet), because under
> MacOS I see the key presses being reported when I activate qt debugging (I
> just pushed some changes which should make the debugging output more
> manageable, btw.) I typed some text, then activated qt debugging and
> selected the text. This is the output on the console:
>
> keypressed
> key  : 16777250
> text :
> count: 0
> meta
> keypressed
> key  : 88
> text :
> count: 0
> meta
> key press: C-x
> keypressed
> key  : 72
> text : h
> count: 1
> key press: h
>
> --
> Miguel de Benito.
>
>
> On 4 Sep, 2013, at 11:14, Tian-Min Yan <timy.t...@gmail.com> wrote:
>
> > Hi all,
> >
> > I found all key sequences with C-x *, mostly used in Emacs mode,  do not
> work. I built the application with the latest svn version, but this problem
> has existed for a long time since Qt version came to the mainstream. I am
> wondering if other people have the similar trouble, it appears to me nobody
> concerned about this issue before and I don't know if this problem is
> specific to me. I am working on Ubuntu 13.04. The program was built with Qt
> 4.8.4 and Guile 1.8.8.
> >
> > I tried to locate the problem. In the initialization part, the Scheme
> code and main architecture (tm_config.cpp and edit_keyboard.cpp) work fine.
> All shortcut sequences are enumerated properly, which are referred by
> apply_wildcards (string s, hashmap<string,tree> w) without any problem.
> >
> > When I tried to type something, either the 'Ctrl' or 'x' is immediately
> caught by the application. The problem occurs when I type their
> combination, it seems QTMWidget::keyPressEvent (QKeyEvent* event) never
> catches the Ctrl-x, 'QKeyEvent* event' does not report anything.
> >
> > In order to rule out the possible conflict between the system key
> binding and TeXmacs, I built a Qt demo application to process keyboard
> event. Ctrl-x works just fine. Now I have no idea why Ctrl-x just slips in
> TeXmacs for no reason... I appreciate any help from you.
> >
> > PS. The funny thing was when I type 'C-x C-c', or 'C-x k', it really
> works to close window.
> >
> > Best regards,
> > Tian-Min
> > _______________________________________________
> > Texmacs-dev mailing list
> > Texmacs-dev@gnu.org
> > https://lists.gnu.org/mailman/listinfo/texmacs-dev
>
>
> _______________________________________________
> Texmacs-dev mailing list
> Texmacs-dev@gnu.org
> https://lists.gnu.org/mailman/listinfo/texmacs-dev
>
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to