source:
perl/lib/BarnOwl/Editwin.pm
@
bcde942d
Last change on this file since bcde942d was 203dcda, checked in by Nelson Elhage <nelhage@mit.edu>, 14 years ago | |
---|---|
|
|
File size: 806 bytes |
Line | |
---|---|
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 |
20 | point_move replace_region get_region |
21 | save_excursion current_column point mark); |
22 | our %EXPORT_TAGS = (all => \@EXPORT_OK); |
23 | |
24 | sub text_before_point { |
25 | save_excursion { |
26 | set_mark(); |
27 | move_to_buffer_start(); |
28 | get_region(); |
29 | } |
30 | } |
31 | |
32 | sub text_after_point { |
33 | save_excursion { |
34 | set_mark(); |
35 | move_to_buffer_end(); |
36 | get_region(); |
37 | } |
38 | } |
39 | |
40 | 1; |
Note: See TracBrowser
for help on using the repository browser.