all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: help-gnu-emacs List <help-gnu-emacs@gnu.org>
Subject: Re: Selection region and delete
Date: Wed, 25 Jul 2012 22:25:01 +0200	[thread overview]
Message-ID: <21641522-F6D2-43EB-AA28-98F252F0A527@Web.DE> (raw)
In-Reply-To: <juovgv$tbn$1@speranza.aioe.org>


Am 25.07.2012 um 16:23 schrieb Juha Nieminen:

>> Is C-h k <delete key> producing the same description?
> 
> C-d (translated from <delete>) runs the command delete-char, which is
> an interactive built-in function in `C source code'.

OK, you've chosen C-d instead of BS. It should not make a difference, because when Delete Selection mode and Transient Mark mode are enabled *any* character produced by pressing some key should substitute the selected region with this character (or nothing in case of BS or C-d). The text report also makes certain that you are using GNU Emacs 23.x.

In an earlier eMail you mentioned:

>> If I add the line "(setq delete-selection-mode t)" to my .emacs,
>> then describe-variable says "Its value is t", and if I use nil instead
>> of t it says it's nil. In none of these cases does the delete key
>> function properly.

So you are making your tests with all your customisations active. This is real dirty work. Why can't you do yourself a big favour and launch GNU Emacs with -Q? On most Linux systems (those that I know) you can launch more than one Emacs. In X(11). In some terminal emulation it might be necessary to put the recent Emacs in the background – or just launch a second terminal with 'emacs -Q' in it! In that original and uncustomised version you then can use the *scratch* buffer to execute Elisp commands. For example one or two from your init files.

The first command is – well, actually you just could mark some text in *scratch* buffer! Start with doing so with the mouse. Now press some key! What happened to the selected region? Ohh-kay! You can undo, and then select again with the mouse. Now press BS (backspace) or C-d. What happened to the selected region?

Second test: mark a region with the keyboard (C-SPACE presumingly) and the press some key! What happened to the selected region? OK, again, you can undo and mark again a region with the keyboard. Now press BS or C-d. What happened to the selected region?

Aha, I see…

So just insert

	(delete-selection-mode t)

into the *scratch* buffer. Position the text cursor (point) into the word "delete-selection-mode". You can then type C-h v RET and also C-h f RET. The last step is to go to the end of the line, right of the closing parenthesis. And then press C-j – and nothing else!

(If you want you can check with C-h v the value of the variable delete-selection-mode.) Now perform the two test sets from above again (marking with mouse and marking with keyboard and then typing some character or BS or C-d with optional undoing in-between)! What happened? Did you write a log of what you performed and what happened when delete-selection-mode was the default (nil) and when it was enabled? Are the results different?

When they are not different, you have a very good reason to open a bug report at Suse. Or compile GNU Emacs 23.4 from source yourself – without need to install it anywhere – and perform the tests again. When they are still not different you have even more reason for a bug report at Suse/Novell. (Because it cannot be that GNU Emacs, *the* software, can behave so deviously.)

--
Greetings

  Pete

Theory and practice are the same, in theory, but, in practice, they are different.




  reply	other threads:[~2012-07-25 20:25 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23 12:01 Selection region and delete Juha Nieminen
2012-07-23 15:24 ` Barry Margolin
2012-07-23 15:52   ` Juha Nieminen
2012-07-23 19:59     ` Peter Dyballa
2012-07-23 20:05     ` jpkotta
2012-07-23 20:17       ` Peter Dyballa
2012-07-24  7:16       ` Juha Nieminen
     [not found]     ` <mailman.5453.1343073582.855.help-gnu-emacs@gnu.org>
2012-07-24  7:23       ` Juha Nieminen
2012-07-24  8:39         ` Peter Dyballa
2012-07-24 11:11         ` Andreas Röhler
     [not found]         ` <mailman.5487.1343128324.855.help-gnu-emacs@gnu.org>
2012-07-25  5:42           ` Juha Nieminen
2012-07-25  6:11     ` Juha Nieminen
2012-07-25  9:52       ` Peter Dyballa
     [not found]       ` <mailman.5554.1343209950.855.help-gnu-emacs@gnu.org>
2012-07-25  9:57         ` Juha Nieminen
2012-07-25 10:06           ` Peter Dyballa
     [not found]           ` <mailman.5555.1343210807.855.help-gnu-emacs@gnu.org>
2012-07-25 11:58             ` Juha Nieminen
2012-07-25 13:16               ` Peter Dyballa
2012-07-25 14:23             ` Juha Nieminen
2012-07-25 20:25               ` Peter Dyballa [this message]
     [not found]               ` <mailman.5606.1343247908.855.help-gnu-emacs@gnu.org>
2012-07-25 21:03                 ` Juha Nieminen
2012-07-25 21:27                   ` Peter Dyballa
     [not found]                   ` <mailman.5611.1343251677.855.help-gnu-emacs@gnu.org>
2012-07-26  5:30                     ` Juha Nieminen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21641522-F6D2-43EB-AA28-98F252F0A527@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.