Project

General

Profile

Feature #381

Emacs User Interface: Easier binding for sending a line to cocoa-5

Added by Anna Maria Bigatti almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
EmacsUI
Target version:
Start date:
26 Jun 2013
Due date:
% Done:

100%

Estimated time:
8.00 h
Spent time:

Description

set an easier binding (easier than C-c C-l) for sending a line to cocoa-5.
Macaulay-2 mode sets f11, but that's unconvenient on Macintoshes.
I prefer C-return

2014-04 conclusion: many possibilities implemented C-RET, M-RET (also C-c RET)


Related issues

Related to CoCoA-5 - Bug #433: EMACS UI: trouble with sending a long lineClosed2014-02-06

History

#1 Updated by Anna Maria Bigatti almost 11 years ago

  • Category set to EmacsUI
  • Status changed from New to Resolved
  • Assignee set to Anna Maria Bigatti
  • Target version set to CoCoA-5.0.9
  • % Done changed from 0 to 50

These are the two bindings:
C-return (works in graphical emacs) [note: one movement]
C-c return (works both in text and graphical emacs)

Emanuela De Negri tested it (first one) and much prefers it to the "old" C-c C-l.

I cannot have C-RET showing in the menu: C-c RET is automatically chosen ... don't understand why.
And I don't understand why it does not work in the "crude" emacs. I wonder whether defining C-RET is a bit "naughty", but I admit it is very nice!!

Needs to be tested on linux and windows (I have some guinea-pigs in mind ;-)

#2 Updated by Anna Maria Bigatti almost 11 years ago

  • Status changed from Resolved to Feedback
  • % Done changed from 50 to 90

There was a problem with Emacs 23:
cua-mode had the binding C-RET for "cua-rectangle-mark-key", so I had to overwrite it.
(not trivial to understand how...)

I collected enough feedback on all systems.
JAA is the only one missing ;-)

#3 Updated by Anna Maria Bigatti over 10 years ago

negative feedback, unfortunately:
The problem arises if cua-mode (i.e. C-c C-v mode) is loaded after cocoa-mode.
(typical on linux which does not load cua-mode by default)
thinking....

#4 Updated by Anna Maria Bigatti over 10 years ago

  • Status changed from Feedback to In Progress
  • % Done changed from 90 to 80

#5 Updated by John Abbott over 10 years ago

I think it works fine (but then I probably don't use cua-mode).

It works also with emacs-24.3.

Any chance of closing this issue soon?

#6 Updated by John Abbott about 10 years ago

Could you also define some other key sequences? For instance,
C-c RET
C-c C-RET

The advantage of defining both is that if you don't press the CTRL key correctly it still does what you want!

Can we close this soon?

#7 Updated by Anna Maria Bigatti about 10 years ago

  • Target version changed from CoCoA-5.0.9 to CoCoA-5.1.0 Easter14

#8 Updated by Anna Maria Bigatti about 10 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 80 to 90

Final testing (thanks Oscar Fernández Ramos!)

There are problems when loading CUA-mode (for copying and pasting with C-c, C-v) after loading cocoa5-mode because C-RET is overwritten by CUA.
But now we have both C-RET and M-RET (M stands for Meta/Alt) so there is a choice!

#9 Updated by John Abbott almost 10 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100
  • Estimated time set to 8.00 h

Oscar reports that it works for him.
Closing.

Also available in: Atom PDF