all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* kill-region must change value of (point)?
@ 2002-11-20 22:22 seberino
  0 siblings, 0 replies; 2+ messages in thread
From: seberino @ 2002-11-20 22:22 UTC (permalink / raw)


If I kill-region to delete some portion of
buffer that includes where I'm at right
now ( denoted by (point) right? ) then
there is no way to avoid changing value
of (point) because I must be moved somewhere
else after the deletion right?

Chris
-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: kill-region must change value of (point)?
@ 2002-11-21  0:00 Bingham, Jay
  0 siblings, 0 replies; 2+ messages in thread
From: Bingham, Jay @ 2002-11-21  0:00 UTC (permalink / raw)


Chris,

You are correct.  If point is somewhere within the region it is "moved" to be between the last character before the region that was not deleted, and the first character after the region that was not deleted.  If it follows the region, its value is changed (reduced) by the amount of text removed.  If it is before the region it remains unchanged.
You can read all about this in the emacs lisp reference manual.

-_
J_)
C_)ingham
.    HP - NonStop Austin Software & Services - Software Quality Assurance
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire.          -Dr. George W. Crane-

 -----Original Message-----
From: 	seberino@spawar.navy.mil [mailto:seberino@spawar.navy.mil] 
Sent:	Wednesday, November 20, 2002 4:22 PM
To:	help-gnu-emacs@gnu.org
Subject:	kill-region must change value of (point)?

If I kill-region to delete some portion of
buffer that includes where I'm at right
now ( denoted by (point) right? ) then
there is no way to avoid changing value
of (point) because I must be moved somewhere
else after the deletion right?

Chris
-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Road, Room A339
San Diego, CA 92152-6147
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________


_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

end of thread, other threads:[~2002-11-21  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 22:22 kill-region must change value of (point)? seberino
  -- strict thread matches above, loose matches on Subject: below --
2002-11-21  0:00 Bingham, Jay

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.