This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 64625

Summary: Cannot define Emacs kill-line
Product: editor Reporter: _ ttran <ttran>
Component: -- Other --Assignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: blocker CC: jjancura
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ ttran 2005-09-19 00:34:28 UTC
In Emacs there is a common key C-k which deletes from the current position to
the end of line and puts the text into the kill ring (clipboard).  M-0 C-k
deletes from the current position to the beginnning of line.

I was told to define macros and map these keys to them.  I did emacs-kill-line
and emacs-kill-line-backward.

Troubles:

- I want these two macros to work for all text/* mime-types.  Currently it seems
that I would have to deine them for each mime-type

- Whatever I do I couldn't bind them to C-k.  It keeps doing next-matching-word,
even though I don't see it in the Options dialog
Comment 1 Martin Balin 2005-09-20 13:36:34 UTC
Not a Beta stopper.
Comment 2 Miloslav Metelka 2005-09-26 11:52:49 UTC
The CutToLineEndAction and CutToLineBeginAction will be added.
Comment 3 Miloslav Metelka 2005-09-27 16:52:12 UTC
The actions were added and tested. By default they are not bound to any action
yet but Hanz should probably assign them a shortcut in the emacs profile.
Fixed in trunk:
Checking in libsrc/org/netbeans/editor/ActionFactory.java;
/cvs/editor/libsrc/org/netbeans/editor/ActionFactory.java,v  <--  ActionFactory.java
new revision: 1.68; previous revision: 1.67
done
Checking in libsrc/org/netbeans/editor/BaseKit.java;
/cvs/editor/libsrc/org/netbeans/editor/BaseKit.java,v  <--  BaseKit.java
new revision: 1.136; previous revision: 1.135
done
Checking in libsrc/org/netbeans/editor/Bundle.properties;
/cvs/editor/libsrc/org/netbeans/editor/Bundle.properties,v  <--  Bundle.properties
new revision: 1.62; previous revision: 1.61