Skip to content

Commit 17ba2cb

Browse files
committed
Add rna-puzzle-ready [in testing]
1 parent 9021b09 commit 17ba2cb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pdb-mode.el

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
(defvar pdb-menu-hook nil "Menu hook for pdb-mode")
6363
(defconst pdb-mode-menu-def
6464
'("PDB"
65+
("rna-pdb-tools ..."
66+
["RNApuzzle ready" rna-puzzle-ready t]
67+
)
6568
("Select ..."
6669
["Select chain" pdb-select-chain t]
6770
["Select current chain" (pdb-select-chain "") t]
@@ -1538,7 +1541,7 @@ ATOM 11 O3* A A 1 0.272 -1.450 -2.624 1.00 20.00\n"))
15381541
(pdb-view-sentinel procname nil))))
15391542
(pdb-sub-defineregion b e)
15401543
(pdb-sub-markregion)
1541-
(setq pdb-rasmol-filestamp (concat (getenv "PWD") "/#tmp" (number-to-string (elt (current-time) 1)) (number-to-string (emacs-pid)) "#"))
1544+
(setq pdb-rasmol-filestamp (concat (getenv "PWD") "/tmp/#tmp" (number-to-string (elt (current-time) 1)) (number-to-string (emacs-pid)) "#"))
15421545
(let ((procname)
15431546
(bufname "*RASMOL*"))
15441547
(write-region pdb-start-user-region pdb-end-user-region pdb-rasmol-filestamp)
@@ -1566,6 +1569,15 @@ ATOM 11 O3* A A 1 0.272 -1.450 -2.624 1.00 20.00\n"))
15661569
(kill-buffer buffer))
15671570
(message (concat "RASMOL session " string)))
15681571

1572+
(message "rna-clean loaded...")
1573+
1574+
(defun rna-puzzle-ready()
1575+
"rna-clean"
1576+
(message "rna-clean")
1577+
(interactive)
1578+
(rna-clean)
1579+
)
1580+
15691581
(defun pdb-ebi-sentinel (process string)
15701582
"PDB mode: Process the results from the EBI connection."
15711583
(let ((buffer (get-buffer-create (process-name process))))

0 commit comments

Comments
 (0)