Mercurial > hg > xemacs-beta
view man/lispref/mouse.texi @ 4539:061e030e3270
Fix some bugs in load-history construction, built-in symbol file names.
lib-src/ChangeLog addition:
2008-12-27 Aidan Kehoe <kehoea@parhasard.net>
* make-docfile.c (main): Allow more than one -d argument, followed
by a directory to change to.
(put_filename): Don't strip directory information; with previous
change, allows retrieval of Lisp function and variable origin
files from #'built-in-symbol-file relative to lisp-directory.
(scan_lisp_file): Don't add an extraneous newline after the file
name, put_filename has added the newline already.
lisp/ChangeLog addition:
2008-12-27 Aidan Kehoe <kehoea@parhasard.net>
* loadup.el (load-history):
Add the contents of current-load-list to load-history before
clearing it. Move the variable declarations earlier in the file to
a format understood by make-docfile.c.
* custom.el (custom-declare-variable): Add the variable's symbol
to the current file's load history entry correctly, don't use a
cons. Eliminate a comment that we don't need to worry about, we
don't need to check the `initialized' C variable in Lisp.
* bytecomp.el (byte-compile-output-file-form):
Merge Andreas Schwab's pre-GPLv3 GNU change of 19970831 here;
treat #'custom-declare-variable correctly, generating the
docstrings in a format understood by make-docfile.c.
* loadhist.el (symbol-file): Correct behaviour for checking
autoloaded macros and functions when supplied with a TYPE
argument. Accept fully-qualified paths from
#'built-in-symbol-file; if a path is not fully-qualified, return
it relative to lisp-directory if the filename corresponds to a
Lisp file, and relative to (concat source-directory "/src/")
otherwise.
* make-docfile.el (preloaded-file-list):
Rationalise some let bindings a little. Use the "-d" argument to
make-docfile.c to supply Lisp paths relative to lisp-directory,
not absolutely. Add in loadup.el explicitly to the list of files
to be processed by make-docfile.c--it doesn't make sense to add it
to preloaded-file-list, since that is used for purposes of
byte-compilation too.
src/ChangeLog addition:
2008-12-27 Aidan Kehoe <kehoea@parhasard.net>
* doc.c (Fbuilt_in_symbol_file):
Return a subr's filename immediately if we've found it. Check for
compiled function and compiled macro docstrings in DOC too, and
return them if they exist.
The branch of the if statement focused on functions may have
executed, but we may still want to check variable bindings; an
else clause isn't appropriate.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 27 Dec 2008 14:05:50 +0000 |
parents | 576fb035e263 |
children |
line wrap: on
line source
@c -*-texinfo-*- @c This is part of the XEmacs Lisp Reference Manual. @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. @c See the file lispref.texi for copying conditions. @setfilename ../../info/mouse.info @node Mouse @chapter The Mouse @cindex mouse * Mouse Position:: Asking where the mouse is, or moving it. @ignore @c Not in XEmacs. @node Mouse Tracking @section Mouse Tracking @cindex mouse tracking @cindex tracking the mouse (deleted) @end ignore @ignore @c These are not implemented yet. These functions change the screen appearance instantaneously. The effect is transient, only until the next ordinary XEmacs redisplay. That is ok for mouse tracking, since it doesn't make sense for mouse tracking to change the text, and the body of @code{track-mouse} normally reads the events itself and does not do redisplay. @defun x-contour-region window start end This function draws lines to make a box around the text from @var{start} to @var{end}, in window @var{window}. @end defun @defun x-uncontour-region window start end This function erases the lines that would make a box around the text from @var{start} to @var{end}, in window @var{window}. Use it to remove a contour that you previously made by calling @code{x-contour-region}. @end defun @defun x-draw-rectangle frame left top right bottom This function draws a hollow rectangle on frame @var{frame} with the specified edge coordinates, all measured in pixels from the inside top left corner. It uses the cursor color, the one used for indicating the location of point. @end defun @defun x-erase-rectangle frame left top right bottom This function erases a hollow rectangle on frame @var{frame} with the specified edge coordinates, all measured in pixels from the inside top left corner. Erasure means redrawing the text and background that normally belong in the specified rectangle. @end defun @end ignore @node Mouse Position @section Mouse Position @cindex mouse position @cindex position of mouse The functions @code{mouse-position}, @code{mouse-pixel-position}, @code{set-mouse-position} and @code{set-mouse-pixel-position} give access to the current position of the mouse. @defun mouse-position &optional device This function returns a list (@var{window} @var{x} . @var{y}) giving the current mouse window and position. The position is given in character cells, where @samp{(0, 0)} is the upper-left corner. @var{device} specifies the device on which to read the mouse position, and defaults to the selected device. If the device is a mouseless terminal or XEmacs hasn't been programmed to read its mouse position, it returns the device's selected window for @var{window} and @code{nil} for @var{x} and @var{y}. @end defun @defun mouse-pixel-position &optional device This function returns a list (@var{window} @var{x} . @var{y}) giving the current mouse window and position. The position is given in pixel units, where @samp{(0, 0)} is the upper-left corner. @var{device} specifies the device on which to read the mouse position, and defaults to the selected device. If the device is a mouseless terminal or XEmacs hasn't been programmed to read its mouse position, it returns the device's selected window for @var{window} and @code{nil} for @var{x} and @var{y}. @end defun @defun set-mouse-position window x y This function @dfn{warps the mouse} to the center of character position @var{x}, @var{y} in frame @var{window}. The arguments @var{x} and @var{y} are integers, giving the position in characters relative to the top left corner of @var{window}. @cindex warping the mouse @cindex mouse warping Warping the mouse means changing the screen position of the mouse as if the user had moved the physical mouse---thus simulating the effect of actual mouse motion. @end defun @defun set-mouse-pixel-position window x y This function @dfn{warps the mouse} to pixel position @var{x}, @var{y} in frame @var{window}. The arguments @var{x} and @var{y} are integers, giving the position in pixels relative to the top left corner of @var{window}. @end defun