unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
To: xah lee <xah@xahlee.org>, 1120@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#1120: issues on (put 'insert-date 'delete-selection t)
Date: Thu, 09 Oct 2008 15:00:21 -0400	[thread overview]
Message-ID: <E1Ko0kH-00068m-Sv@fencepost.gnu.org> (raw)
In-Reply-To: <6ECA96C2-0CF2-47B2-82EE-3B6490ED6486@xahlee.org> (message from xah lee on Thu, 9 Oct 2008 00:45:10 -0700)

    For elisp programers who wish to write extentions where the command's  
    behaviors change depending on whether user has delete-selection-mode  
    on, what should they do? Check for mark-active and delete-selection- 
    mode before any call to the insert function?

If you really want to make behavior depend on those variables,
you need to check them.  Whether you check them before or after
calling `insert' is up to you.

But that seems like a strange thing to do.






      reply	other threads:[~2008-10-09 19:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08 16:55 bug#1120: issues on (put 'insert-date 'delete-selection t) xah lee
2008-10-09  2:59 ` Richard M. Stallman
2008-10-09  7:45   ` xah lee
2008-10-09 19:00     ` Richard M. Stallman [this message]

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=E1Ko0kH-00068m-Sv@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=1120@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=xah@xahlee.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).