From: "find lulu" <tpeplt@gmail.com>
To: "martin rudalics" <rudalics@gmx.at>
Cc: bug-gnu-emacs@gnu.org
Subject: bug#890: Problem using `etc/emacs.bash' with EmacsW32
Date: Sun, 7 Sep 2008 00:03:52 -0400 [thread overview]
Message-ID: <6bb3db200809062103t2d79cc76v21cadd95c0808386@mail.gmail.com> (raw)
In-Reply-To: <48C2F41B.1080106@gmx.at>
[-- Attachment #1.1: Type: text/plain, Size: 188 bytes --]
If these are not moot, here are suggested patch files and ChangeLog entries
for `emacs/etc/emacs.bash' and `emacs/lisp/server.el' for the latest
revisions on the CVS branch EMACS_22_BASE.
[-- Attachment #1.2: Type: text/html, Size: 225 bytes --]
[-- Attachment #2: ChangeLog --]
[-- Type: application/octet-stream, Size: 148 bytes --]
2008-09-06 <tpeplt@gmail.com>
* emacs.bash: Added a test for the server file created by EmacsW32
to the conditional for invoking `emacsclient'.
[-- Attachment #3: emacs.bash.patch --]
[-- Type: application/octet-stream, Size: 833 bytes --]
*** emacs/etc/emacs.bash-1.5.2.2 Sat Sep 6 21:22:20 2008
--- emacs/etc/emacs.bash.new Sat Sep 6 21:23:17 2008
***************
*** 46,52 ****
if [ -n "${windowsys:+set}" ]; then
# Do not just test if these files are sockets. On some systems
# ordinary files or fifos are used instead. Just see if they exist.
! if [ -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then
emacsclient "$@"
return $?
else
--- 46,52 ----
if [ -n "${windowsys:+set}" ]; then
# Do not just test if these files are sockets. On some systems
# ordinary files or fifos are used instead. Just see if they exist.
! if [ -e "${HOME}/.emacs.d/server/server" -o -e "${HOME}/.emacs_server" -o -e "/tmp/emacs${UID}/server" ]; then
emacsclient "$@"
return $?
else
[-- Attachment #4: ChangeLog --]
[-- Type: application/octet-stream, Size: 387 bytes --]
2008-09-06 <tpeplt@gmail.com>
* server.el (server-start): Moved the code that removes any
leftover socket or authentication file before (and outside) the
condition that checks to see whether the server should be left
shut down. This ensures that the server's socket or
authentication file is also removed when Emacs is shut down,
instead of only prior to restarting the server.
[-- Attachment #5: server.el.patch --]
[-- Type: application/octet-stream, Size: 1504 bytes --]
*** emacs/lisp/server.el-1.127.2.6 Sat Sep 6 22:09:51 2008
--- emacs/lisp/server.el.new Sat Sep 6 22:19:59 2008
***************
*** 323,335 ****
(let ((buffer (nth 1 (car server-clients))))
(server-buffer-done buffer)))
;; Now any previous server is properly stopped.
! (unless leave-dead
! (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir))
! (server-file (expand-file-name server-name server-dir)))
! ;; Make sure there is a safe directory in which to place the socket.
! (server-ensure-safe-dir server-dir)
! ;; Remove any leftover socket or authentication file.
! (ignore-errors (delete-file server-file))
(when server-process
(server-log (message "Restarting server")))
(letf (((default-file-modes) ?\700))
--- 323,335 ----
(let ((buffer (nth 1 (car server-clients))))
(server-buffer-done buffer)))
;; Now any previous server is properly stopped.
! (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir))
! (server-file (expand-file-name server-name server-dir)))
! ;; Make sure there is a safe directory in which to place the socket.
! (server-ensure-safe-dir server-dir)
! ;; Remove any leftover socket or authentication file.
! (ignore-errors (delete-file server-file))
! (unless leave-dead
(when server-process
(server-log (message "Restarting server")))
(letf (((default-file-modes) ?\700))
next prev parent reply other threads:[~2008-09-07 4:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-05 15:39 bug#890: Problem using `etc/emacs.bash' with EmacsW32 find lulu
2008-09-06 12:53 ` Lennart Borgman (gmail)
2008-09-06 19:41 ` Stefan Monnier
2008-09-06 20:11 ` Lennart Borgman (gmail)
2008-09-06 20:33 ` Juanma Barranquero
2008-09-06 21:46 ` Lennart Borgman (gmail)
2008-09-06 22:06 ` Juanma Barranquero
2011-03-03 6:45 ` Glenn Morris
2008-09-06 21:20 ` martin rudalics
2008-09-07 4:03 ` find lulu [this message]
2008-09-07 9:37 ` martin rudalics
2008-09-07 22:01 ` find lulu
-- strict thread matches above, loose matches on Subject: below --
2008-09-04 19:55 Anonymous Sender
2008-09-05 3:55 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6bb3db200809062103t2d79cc76v21cadd95c0808386@mail.gmail.com \
--to=tpeplt@gmail.com \
--cc=890@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.