release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since bd25f30 was
203dcda,
checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago
|
Make text_{before,after}_point use new form for editwin functions.
|
-
Property mode set to
100644
|
File size:
806 bytes
|
Rev | Line | |
---|
[cf26b72] | 1 | use warnings; |
---|
| 2 | use strict; |
---|
| 3 | |
---|
| 4 | =head1 NAME |
---|
| 5 | |
---|
| 6 | BarnOwl::Editwin |
---|
| 7 | |
---|
| 8 | =head1 DESCRIPTION |
---|
| 9 | |
---|
| 10 | Functions for interfacing with the BarnOwl editwin. Most of the |
---|
| 11 | functions in this module are defined in perlglue.xs; This module |
---|
| 12 | exists to provide Exporter hooks and documentation for them. |
---|
| 13 | |
---|
| 14 | =cut |
---|
| 15 | |
---|
| 16 | package BarnOwl::Editwin; |
---|
| 17 | use base qw(Exporter); |
---|
| 18 | |
---|
| 19 | our @EXPORT_OK = qw(text_before_point text_after_point replace |
---|
[d41294a] | 20 | point_move replace_region get_region |
---|
| 21 | save_excursion current_column point mark); |
---|
[2be605a] | 22 | our %EXPORT_TAGS = (all => \@EXPORT_OK); |
---|
[cf26b72] | 23 | |
---|
[c6ecf5c] | 24 | sub text_before_point { |
---|
| 25 | save_excursion { |
---|
[203dcda] | 26 | set_mark(); |
---|
| 27 | move_to_buffer_start(); |
---|
[c6ecf5c] | 28 | get_region(); |
---|
| 29 | } |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | sub text_after_point { |
---|
| 33 | save_excursion { |
---|
[203dcda] | 34 | set_mark(); |
---|
| 35 | move_to_buffer_end(); |
---|
[c6ecf5c] | 36 | get_region(); |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | |
---|
[cf26b72] | 40 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.