unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* delete-selection-mode hard to turn off
@ 2008-01-01 23:12 jidanni
  2008-01-05  2:34 ` jidanni
  0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2008-01-01 23:12 UTC (permalink / raw)
  To: bug-gnu-emacs

We see
====
delete-selection-mode is a variable defined in `delsel.el'.
Setting this variable directly does not take effect[1];
either customize it (see the info node `Easy Customization')
or call the function `delete-selection-mode'.

delete-selection-mode is an interactive compiled Lisp function in `delsel.el'.
Toggle Delete Selection mode.
With prefix ARG, turn Delete Selection mode on if and only if ARG is
positive.[2]

[3]When Delete Selection mode is enabled, Transient Mark mode is also
enabled and typed text replaces the selection if the selection is
active.  Otherwise, typed text is just inserted at point regardless of
any selection.[4]
====

[1]: works just like [3]: when done in the current buffer, but NOT
when done from .emacs (http://jidanni.org/comp/.emacs). Should I put
it in find-file-hook? I do not wish to enter the customization
interface to fix this problem. My goal is behavior [4].

P.S., wording [2] gives no way to explicitly turn it OFF. One can only
hope nil works. emacs-version "22.1.1"




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: delete-selection-mode hard to turn off
  2008-01-01 23:12 delete-selection-mode hard to turn off jidanni
@ 2008-01-05  2:34 ` jidanni
  2008-01-06 16:23   ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2008-01-05  2:34 UTC (permalink / raw)
  To: bug-gnu-emacs

I have solved my problem. I find I must put (delete-selection-mode -1)
at the bottom of my 400 line http://jidanni.org/comp/.emacs file.
Putting it in the middle ends up getting it mysteriously toggled back on.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: delete-selection-mode hard to turn off
  2008-01-05  2:34 ` jidanni
@ 2008-01-06 16:23   ` martin rudalics
  0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2008-01-06 16:23 UTC (permalink / raw)
  To: jidanni; +Cc: bug-gnu-emacs

> I have solved my problem. I find I must put (delete-selection-mode -1)
> at the bottom of my 400 line http://jidanni.org/comp/.emacs file.
> Putting it in the middle ends up getting it mysteriously toggled back on.

And what happens when you put it around line 300?  Or, better, look
where it gets called from in the first place?  No part of GNU Emacs but
`pc-selection-mode' and CUA ever turn `delete-selection-mode' on (and
CUA does so iff it was turned on before), hence the culprit must be a
dubious package you obtained from somewhere else.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-06 16:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 23:12 delete-selection-mode hard to turn off jidanni
2008-01-05  2:34 ` jidanni
2008-01-06 16:23   ` martin rudalics

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).