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.
Summary: | support emacs set-mark-command (C-Space, C-@) | ||
---|---|---|---|
Product: | editor | Reporter: | enebo <enebo> |
Component: | Key bindings | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | blocker | CC: | pohl, sandipchitale |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
enebo
2007-03-29 19:45:27 UTC
This would need adding new set-mark-command action and updating the existing cut/copy actions to look for the mark and use it if there is one. Is the marked position shown in the text somehow? Some emacs do highlight from last set mark, but most do not from my memory (MacOS Emacs is what I have been using the most lately and it does). I guess its behavior is very similiar to left clicking and dragging a region. Personally, I do not think it matters much one way or the other. Eclipses equivalent of set-mark does not highlight and when I used Eclipse I never missed the lack of highlighting. Now that I think about it, this action could be quite useful for the macro support in Netbeans. set-mark (non-interactive version of set-mark-command) is used extensively in Emacs to create powerful editing features in Emacs Lisp. I suspect a set-mark action in emacs could be combined with lets say a search action to create all sorts of interesting region marking macros. set-mark-command is, indeed an essential part of the macro system in emacs. It makes a large class of complex, repetitive editing tasks very easy. I just went looking for it in Netbeans, and was disappointed to find that it isn't there yet. As for how it looks, I suggest that it look no different than left-click-drag selection looks. The "mark" would merely be either the beginning or end of the selected region (depending on which direction the cursor moved after the mark was set). Yeah, I think NetBeans should behave similarly to Emacs with transient-mark-mode enabled; there's really no benefit in making the selection invisible. Along with this I would like to have exchange mark and dot. I want to use it so that I can grow (fine tune) the selection on either end using the shift-select mechanism. As a new user of Netbeans but a long-time user of full-featured text editors, this does seem to melike *the* missing piece of the Netbeans experience -- it's virtually impossible to define macros of any sophistication without some kind of mark in text you're editing. Maybe I don't need Netbeans after all. Every year I start up Netbeans and try this out and go back to the Eclipse, which now has a really good Emacs pluggin. Hi, I created an emacs keybindgs plugin for NetBeans. It supports set-mark feature. It is available on NetBeans Plugin Portal. see http://plugins.netbeans.org/plugin/62006/ |