Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
35e53abd
Commit
35e53abd
authored
May 18, 2010
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* emacs-lisp/smie.el: Fix typos in docstrings.
parent
5739cdd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/emacs-lisp/smie.el
lisp/emacs-lisp/smie.el
+6
-6
No files found.
lisp/ChangeLog
View file @
35e53abd
2010-05-18 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/smie.el (smie-precs-precedence-table, smie-backward-sexp)
(smie-forward-sexp, smie-indent-calculate): Fix typos in docstrings.
2010-05-17 Stefan Monnier <monnier@iro.umontreal.ca>
Provide a simple generic indentation engine and use it for Prolog.
...
...
lisp/emacs-lisp/smie.el
View file @
35e53abd
...
...
@@ -86,7 +86,7 @@
PRECS should be a list, sorted by precedence (e.g. \"+\" will
come before \"*\"), of elements of the form \(left OP ...)
or (right OP ...) or (nonassoc OP ...) or (assoc OP ...). All operators in
one of those elements share
s
the same precedence level and associativity."
one of those elements share the same precedence level and associativity."
(
let
((
prec2-table
(
make-hash-table
:test
'equal
)))
(
dolist
(
prec
precs
)
(
dolist
(
op
(
cdr
prec
))
...
...
@@ -300,7 +300,7 @@ Possible return values:
(LEFT-LEVEL POS TOKEN): we couldn't skip TOKEN because its right-level
is too high. LEFT-LEVEL is the left-level of TOKEN,
POS is its start position in the buffer.
(t POS TOKEN):
S
ame thing but for an open-paren or the beginning of buffer.
(t POS TOKEN):
s
ame thing but for an open-paren or the beginning of buffer.
(nil POS TOKEN): we skipped over a paren-like pair.
nil: we skipped over an identifier, matched parentheses, ..."
(
if
(
bobp
)
(
list
t
(
point
))
...
...
@@ -311,7 +311,7 @@ Possible return values:
(
token
(
progn
(
forward-comment
(
-
(
point-max
)))
(
smie-backward-token
)))
(
toklevels
(
cdr
(
assoc
token
smie-op-levels
))))
(
cond
((
null
toklevels
)
(
if
(
equal
token
""
)
...
...
@@ -360,7 +360,7 @@ Possible return values:
(RIGHT-LEVEL POS TOKEN): we couldn't skip TOKEN because its left-level
is too high. RIGHT-LEVEL is the right-level of TOKEN,
POS is its end position in the buffer.
(t POS TOKEN):
S
ame thing but for an open-paren or the beginning of buffer.
(t POS TOKEN):
s
ame thing but for an open-paren or the beginning of buffer.
(nil POS TOKEN): we skipped over a paren-like pair.
nil: we skipped over an identifier, matched parentheses, ..."
(
if
(
eobp
)
(
list
t
(
point
))
...
...
@@ -371,7 +371,7 @@ Possible return values:
(
token
(
progn
(
forward-comment
(
point-max
))
(
smie-forward-token
)))
(
toklevels
(
cdr
(
assoc
token
smie-op-levels
))))
(
cond
((
null
toklevels
)
(
if
(
equal
token
""
)
...
...
@@ -485,7 +485,7 @@ need to compute the column at which point should be indented
in order to figure out the indentation of some other (further down) point.
VIRTUAL can take two different non-nil values:
- :bolp: means that the current indentation of point can be trusted
to be good only if i
f i
t follows a line break.
to be good only if it follows a line break.
- :hanging: means that the current indentation of point can be
trusted to be good except if the following token is hanging."
;; FIXME: This has accumulated a lot of rules, some of which aren't
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment