See commentary in rebox2.el.
lewang / rebox2 Goto Github PK
View Code? Open in Web Editor NEWemacs package for seemlessly creating, editing, removing boxes
emacs package for seemlessly creating, editing, removing boxes
I set (delete-selection-mode t)
in my .emacs
, but after installing rebox2
package, rebox-yank
will use C-y
which is for built-in yank
, (delete-selection-mode t)
configuration works with yank
but not works with rebox-yank
. and I cannot use (put 'rebox-yanl 'disabled t)
to disable rebox-yank
, even it is once disabled, C-y
shortkey won't work.
So my solution is, put (define-key rebox-mode-map [(control y)] nil)
after rebox2 configuration, then the command rebox-yank
shortkey is cleared, the weird thing is I cannot even execute rebox-yank
using M-x
after that, it just pastes blank. Now I got yank
back, I don't need rebox-yank
anyway
So my advice is, when you define the rebox-yank
in rebox2 package, try to check if the delete-selection-mode
is set or not and do the appropriate actions. Then I don't need to add the ...rebox-mode-map...
line and jsut use your rebox-yank
command(shortkey).
Hi!
Rebox used to leave a space after a trailing period when boxing comments. The current version does not. Maybe you could add that as an option. Just to be clear, currently, we get
where
would be nice. I find it lets the comments "breathe" a little bit.
Great work otherwise!
I'm trying to use Rebox2 for Fortran programming (yes, I know...), and since Fortran 90 uses "!" as comment char, Rebox2 doesn't work. Looking at the code it seems that allowing rebox-language-character-alist or even better use the mode's comment char (if possible) instead of hardcoding the possible chars.
Le Wang? Hello!
Not really an "issue" with rebox2. I just stumbled on rebox2.el today (while looking for boxquote.el, as suggested by someone on the Org mode mailing list), and see you are doing great things with this old code of mine :-). Thanks for salvaging it! François
P.S. If you happen to like Python, you might be a bit curious about rebox.py, which is in the contrib/ directory of Pymacs. But your work likely obsoletes it. That's very OK!
When the lines in the comment box is increasing, typing the Space
key after words or just pure continual Space
keys which is replaced by the rebox-space
will make Emacs more and more laggy.
So my advice is, use rebox-space
just around the boarder, not in the middle of the box.
Please fix the bug...
I see you've been adding options for the stuff I mentioned I needed. Thank you! I had expected to struggle with this myself: you'll have certainly done a much better job, and much sooner than I could have done.
However... if I byte-compile rebox2.el and try doing any refilling, I see the error above. This doesn't happen if I don't byte-compile - which is therefore an obvious workaround - but I figured you'd probably want to know.
To repro:
emacs -q rebox2.el
Emacs-Lisp -> byte compile and load
Goto "Hi, I'm a box"
M-x rebox-fill
Cheers
When rebox-mode
is enabled you cannot delete the active region with <DEL> (usually bound to a backward-delete-char
command). Instead only the character directly before point is deleted. I currently get around this issue by avoiding rebox-mode
. Instead I directly bind it's most useful command rebox-dwim
to a key sequence.
When using emacs 24.3 loading rebox2 cause, the following message "felt is an obsolete macro (as of 24.3); use either cl-flet' or
cl-letf' to be issued.
Hello and thanks for this useful package. I have made my own comment style for C++ like this:
“/_//__”
“ box123456 “
“_********/”
The problem I have found is that in order to move the box, say a bit to the right, I have to move each line individually. This does not happen with the other comment styles, where the box is moved as a whole. Any ideas what is wrong? Thanks in advance!
Commit 822d73d ("enable auto-fill as first item of action in rebox-mode") broke auto-fill.
Per documentation at http://www.gnu.org/software/emacs/elisp/html_node/Auto-Filling.html, normal-auto-fill-function is defined as the "function to use for auto-fill-function, if and when Auto Fill is turned on.". So it needs setting before auto-fill function is turned on, not after.
So the fix is to turn on auto-fill-function after setting normal-auto-fill-function. I can confirm that stuff that doesn't work without that change does work with it.
If I can figure out how github works I may submit a patch.
Hi,
As I can read in the .el file, this should be version 0.6. Can you make a release and tag a version ? It would help for packaging.
Thanks!
emacs -q foo.c
M-x load-file rebox.el
type: /*
Rebox hangs after the * you cannot type any more characters.
This is with emacs 24.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.