GNU bug report logs - #10820
24.0.93; semantic-mode: M-n and M-p not working after `C-c , <SPC>'

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Volker Sobek <reklov@HIDDEN>; dated Wed, 15 Feb 2012 20:26:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Feb 2012 20:25:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 15 15:25:28 2012
Received: from localhost ([127.0.0.1]:41840 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RxlPm-00071b-GV
	for submit <at> debbugs.gnu.org; Wed, 15 Feb 2012 15:25:27 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48658)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <reklov@HIDDEN>) id 1RxlPf-00071H-5z
	for submit <at> debbugs.gnu.org; Wed, 15 Feb 2012 15:25:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <reklov@HIDDEN>) id 1RxlNt-0000AX-Gk
	for submit <at> debbugs.gnu.org; Wed, 15 Feb 2012 15:23:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RECEIVED_FROM_WINDOWS_HOST
	autolearn=no version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:48893)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <reklov@HIDDEN>) id 1RxlNt-0000AT-FJ
	for submit <at> debbugs.gnu.org; Wed, 15 Feb 2012 15:23:25 -0500
Received: from eggs.gnu.org ([140.186.70.92]:41374)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <reklov@HIDDEN>) id 1RxlNs-0003Gc-3D
	for bug-gnu-emacs@HIDDEN; Wed, 15 Feb 2012 15:23:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <reklov@HIDDEN>) id 1RxlNq-00009z-OU
	for bug-gnu-emacs@HIDDEN; Wed, 15 Feb 2012 15:23:23 -0500
Received: from blu0-omc1-s18.blu0.hotmail.com ([65.55.116.29]:24678)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <reklov@HIDDEN>) id 1RxlNq-00009u-L3
	for bug-gnu-emacs@HIDDEN; Wed, 15 Feb 2012 15:23:22 -0500
Received: from BLU0-SMTP385 ([65.55.116.7]) by blu0-omc1-s18.blu0.hotmail.com
	with Microsoft SMTPSVC(6.0.3790.4675); 
	Wed, 15 Feb 2012 12:23:21 -0800
X-Originating-IP: [87.168.85.85]
X-Originating-Email: [reklov@HIDDEN]
Message-ID: <BLU0-SMTP385BD89E14ADE6AF952FDAAAA7D0@HIDDEN>
Received: from [192.168.178.21] ([87.168.85.85]) by BLU0-SMTP385.phx.gbl over
	TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); 
	Wed, 15 Feb 2012 12:23:20 -0800
Subject: 24.0.93; semantic-mode: M-n and M-p not working after `C-c , <SPC>'
From: Volker Sobek <reklov@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Date: Wed, 15 Feb 2012 21:23:17 +0100
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) 
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
X-OriginalArrivalTime: 15 Feb 2012 20:23:20.0557 (UTC)
	FILETIME=[A8B669D0:01CCEC1F]
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

The Semantic Manual says in chapter 2.1.1 Semantic mode user commands:

  `C-c, <SPC>' Display a list of possible completions for the symbol
       at point (`semantic-complete-analyze-inline').  This also
       activates a special set of keybindings for choosing a
       completion: <RET> accepts the current completion, `M-n' and
       `M-p' cycle through possible completions, <TAB> completes as
       far as possible and then cycles, and `C-g' or any other key
       aborts the completion.  *Note Smart Completion::.

and later in chapter 2.4.1 Smart Completion:

   -- Command: semantic-complete-analyze-inline This command is bound
       to `C-c , <SPC>' when Semantic mode is enabled (*note Semantic
       mode user commands::).  It displays a list of possible
       completions for the symbol at point, and activates a special
       set of keybindings for choosing a completion.

       You can type <RET> to accept the current completion, `M-n' and
       `M-p' to cycle through the possible completions, <TAB> to
       complete as far as possible and then cycle through completions,
       and either `C-g' or any other key to abort the completion.

       This command is similar to the completion performed by Semantic
       Idle Completions mode.  The main difference is that it is
       called explicitly, whereas Semantic Idle Completions mode
       completes during idle time (*note Idle Completions Mode::).

However, after enabling semantic-mode, the key bindings M-n, M-p don't
work after `C-c , <SPC>'; they are undefined and do nothing.

These keys do work with semantic-complete-analyze-inline-idle though.
The difference between the functions
semantic-complete-inline-analyzer-idle and
semantic-complete-inline-analyzer is the default displayor class:

  (defcustom semantic-complete-inline-analyzer-displayor-class
    'semantic-displayor-traditional
    "*Class for displayor to use with inline completion."
    :group 'semantic
    :type semantic-complete-inline-custom-type
    )

  (defcustom semantic-complete-inline-analyzer-idle-displayor-class
    'semantic-displayor-ghost
    "*Class for displayor to use with inline completion at idle time."
    :group 'semantic
    :type semantic-complete-inline-custom-type
    )


So doing

  (setq semantic-complete-inline-analyzer-displayor-class
	semantic-displayor-ghost)

enables M-n and M-p after `C-c , <SPC>'.

I didn't read more of the code, so I don't know whether

1) M-n and M-p are supposed to work with
   semantic-displayor-traditional, but are broken.

2) The default for semantic-complete-inline-analyzer-displayor-classor
   is wrong.

3) The manual is wrong.

4) ?

In GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.8)
 of 2012-02-15 on r61
Windowing system distributor `Fedora Project', version 11.0.11104000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: de_DE.utf8
  value of $LC_NUMERIC: de_DE.utf8
  value of $LC_TIME: de_DE.utf8
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t








Acknowledgement sent to Volker Sobek <reklov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10820; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.