zk-phi / cedit Goto Github PK
View Code? Open in Web Editor NEWparedit-like commands for C-like languages
paredit-like commands for C-like languages
The attributes cause Readme.org
to be always dirty:
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Readme.org
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git checkout -- Readme.org
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Readme.org
#
no changes added to commit (use "git add" and/or "git commit -a")
To me it looks like this file were put in place by some tool you were using to initialize the repositories and there is not real reason why .gitattributes
would have exist. If that is so please remove them. Otherwise please fix them so that files are not marked as modified when they are not. .gitignore
also does not appear to include any relevant rules, but at least it's not causing any harm.
indent-guide
, scratch-palette
, and probably others have the same problem.
I currently bind cedit-foward/backward-char
to C-f
and C-b
. However, when using the functions on an open parenthesis, it just skips to the closing parenthesis. There's no way to go into the pair with cedit function; cedit-down-block
considers anything other than { }
is not a block and does nothing.
cedit-down-block
should be applicable to pairs such as ( )
and [ ]
, similar to how paredit does. Otherwise, cedit-forward/backward-char
should just move the cursor normally over those characters.
Test code:
public function test()
{
$bundles = array(
'test test test test test test test test',
'foo bar foo bar foo bar foo bar foo bar',
'foo bar baz quux foo bar baz quux',
);
}
With point at |$bundles
, cedit-end-of-statement
throws an error "not found (59 125)".
With point at )|;
, cedit-beginning-of-statement
throws an error "Lisp nesting exceeds `max-lisp-eval-depth'"
The error doesn't happen with the code below; both functions work as expected.
public function test()
{
$bundles = array(
'test test test test test test test',
'bar foo bar foo bar foo bar foo bar',
'bar baz quux foo bar baz quux',
);
}
It's the same whether the array is full of strings or function calls.
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.