-
Notifications
You must be signed in to change notification settings - Fork 5
/
shampoo-state-format.el
35 lines (29 loc) · 974 Bytes
/
shampoo-state-format.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;; shampoo-state-format.el --- Some state-dependent functions
;;
;; Copyright (C) 2010 - 2012 Dmitry Matveev <[email protected]>
;;
;; This software is released under terms of the MIT license,
;; please refer to the LICENSE file for details.
(require 'shampoo-state)
(require 'shampoo-dialect)
(defun shampoo-format-class-name (name)
(if (shampoo-side-is :instance)
name
(format "%s class" name)))
(defun shampoo-make-header ()
(with-~shampoo~
(format
"%s %s"
(shampoo-connect-info-str
(shampoo-current-connection-info ~shampoo~))
(shampoo-set-str-face
(shampoo-dialect-specific-version
(shampoo-current-smalltalk ~shampoo~))
'shampoo-smalltalk-version))))
(defun shampoo-build-method-name (class method)
(with-~shampoo~
(shampoo-set-str-face
(format "%s>>%s" (shampoo-format-class-name class) method)
'shampoo-method-name)))
(provide 'shampoo-state-format)
;;; shampoo-state-format.el ends here.