[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-w3m:08264] `insert' deactivates active region

From: Masatake YAMATO
Subject: Re: [emacs-w3m:08264] `insert' deactivates active region
Date: Fri, 08 Jul 2005 09:44:30 +0900 (JST)

> Please read and try the following Lisp code.  In the *testing*
> buffer, you may see you cannot activate the region by using
> C-SPC and C-f, etc.

I could reproduce this bug with your example.

> Furthermore, M-w cannot be used to copy
> text, either.

Here is a work-around:

(let ((buffer (get-buffer-create "*testing*")))
  (pop-to-buffer buffer)
  (insert "Hello World\n")
  (goto-char (point-min))
  (set (make-local-variable 'transient-mark-mode) t)
  (set (make-local-variable 'mark-even-if-inactive) t)
  (add-hook 'post-command-hook
            (lambda nil
                (insert "foo")
            nil t))

Masatake YAMATO

reply via email to

[Prev in Thread] Current Thread [Next in Thread]