Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
88fd26a1
Commit
88fd26a1
authored
Jan 21, 2008
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(server-log-time-function): New function.
(server-log): Use it.
parent
a1e81396
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/server.el
lisp/server.el
+7
-4
No files found.
lisp/ChangeLog
View file @
88fd26a1
2008-01-21 Juanma Barranquero <lekktu@gmail.com>
* server.el (server-log-time-function): New function.
(server-log): Use it.
2008-01-21 Glenn Morris <rgm@gnu.org>
* progmodes/hideif.el: Move defcustoms and defface to start of file.
...
...
lisp/server.el
View file @
88fd26a1
...
...
@@ -291,17 +291,20 @@ If NOFRAME is non-nil, let the frames live. (To be used from
(
server-log
"Deleted"
proc
))))
(
defvar
server-log-time-function
'current-time-string
"Function to generate timestamps for the *server* buffer."
)
(
defun
server-log
(
string
&optional
client
)
"If a *server* buffer exists, write STRING to it for logging purposes.
If CLIENT is non-nil, add a description of it to the logged message."
(
when
(
get-buffer
"*server*"
)
(
with-current-buffer
"*server*"
(
goto-char
(
point-max
))
(
insert
(
current-time-string
)
(
insert
(
funcall
server-log-time-function
)
(
cond
((
null
client
)
" "
)
((
listp
client
)
(
format
" %s: "
(
car
client
)))
(
t
(
format
" %s: "
client
)))
((
null
client
)
" "
)
((
listp
client
)
(
format
" %s: "
(
car
client
)))
(
t
(
format
" %s: "
client
)))
string
)
(
or
(
bolp
)
(
newline
)))))
...
...
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