Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bdio-mode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antonino D'Anna
bdio-mode
Commits
94541e4d
Commit
94541e4d
authored
May 08, 2026
by
Antonino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made sure that it cannot modify the bdio file
parent
9b593247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
bdio-mode.el
bdio-mode.el
+6
-13
No files found.
bdio-mode.el
View file @
94541e4d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
(
require
's
)
(
require
's
)
(
defvar
bdio-mode-hook
nil
)
(
defvar
bdio-mode-hook
nil
)
(
defvar
source-file
nil
)
(
defun
bdio--render-file
(
file
)
(
defun
bdio--render-file
(
file
)
"Render FILE using lsbdio into current buffer."
"Render FILE using lsbdio into current buffer."
...
@@ -20,31 +21,23 @@
...
@@ -20,31 +21,23 @@
'bdio-record
record
)
'bdio-record
record
)
))))
))))
(
defun
bdio-open-file
()
(
defun
bdio-open-file
()
"Open .bdio file using lsbdio."
"Open .bdio file using lsbdio."
(
setq
source-file
buffer-file-name
)
(
let
((
file
(
buffer-file-name
)))
(
let
((
file
(
buffer-file-name
)))
(
when
file
(
when
file
(
rename-buffer
(
rename-buffer
(
format
"*BDIO* %s"
(
file-name-nondirectory
file
))
t
)
(
format
"*BDIO* %s"
(
file-name-nondirectory
file
))
t
)
;
(set-visited-file-name nil t)
(
set-visited-file-name
nil
t
)
(
bdio-mode
)
(
bdio-mode
)
(
bdio--render-file
file
)
(
bdio--render-file
file
))))
(
set-buffer-modified-p
nil
))))
(
defun
get-properties
()
(
interactive
)
(
let
((
properties
(
text-properties-at
(
point
))))
(
while
properties
(
print
(
car
properties
))
(
setq
properties
(
cdr
properties
)))))
;; (defun bdio-revert-buffer (_ignore-auto _noconfirm)
;; (bdio--render-file buffer-file-name))
(
defun
bdio-toggle-record
()
(
defun
bdio-toggle-record
()
"Expand/collapse current record."
"Expand/collapse current record."
(
interactive
)
(
interactive
)
(
setq
bdio-file
buffer-file-nam
e
)
(
setq
bdio-file
source-fil
e
)
(
setq
lstart
(
line-beginning-position
)
(
setq
lstart
(
line-beginning-position
)
lend
(
line-end-position
)
lend
(
line-end-position
)
cpoint
(
point
))
cpoint
(
point
))
...
...
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