From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: nvp Newsgroups: gmane.emacs.bugs Subject: bug#46999: 28.0.50; semantic-idle-summary-mode moves point during eldoc Date: Sun, 7 Mar 2021 20:31:27 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002898fe05bcfc659d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7257"; mail-complaints-to="usenet@ciao.gmane.io" To: 46999@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 02:33:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJ4lm-0001nY-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 02:33:14 +0100 Original-Received: from localhost ([::1]:39696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJ4ll-0005wN-7f for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Mar 2021 20:33:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ4kc-0005tr-FL for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 20:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58479) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJ4kc-0006ln-1a for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 20:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJ4kb-0006sO-Tn for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 20:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nvp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 01:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46999 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161516710726408 (code B ref -1); Mon, 08 Mar 2021 01:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2021 01:31:47 +0000 Original-Received: from localhost ([127.0.0.1]:41792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ4kN-0006rr-8J for submit@debbugs.gnu.org; Sun, 07 Mar 2021 20:31:47 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ4kM-0006ri-Cm for submit@debbugs.gnu.org; Sun, 07 Mar 2021 20:31:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ4kL-0005pV-OU for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 20:31:45 -0500 Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:45738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJ4kH-0006hl-Oo for bug-gnu-emacs@gnu.org; Sun, 07 Mar 2021 20:31:45 -0500 Original-Received: by mail-ot1-x330.google.com with SMTP id d9so7673190ote.12 for ; Sun, 07 Mar 2021 17:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6ZmNQxNUTJ5ejeCbAs4NXXTDbiOw+t3qQ9OBM0GsxYg=; b=DcI/7Z4aFS8WvcnOiDFmdvHD8omKfh3UtADxO3Sn+nEMchnxeBAClYm7INxlXnQ5RE msjLg9U1A525snLgLVs0Hvlyki5KGwsMggT47s6406mJ0OM/uIeYjkXGfgxiNOJzBOkL HV2uJbgfNheEjdcUptgAIcyE+8+vRw5kyWObEhUtVMN6b30iFGlZ+jkfUuQaBZ+Eo83G 8C3vRtnRDYiptk3IyTcJXTIEFZgLl3ma4axPv63B3a7ViLCqykIArAZG51W9KN2w/o+X LO3p/Av0egpuEl1Uj2eNvFy/9qkKUGuFEuBbLpi+L2ajVdxpEyjUJWMeg0lUyIbKyeYM HQOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6ZmNQxNUTJ5ejeCbAs4NXXTDbiOw+t3qQ9OBM0GsxYg=; b=p0x2pdAsxmizdSjLUoy2XaRp5hLW5tlQYPpy7ES3kbztuH7JOxIf6ucNK8oH7rRqgE rd5dF9/5EqD7cNqXz45BfDcZXaC7RuVG/QG6JAAbxx8lfZXjwSrexB58uy91Lcs28Quu DfmhnMIulAk9TsqpvUOFVNHF3Yfp4fH9flsxBS64OYlwaEKiu5dTy9s/+CntjaMHRqsM +lGmE8gFCpP+q1qyD8Vtv/J+7aDlKKAg6s/9e+RIbv0PKYY+ag1jNolysumB+K7E+RMF UjmIBs+a++4osPim+bh0i+DZOuzS8naecf9UsgrZhWfGcPjJtlW0OkO482aaxqzFtupX lLuA== X-Gm-Message-State: AOAM5326VWL4/9G2B2Jrm1egLqHb5GpUS7N0s5jsM09vIYIVFeeMnQet 6YSqVWnWZ/XBhAb2wtd2e0yE1mO+OMiCgCgFPBtV+iXkNTNdig== X-Google-Smtp-Source: ABdhPJw+JflEBW5J8OhPc6V1P9+sfEPDeGX5oKt/Glj9FL6t3gq9HCQ4BATzBcHWDbvfaY+KbhWBHfXX7KSGeNS1RUo= X-Received: by 2002:a9d:4719:: with SMTP id a25mr9946800otf.101.1615167098492; Sun, 07 Mar 2021 17:31:38 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=noah.v.peart@gmail.com; helo=mail-ot1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201794 Archived-At: --0000000000002898fe05bcfc659d Content-Type: text/plain; charset="UTF-8" When `semantic-idle-summary-mode` is active in c-mode and the cursor is on an empty line, the cursor is moved to the next non-empty line when `semantic-idle-summary-mode`'s eldoc function executes. I think this was introduced after commit 2987376bc3 with the introduction of the `eldoc-documentation-functions` hook. >From emacs -Q 1. open a buffer in c-mode 2. enable `semantic-mode`, `eldoc-mode`, and `semantic-idle-summary-mode` 3. Move cursor to empty line, eg. '|' in int main(int argc, char *argv[]) { | return 0; } 4. Idle momentarily to allow eldoc to run In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-03-07 built on noah-M51AC Repository revision: c1f4a16cf3d71aa3f67c1c209e7060dc71afc545 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.04.2 LTS Configured using: 'configure --prefix=/usr/local --with-modules --with-xwidgets' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-idle-summary-mode: t semantic-idle-scheduler-mode: t semantic-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source password-cache json map text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils semantic/edit cus-start cus-load semantic/tag-file cl-extra help-mode semantic/db-file data-debug ring cedet-files semantic/bovine/c semantic/decorate/include semantic/decorate/mode semantic/decorate pulse hideif semantic/bovine/c-by semantic/lex-spp semantic/bovine/gcc semantic/dep semantic/bovine semantic/analyze/refs semantic/db-find semantic/db-ref semantic/db-mode semantic/idle semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db eieio-base cl-seq seq semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic pp semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cconv eieio-core cl-macs gv eieio-loaddefs mode-local find-func cedet cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 110450 13191) (symbols 48 14119 1) (strings 32 36471 2341) (string-bytes 1 1299327) (vectors 16 21234) (vector-slots 8 275385 9904) (floats 8 31 340) (intervals 56 255 0) (buffers 992 12)) --0000000000002898fe05bcfc659d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When `semantic-idle-summary-mode` is active in c-mode and = the
cursor is on an empty line, the cursor is moved to the next
non-e= mpty line when `semantic-idle-summary-mode`'s eldoc
function execute= s. I think this was introduced after commit
2987376bc3 with the introduc= tion of the
`eldoc-documentation-functions` hook.

