Package: emacs-goodies-el
Version: 29.0-1
Severity: normal
In markdown-mode, if I select a region with the mouse and run
blockquote-region, the region is blockquoted. But if I select
a region with the keyboard (C-space, move) and run blockquote-region,
the region is not blockquoted. The code of blockquote-region is:
(defun blockquote-region ()
"Blockquote an entire region."
(interactive)
(if (and (boundp 'transient-mark-mode) transient-mark-mode mark-active)
(perform-replace "^" "> " nil 1 nil nil nil (region-beginning)
(region-end))))
I'm not an elisp hacker, but it looks to me like the problem may be
the check against transient-mark-mode. If I remove that "if" entirely,
blockquote-region behaves as expected; i.e., I suggest using the
following code:
(defun blockquote-region ()
"Blockquote an entire region."
(interactive)
(perform-replace "^" "> " nil 1 nil nil nil (region-beginning) (region-end)))
This is more in line with how other emacs commands work (e.g.,
sort-lines or comment-region).
Daniel
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages emacs-goodies-el depends on:
ii bash 3.1dfsg-8 The GNU Bourne Again SHell
ii emacs [emacsen] 22.1+1-2.3 The GNU Emacs editor (metapackage)
ii emacs21 [emacsen] 21.4a+1-5.3 The GNU Emacs editor
ii emacs22-gtk [emacsen] 22.1+1-2.3 The GNU Emacs editor (with GTK use
Versions of packages emacs-goodies-el recommends:
ii dict 1.10.2.dfsg-3.2 Dictionary Client
ii perl-doc 5.8.8-12 Perl documentation
ii wget 1.10.2-3 retrieves files from the web
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]