From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#18793: 24.4; zero width rectangular selection displaces text Date: Wed, 22 Oct 2014 11:32:58 -0300 Message-ID: <82ppdk41k5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413987441 20844 80.91.229.3 (22 Oct 2014 14:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 14:17:21 +0000 (UTC) To: 18793@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 16:17:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xgwix-0007Kk-Lt for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 16:17:15 +0200 Original-Received: from localhost ([::1]:57799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwix-00033o-3T for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 10:17:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwip-00031O-Fg for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgwik-0000mY-IV for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:17:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwik-0000m3-Ez for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xgwij-0000Y0-UI for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Oct 2014 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18793 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.14139873882047 (code B ref -1); Wed, 22 Oct 2014 14:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2014 14:16:28 +0000 Original-Received: from localhost ([127.0.0.1]:59904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgwiB-0000Wv-7B for submit@debbugs.gnu.org; Wed, 22 Oct 2014 10:16:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47698) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgwi8-0000Wg-Bp for submit@debbugs.gnu.org; Wed, 22 Oct 2014 10:16:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgwhy-0000UC-2Q for submit@debbugs.gnu.org; Wed, 22 Oct 2014 10:16:18 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwhy-0000U7-0K for submit@debbugs.gnu.org; Wed, 22 Oct 2014 10:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwht-0002d2-61 for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:16:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgwhl-0000PA-32 for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:16:09 -0400 Original-Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:39183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgwhk-0000NG-OK for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 10:16:01 -0400 Original-Received: by mail-qg0-f53.google.com with SMTP id q107so2560858qgd.40 for ; Wed, 22 Oct 2014 07:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=GbIoDGozPIDXcJa8ABj6o2nehbTB9c6TACjQxxsyDgw=; b=oWdVRw3PgAy35SEbnhuY0A2AWyXLn6o2csrEF6gOhGW8jFzZSYJ8kdWED4iBTG1HaG xrHvBWH+3cXXhmJtKKWpaf3QH7FWIR3quNinJ56GPDw7+Tn9HUxIG+FULWvst18bRTro DpdlQhBGdKnGKNiLK2cnpscU9fmaYMvx1Pa9MmxV2TQ0S9Bm/CIFnfAqBgZ/qkRSQgUD SubbGsIBsLOaGhP/MAOUli9K01dEoNQB/0gP35RawZOTXeTIweXt3n25WSNMrelmMQL3 BbAl8A2VkCD49ha8Bha3Hj+Q3iTjEdqeTIAXEJmbY4W3N/xfNncAokNqZ13nPvg+eQ32 056g== X-Received: by 10.224.47.2 with SMTP id l2mr41359218qaf.28.1413987355788; Wed, 22 Oct 2014 07:15:55 -0700 (PDT) Original-Received: from carlos ([190.216.58.35]) by mx.google.com with ESMTPSA id k3sm13720204qay.1.2014.10.22.07.15.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Oct 2014 07:15:54 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94911 1) Put the point at the beginning of the following sequence of a's. 2) Start a rectangular selection with C-x Space. 3) Move the point one char to the right. 4) Move it one char to the left so that it returns to the left margin. 5) Repeat 3 and 4 a number of times. aaaaaaaaaaa Do you see how the sequences of a's moves back and forward? This is not nice and the example is not that artificial. Having lines separated by empty lines is very common, so: 1) Put the point at the beginning of the following sequence of a's. 2) Start a rectangular selection with C-x Space. 3) Move the point one char to the right to make the selection width = 1. 4) Move the point down 5 times to extend the selection up to the line of c's. aaaaaaaaaaa bbbbbbbbbbb ccccccccccc Text looks like jelly, doesn't it? I understand that having a visual indicator of the empty selection is a good thing but what about the following alternatives: a) Keep the thin line near the fringe even when the selection is not zero width, so no displacement will happen. Or, b) Use the fringe instead of the buffer. In GNU Emacs 24.4.1 (i686-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-10-22 on carlos Windowing system distributor `The X.Org Foundation', version 11.0.11502000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LC_COLLATE: C value of $LC_TIME: es_AR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Article Minor modes in effect: show-paren-mode: t shell-dirtrack-mode: t yas-global-mode: t yas-minor-mode: t ido-ubiquitous-mode: t ido-everywhere: t winner-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-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 buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x k C-x SPC C-g C-SPC C-x SPC C-g M-x r e p o r t - e m a c s Recent messages: byte-code: Beginning of buffer Contacting host: www.google.com.ar:80 byte-code: End of buffer [4 times] Mark set Mark set (rectangle mode) Quit End of buffer [2 times] scroll-down-command: Beginning of buffer Mark set Rectangle-Mark mode enabled Quit Load-path shadows: ~/.emacs.d/lisp/rmail hides /usr/share/emacs/24.4/lisp/mail/rmail Features: (shadow emacsbug sendmail rect url-queue timezone shr-color color url-http url-gw url-auth eww mm-url shr sort smiley gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml disp-table gnus-topic nndraft nnmh nnfolder utf-7 gnutls network-stream starttls nnimap parse-time tls utf7 netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache google-contacts-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source google-contacts-message google-contacts xml url-cache url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core password-cache url-vars google-oauth gnus-start gnus-spec gnus-int gnus-range message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit vc-git epa-file epa derived epg server paredit edmacro kmacro paren cl-macs ob-python ob-R org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell pcomplete ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d compile ess-tracebug format-spec ess-roxy hideshow ess-help ess-developer ess-r-args eldoc ess-s-l ess ess-inf comint ansi-color ess-mode ess-noweb-mode ess-utils time-date ess-custom executable ess-compat ess-site yasnippet help-mode cl gv ido-ubiquitous cl-loaddefs cl-lib advice help-fns imenu-anywhere imenu ido windmove winner ring info easymenu package epg-config wombat-theme 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 8 329590 34438) (symbols 24 43603 0) (miscs 20 317 1004) (strings 16 96587 8119) (string-bytes 1 3029362) (vectors 8 43899) (vector-slots 4 1544164 30648) (floats 8 797 571) (intervals 28 539 279) (buffers 512 31) (heap 1024 70848 1737))