From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Barrett Newsgroups: gmane.emacs.bugs Subject: bug#24554: 24.5; kill-ring-save fails to give visual feedback on first run, but does on the second Date: Tue, 27 Sep 2016 08:00:30 -0400 Message-ID: <87ponpo8m9.fsf@blazemonger.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1474978188 7893 195.159.176.226 (27 Sep 2016 12:09:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 12:09:48 +0000 (UTC) Cc: dbarrett@blazemonger.com To: 24554@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 27 14:09:42 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1borCV-0008VH-E2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 14:09:31 +0200 Original-Received: from localhost ([::1]:50203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1borCV-0006cs-Oi for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Sep 2016 08:09:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor4N-0006JL-M9 for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bor4I-00027O-AS for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor4I-00027K-6X for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bor4I-0000hG-0w for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Barrett Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2016 12:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14749776562656 (code B ref -1); Tue, 27 Sep 2016 12:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Sep 2016 12:00:56 +0000 Original-Received: from localhost ([127.0.0.1]:37033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bor4B-0000gm-LT for submit@debbugs.gnu.org; Tue, 27 Sep 2016 08:00:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bor49-0000gZ-9W for submit@debbugs.gnu.org; Tue, 27 Sep 2016 08:00:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bor3z-00022v-Hg for submit@debbugs.gnu.org; Tue, 27 Sep 2016 08:00:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor3z-00022a-EC for submit@debbugs.gnu.org; Tue, 27 Sep 2016 08:00:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor3u-0005xw-5d for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:00:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bor3q-0001zL-3t for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:00:38 -0400 Original-Received: from jet38.hasweb.com ([72.29.78.191]:43042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bor3p-0001yl-UN for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:00:34 -0400 Original-Received: from pool-108-26-184-63.bstnma.fios.verizon.net ([108.26.184.63]:60250 helo=snorkack.blazemonger.com) by jet38.hasweb.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bor3m-000142-Od for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2016 08:00:30 -0400 Original-Received: from snorkack (localhost [127.0.0.1]) by snorkack.blazemonger.com (Postfix) with ESMTPS id 4672525000E8; Tue, 27 Sep 2016 08:00:30 -0400 (EDT) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jet38.hasweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - blazemonger.com X-Get-Message-Sender-Via: jet38.hasweb.com: authenticated_id: dbarrett@blazemonger.com X-Authenticated-Sender: jet38.hasweb.com: dbarrett@blazemonger.com X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123716 Archived-At: When you run emacs in its own X window, the kill-ring-save command fails to give visual feedback of the point and mark, but ONLY THE FIRST TIME you run it on a region. This inconsistency is confusing and makes the user think that he mistyped the command. Subsequent runs of kill-ring-save work properly. 1. Run "emacs -Q --debug-init" so emacs opens in its own window. In the scratch buffer, type any line of text. 2. Position the point at the beginning of the line you typed, and set the mark (set-mark-command). 3. Move the point to the end of the line and press M-w (kill-ring-save). 4. Notice that the cursor does NOT provide visual feedback by "blinking" the point and mark. THIS IS THE BUG. 5. Now type M-w (kill-ring-save) a second time. This time, the cursor DOES blink the point and mark to provide visual feedback. This remains true for all subsequent runs of kill-ring-save on this region, until you move point or mark. Possible important detail: The problem behavior is different if you add the "-nw" option when running emacs (say, within KDE's Konsole). In this case, the region formed in step 3 gets HIGHLIGHTED in reverse-video when you move the cursor to end of line, which provides visual feedback of a different kind. The first kill-ring-save makes the highlighting disappear. When emacs is run in its own window -nw, the region does not appear highlighted. Perhaps in this case, emacs "thinks" the highlighting is present and therefore doesn't bother to "blink" the point and mark. This is in the stock emacs 24.5 package distributed with Ubuntu 16.04 LTS (Xenial). The problem did not occur in the previous version of Ubuntu (15.10). In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 16.04.1 LTS Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-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 Recent messages: Loading 00debian-vars...done Loading /etc/emacs/site-start.d/50a2ps.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort gnus-util mail-extr warnings emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils edmacro kmacro cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76238 5810) (symbols 48 18562 0) (miscs 40 47 100) (strings 32 11574 4949) (string-bytes 1 327206) (vectors 16 9502) (vector-slots 8 389350 11073) (floats 8 71 234) (intervals 56 217 7) (buffers 960 12) (heap 1024 26473 1596)) --