From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: emacs-devel@gnu.org
Subject: Re: BUG REPORT: "delsel.el"
Date: Sun, 02 Mar 2003 15:33:54 -0500 [thread overview]
Message-ID: <200303022033.h22KXsT02320@rum.cs.yale.edu> (raw)
In-Reply-To: b3m98s$28t$1@main.gmane.org
> Hi,
>
> I gave the `kill-line' symbol a property of 'kill for 'delete-selection.
>
> After the region is killed, "delsel.el" attempts to deactivate the region, but
> of course in transient-mark-mode buffer modification deactivates the region
> automatically, leading to an error.
What error do you get ?
> I've got a patch (see atached), I don't
> know if it's too simplistic, though. I'm no lisp expert.
I don't understand the actual problem (I need the answer to the above
question for that), but a better patch along the lines of what you
sent is the one attached.
Stefan
--- delsel.el.~1.29.~ Mon Nov 19 01:36:36 2001
+++ delsel.el Sun Mar 2 15:31:34 2003
@@ -75,8 +75,7 @@
(if killp
(kill-region (point) (mark))
(delete-region (point) (mark)))
- (setq mark-active nil)
- (run-hooks 'deactivate-mark-hook)
+ (deactivate-mark)
t)
(defun delete-selection-pre-hook ()
next prev parent reply other threads:[~2003-03-02 20:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 0:07 BUG REPORT: "delsel.el" Le Wang
2003-03-02 20:33 ` Stefan Monnier [this message]
2003-03-02 22:30 ` Le Wang
2003-03-04 18:22 ` Richard Stallman
2003-03-04 19:28 ` Le Wang
2003-03-03 18:58 ` Richard Stallman
2003-03-03 23:08 ` Le Wang
2003-03-05 20:47 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200303022033.h22KXsT02320@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).