From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.bugs Subject: bug#45052: 27.1; GDB completion moves point Date: Sat, 05 Dec 2020 13:10:46 +0100 Message-ID: <87im9g78s9.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11586"; mail-complaints-to="usenet@ciao.gmane.io" To: 45052@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 13:11:11 2020 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 1klWP9-0002ts-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 13:11:11 +0100 Original-Received: from localhost ([::1]:53686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klWP7-0007TS-Qa for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 07:11:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klWP0-0007TJ-CC for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 07:11:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klWP0-0002VO-4x for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 07:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klWOz-0003dq-SS for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 07:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Philip K." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2020 12:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45052 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.160717025913987 (code B ref -1); Sat, 05 Dec 2020 12:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Dec 2020 12:10:59 +0000 Original-Received: from localhost ([127.0.0.1]:46679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klWOx-0003dX-33 for submit@debbugs.gnu.org; Sat, 05 Dec 2020 07:10:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klWOv-0003dP-3E for submit@debbugs.gnu.org; Sat, 05 Dec 2020 07:10:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klWOu-0007T4-OK for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 07:10:56 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:56491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klWOr-0002Pd-5a for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 07:10:56 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2EB322400FC for ; Sat, 5 Dec 2020 13:10:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607170248; bh=vsqvzjLS70bkb0og8wut9Pwg7U4S321DfO6eUZfUx2Q=; h=From:To:Subject:Date:From; b=dhZlwFgPae5ugZQDbwCKb67MbVGaDqpZK4FH++iOhrU/1lK1V4yybSbfQMN3yr6qQ bE9ilON3PDvFuR2lqKg8uoiQH7n8cLUil3erO/dnZtxKpbVblNj/c4SuonRJglfa4p hdXnxHUk85ml94jo6yfN+eURl9Zjt8MTpOsJQ3ckFujdDy2zZxsJn6swQ4O8CjEBTi sAzivWubE80htV0kJ4FSSZ4WTzZbxZU/NNKtjFubCZqqwGqQQEFGVFdmrD6fmQcYNl IxP/dJAYz4Wq/mtNeTRnZjIaZIsDrdqqx5v4wXKXjtSJ+1cBzEyYqSMsVsA+q01UOR Kex6MljOM2tkg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cp7h74ZkRz9rxS for ; Sat, 5 Dec 2020 13:10:47 +0100 (CET) Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:195026 Archived-At: When I'm in GDB, and I try to invoke completion, the completion mechanism might move the point, and ultimately insert the completion at the wrong place. This issue only occurs when the point is currently in the last few lines of the window, so that when the completion pop-up appears, it is moved, while the buffer stays in the same place. One way to circumvent this problem is to use the mouse to select the completion. I've tested it with the default completion framework, but remember that the same issue also existed with other completion frameworks such as ivy. Steps to reproduce in emacs -Q (also tested on the master branch): 1. M-x gdb 2. Press enter a few times, so that the buffer can't fit into the window 3. Ensure that the point is in the last few lines (C-l) 4. Enter "l" and then press M-tab. The point should now have been moved. This is not expected, and not seen any other mode. In GNU Emacs 27.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.22, cairo version 1.16.0) of 2020-08-21 built on buildhw-x86-03.iad2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12009000 System Description: Fedora 33 (Workstation Edition) Recent messages: Quit [2 times] Mark set user-error: No window right from selected window M-RET is undefined Saving file /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h... Wrote /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h Saving file /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h... Wrote /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h Saving file /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h... Wrote /home/phi/doc/uni/cs/uebung/assignment2/lwt/lwt.h Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 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: hexl-follow-ascii: t editorconfig-mode: t TeX-PDF-mode: t global-magit-file-mode: t magit-file-mode: t magit-auto-revert-mode: t auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t flymake-mode: t yas-minor-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t display-time-mode: t electric-pair-mode: t recentf-mode: t save-place-mode: t savehist-mode: t show-paren-mode: t winner-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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: /home/phi/.emacs.d/elpa/0x0-0.4.1/0x0 hides /home/phi/.emacs.d/lisp/active/0x0-emacs/0x0 /home/phi/.emacs.d/lisp/active/clang-capf/clang-capf hides /home/phi/.emacs.d/elpa/clang-capf-1.2.0/clang-capf /home/phi/.emacs.d/elpa/jsonrpc-1.0.14/jsonrpc hides /usr/share/emacs/27.1/lisp/jsonrpc /home/phi/.emacs.d/elpa/flymake-1.0.9/flymake hides /usr/share/emacs/27.1/lisp/progmodes/flymake /home/phi/.emacs.d/elpa/project-0.5.2/project hides /usr/share/emacs/27.1/lisp/progmodes/project /home/phi/.emacs.d/elpa/xref-1.0.3/xref hides /usr/share/emacs/27.1/lisp/progmodes/xref Features: (shadow emacsbug misc skeleton dos-w32 find-cmd eglot array jsonrpc follow minibuf-eldef icomplete completion rfc2368 two-column timezone rmailsort rmailsum loadhist misterioso-theme cus-theme editorconfig-conf-mode conf-mode asm-mode gnus-fun lpr calc-stuff calc-vec calc-mtx calc-arith calc-aent calccomp calc-incom calc-undo find-dired filecache mailalias nroff-mode tramp-cmds python descr-text elfeed-link whitespace term/xterm xterm calc-comb animate org-clock mhtml-mode css-mode eww mm-url js sgml-mode htmlfontify htmlfontify-loaddefs presentation tar-mode ert ewoc face-remap autoload repeat tramp-cache tramp-sh apropos hideshow flow-fill mm-archive smiley gnus-cite gnus-async gnus-bcklg gnus-ml nndraft nnmh nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache rmailout latexenc sp-tutor tramp tramp-loaddefs trampver tramp-integration tramp-compat ls-lisp view ibuf-ext ibuffer ibuffer-loaddefs calc-yank calc-misc calc-alg calc-ext cc-awk wdired magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util markdown-mode prolog align perl-mode cperl-mode files-x url-cache elfeed-show elfeed-search magit-bookmark bookmark elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib url-queue xml-query ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-colview hi-lock dabbrev vc-annotate sh-script smie executable sort iso-transl make-mode help-at-pt ruler-mode hl-line hexl image-file rect vc-mtn vc-hg edebug reposition calc-menu calc calc-loaddefs calc-macs gdb-mi bindat gud eieio-opt speedbar sb-image ezimage dframe editorconfig-core editorconfig-core-handle editorconfig-fnmatch editorconfig clang-capf windmove tabify man pcmpl-unix preview tex-buf font-latex latex latex-flymake tex-ispell tex-style tex dbus texmathp tex-mode cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs diary-lib diary-loaddefs org-duration cal-iso org-element avl-tree ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum shr svg dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m org-agenda org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table org-keys org-loaddefs cal-menu calendar cal-loaddefs ol org-compat org-macs pulse log-view jka-compr avy quail color qp cl-print debug backtrace find-func help-fns radix-tree ffap 0x0 mail-extr rmailmm vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs slime-hyperdoc slime-asdf grep slime-quicklisp slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp cl slime-parse slime etags fileloop generator xref project arc-mode archive-mode noutline outline hyperspec vc vc-dispatcher flymake-cc macrostep-c cmacexp macrostep cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs magit-extras time-stamp bug-reference flyspell ispell magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy gsexp ghub url-http url-gw url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils magit-popup crm log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp advice async server dash char-fold misearch multi-isearch shell-command+ eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util term disp-table ehelp dired-aux mule-util vc-fossil vc-git diff-mode easy-mmode image-mode exif shell gnutls network-stream puny nsm rmc erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit epa-file epa derived epg epg-config auth-source-pass paredit checkdoc lisp-mnt flymake-proc flymake warnings yasnippet-classic-snippets cl-extra yasnippet help-mode init rx pcase dired-x dired dired-loaddefs erc-goodies erc thingatpt pp erc-loaddefs erc-backend erc-compat format-spec time sendmail hippie-exp elec-pair recentf tree-widget saveplace savehist paren winner gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date mail-utils mm-util mail-prsvr edmacro kmacro compile comint ansi-color ring cus-edit cus-start cus-load wid-edit clang-rename clang-include-fixer let-alist clang-format xml tex-site finder-inf slime-autoloads info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 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 loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1666556 659185) (symbols 48 84722 676) (strings 32 382880 92226) (string-bytes 1 15480523) (vectors 16 146107) (vector-slots 8 3044772 410910) (floats 8 2738 3803) (intervals 56 99725 9328) (buffers 1000 899)) -- Philip K.