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
0565dd25
Commit
0565dd25
authored
May 31, 2026
by
Antonino D'Annaç
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaner approach, doesn't ask to save the buffer
parent
c8d78f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
bdio-mode.el
bdio-mode.el
+13
-10
No files found.
bdio-mode.el
View file @
0565dd25
...
@@ -29,26 +29,29 @@
...
@@ -29,26 +29,29 @@
(
line-beginning-position
)
(
line-beginning-position
)
(
line-end-position
)
(
line-end-position
)
'bdio-record
record
)
'bdio-record
record
)
))))
)))
(
set-buffer-modified-p
nil
)
)
(
defun
bdio-mode--open-file
()
(
defun
bdio-mode--open-file
()
"Open .bdio file using lsbdio."
"Open .bdio file using lsbdio."
;;(setq-local bdio-mode--source-file buffer-file-name)
(
let*
((
file
buffer-file-name
)
(
let
((
file
(
buffer-file-name
)))
(
buf
(
get-fbuffer-create
(
when
file
(
format
"*BDIO* %s"
(
file-name-nondirectory
file
)))))
(
rename-buffer
(
with-current-buffer
buf
(
format
"*BDIO* %s"
(
file-name-nondirectory
file
))
t
)
(
set-visited-file-name
nil
t
)
(
bdio-mode
)
(
bdio-mode
)
(
bdio-mode--render-file
file
))))
(
setq-local
bdio-mode--source-file
file
)
(
bdio-mode--render-file
file
)
(
pop-to-buffer
buf
))))
(
defun
bdio-mode--toggle-record
()
(
defun
bdio-mode--toggle-record
()
"Expand/collapse current record."
"Expand/collapse current record."
(
interactive
)
(
interactive
)
(
let
((
bdio-file
bdio-mode--source-file
)
(
let
((
bdio-file
bdio-mode--source-file
)
(
setq
lstart
(
line-beginning-position
))
(
lstart
(
line-beginning-position
))
(
lend
(
line-end-position
))
(
lend
(
line-end-position
))
(
cpoint
(
point
)))
(
cpoint
(
point
)))
(
let*
((
record
(
get-text-property
lstart
'bdio-record
))
(
let*
((
record
(
get-text-property
lstart
'bdio-record
))
...
@@ -73,7 +76,7 @@
...
@@ -73,7 +76,7 @@
(
put-text-property
lstart
lend
'bdio-expanded
t
)))))
(
put-text-property
lstart
lend
'bdio-expanded
t
)))))
(
goto-char
cpoint
)))
(
goto-char
cpoint
)))
(
defun
bdio-mode--refresh-file
(
&rest
ARGS
)
(
defun
bdio-mode--refresh-file
(
ignore-auto
noconfirm
)
(
interactive
)
(
interactive
)
(
bdio-mode--render-file
bdio-mode--source-file
))
(
bdio-mode--render-file
bdio-mode--source-file
))
...
...
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