GithubHelp home page GithubHelp logo

rebox2's People

Contributors

abique avatar almost avatar lewang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rebox2's Issues

auto-fill broken recently

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, and thanks! :-)

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!

rebox-mode breaks deletion of active region with <DEL>

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.

Doxygen-style comments

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!

emacs 24.3 issues

When using emacs 24.3 loading rebox2 cause, the following message "felt is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf' to be issued.

Make a release

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!

rebox will slow down my typing speed

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...

Allow customizing rebox-language-character-alist

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.

Handling of spaces after periods

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

Initializations.

----------------

where

Initializations.

-----------------

would be nice. I find it lets the comments "breathe" a little bit.

Great work otherwise!

`rebox-yank` not working with `(delete-selection-mode t)`

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).

rebox-cycle: rebox-cycle caught error: (invalid-function rebox-cache)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.