Opened 10 years ago

Closed 10 years ago

#134 closed defect (fixed)

perl extensions can confuse the editwin

Reported by: spang@mit.edu Owned by:
Priority: minor Milestone:
Component: internals Keywords:
Cc:

Description

The attached code will, after being run, no longer allow editing text in the editwin. You can still C-c abort or C-d send.

Change History (3)

comment:1 in reply to: ↑ description Changed 10 years ago by spang@mit.edu

Replying to spang@…:

The attached code will, after being run, no longer allow editing text in the editwin. You can still C-c abort or C-d send.

Adding attachments doesn't seem to work. Inlining:

package TestCase; use BarnOwl::Editwin qw(:all);

sub confuse_editwin {

move_to_buffer_start(); replace_region("I'm trying to confuse the editwin"); move_to_buffer_end();

}

BarnOwl::new_command('confuse-editwin' => \&confuse_editwin); BarnOwl::bindkey(edit => 'C-u' => command => 'confuse-editwin');

1;

comment:2 Changed 10 years ago by nelhage@mit.edu

package TestCase; 
use BarnOwl::Editwin qw(:all);

sub confuse_editwin {
    move_to_buffer_start(); 
    replace_region("I'm trying to confuse the editwin");
    move_to_buffer_end();
}

BarnOwl::new_command('confuse-editwin' => \&confuse_editwin); 
BarnOwl::bindkey(edit => 'C-u' => command => 'confuse-editwin');

comment:3 Changed 10 years ago by nelhage@mit.edu

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.