www.delorie.com/gnu/docs/elisp-manual-21/elisp_293.html   search  
Buy the book!

GNU Emacs Lisp Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.5 Adjusting Point After Commands

It is not easy to display a value of point in the middle of a sequence of text that has the display or composition property. So after a command finishes and returns to the command loop, if point is within such a sequence, the command loop normally moves point to the edge of the sequence.

A command can inhibit this feature by setting the variable disable-point-adjustment:

Variable: disable-point-adjustment
If this variable is non-nil when a command returns to the command loop, then the command loop does not check for text properties such as display and composition, and does not move point out of sequences that have these properties.

The command loop sets this variable to nil before each command, so if a command sets it, the effect applies only to that command.

Variable: global-disable-point-adjustment
If you set this variable to a non-nil value, the feature of moving point out of these sequences is completely turned off.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003