From emacs -Q=C2=A0 1. open a buffer in c-mode
=C2=A0 2. enable `semantic-mode`, `e= ldoc-mode`, and
=C2=A0 =C2=A0 =C2=A0`semantic-idle-summary-mode`
=C2= =A0 3. Move cursor to empty line, eg. '|' in

=C2=A0 =C2=A0 i= nt main(int argc, char *argv[]) {
=C2=A0 =C2=A0 =C2=A0 | =C2=A0
=C2= =A0 =C2=A0 =C2=A0 return 0;
=C2=A0 =C2=A0 }
=C2=A0 4. Idle momentaril= y to allow eldoc to run


In GNU Emacs 28.0.50 (build 1, x86_64-pc= -linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
=C2=A0of 2021-03= -07 built on noah-M51AC
Repository revision: c1f4a16cf3d71aa3f67c1c209e7= 060dc71afc545
Repository branch: master
Windowing system distributor = 'The X.Org Foundation', version 11.0.12009000
System Description= : Ubuntu 20.04.2 LTS

Configured using:
=C2=A0'configure --pre= fix=3D/usr/local --with-modules --with-xwidgets'

Configured feat= ures:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPE= G JSON
LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG = SOUND
THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZL= IB

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2= =A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-= unix

Major mode: C/*l

Minor modes in effect:
=C2=A0 global= -semanticdb-minor-mode: t
=C2=A0 global-semantic-idle-scheduler-mode: t<= br>=C2=A0 semantic-idle-summary-mode: t
=C2=A0 semantic-idle-scheduler-m= ode: t
=C2=A0 semantic-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 globa= l-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-= mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode:= t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 aut= o-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-comp= ression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode= : t
=C2=A0 abbrev-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired= -loaddefs
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail<= br>rmail-loaddefs auth-source password-cache json map text-property-search<= br>time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231
mai= labbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util= mail-prsvr mail-utils semantic/edit cus-start cus-load
semantic/tag-fil= e cl-extra help-mode semantic/db-file data-debug ring
cedet-files semant= ic/bovine/c semantic/decorate/include
semantic/decorate/mode semantic/de= corate pulse hideif
semantic/bovine/c-by semantic/lex-spp semantic/bovin= e/gcc semantic/dep
semantic/bovine semantic/analyze/refs semantic/db-fin= d semantic/db-ref
semantic/db-mode semantic/idle semantic/analyze semant= ic/sort
semantic/scope semantic/analyze/fcn semantic/db eieio-base cl-se= q seq
semantic/format ezimage semantic/tag-ls semantic/find semantic/ctx= t
semantic/util-modes semantic/util semantic pp semantic/tag semantic/le= x
semantic/fw eieio byte-opt bytecomp byte-compile cconv eieio-core
c= l-macs gv eieio-loaddefs mode-local find-func cedet cc-mode cc-fonts
cc-= guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-l= oaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook
vc-= hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd
tool= -bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomme= nt text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-b= ar rfn-eshadow isearch easymenu timer select scroll-bar
mouse jit-lock f= ont-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-g= eneric cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-vi= et lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak cze= ch european ethiopic indian cyrillic chinese
composite charscript charpr= op case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-prelo= aded nadvice button loaddefs faces
cus-face macroexp files window text-p= roperties overlay sha1 md5 base64
format env code-pages mule custom widg= et hashtable-print-readable
backquote threads xwidget-internal dbusbind = inotify lcms2
dynamic-setting system-font-setting font-render-setting ca= iro
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)
Memory information:
((conses 16 110450 13191)
=C2=A0(symbols 48= 14119 1)
=C2=A0(strings 32 36471 2341)
=C2=A0(string-bytes 1 1299327= )
=C2=A0(vectors 16 21234)
=C2=A0(vector-slots 8 275385 9904)
=C2= =A0(floats 8 31 340)
=C2=A0(intervals 56 255 0)
=C2=A0(buffers 992 12= ))
--0000000000002898fe05bcfc659d--