X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/2013a2f955e4dc6edf9869767e9f5d70fbf9d69c..7199b6d4f8e8133459e45985f1eb49b25038d317:/lisp/rect.el diff --git a/lisp/rect.el b/lisp/rect.el index cece095088..e798b07b55 100644 --- a/lisp/rect.el +++ b/lisp/rect.el @@ -1,6 +1,6 @@ ;;; rect.el --- rectangle functions for GNU Emacs -*- lexical-binding:t -*- -;; Copyright (C) 1985, 1999-2013 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1999-2014 Free Software Foundation, Inc. ;; Maintainer: Didier Verna ;; Keywords: internal @@ -444,7 +444,8 @@ Activates the region if needed. Only lasts until the region is deactivated." (lambda () (rectangle-mark-mode -1))) (unless (region-active-p) (push-mark) - (activate-mark)))) + (activate-mark) + (message "Mark set (rectangle mode)")))) (defun rectangle--extract-region (orig &optional delete) (if (not rectangle-mark-mode) @@ -553,10 +554,10 @@ Activates the region if needed. Only lasts until the region is deactivated." (overlay-put ol 'after-string str)))) ((overlay-get ol 'after-string) (overlay-put ol 'after-string nil))) - (when (= leftcol rightcol) + (when (and (= leftcol rightcol) (display-graphic-p)) ;; Make zero-width rectangles visible! - (overlay-put ol 'after-string - (concat (propertize " " + (overlay-put ol 'after-string + (concat (propertize " " 'face '(region (:height 0.2))) (overlay-get ol 'after-string)))) (push ol nrol)