Ticket #340 (new 不具合)

Opened 2 years ago

server-kill-bufferはbuffer-killと同じ戻り値を返さない。

Reported by: piyokun@gmail.com Assigned to:
Priority: minor Milestone: ver 3.00
Component: Emacs Lisp Version: 3.00 (開発中)
Keywords: gnuserv buffer bs Cc:

Description

Meadow 3.00とgnuserv-1.17をインストールした状態、gnuservパッケージはkill-bufferをserver-kill-bufferに再定義する。しかし、戻り値の挙動の互換は保持されない。もしバッファー削除処理は成功したら、本関数はtを返すべき。現状はnilを返している。この問題は標準「bs」パッケージを使う最中、bs-deleteはエラー「Buffer was not deleted」を出してしまう(kill-bufferはtではなく間違ってnilを返すから)。添付したパッチで、問題は解決する(かな?)


server-kill-buffer does not return the same return value as buffer-kill

When using Meadow 3.00 and gnuserv-1.17, gnuserv package redefines kill-buffer as server-kill-buffer. However the same return value behavior is not kept. If a buffer deletion is successful, then the function should return t, but currently it returns false. This problem is seen at when using the standard bs package and bs-delete returns "Buffer was not deleted" (because kill-buffer returns nil instead of t). Using the attached patch, the problem is (probably?) resolved.

Attachments

gnuserv-diff.txt (437 bytes) - added by piyokun@gmail.com on 2006年08月24日 17時26分51秒.
/packages/lisp/gnuserv.el--server-kill-buffer-patch.txt

Change History

2006年08月24日 17時26分51秒 changed by piyokun@gmail.com

  • attachment gnuserv-diff.txt added.

/packages/lisp/gnuserv.el--server-kill-buffer-patch.txt


Add/Change #340 (server-kill-bufferはbuffer-killと同じ戻り値を返さない。)




Change Properties
Action