Emacsist RSS --- If never, make it ever: C-h C-h

Function Signature From Hell

7254

这里 查看更多 Emacs 相关推荐文章最新 Emacs 圈的动态. 欢迎关注微信公众账号: Emacsist

I’ve finally given in to the sweet temptation of record-style types, despite being wary of them at first. To have an idea how the constructor syntax looks in practice, I grepped the Emacs sources for examples and located package-buffer-info. If you have eldoc enabled, put point inside the package-desc-from-define form and wait for it to kick in, you’ll see the following:

package-desc-from-define: (NAME-STRING VERSION-STRING &optional
SUMMARY REQUIREMENTS &rest REST-PLIST &AUX (NAME (INTERN
NAME-STRING)) (VERSION (VERSION-TO-LIST VERSION-STRING)) (REQS
(MAPCAR #'(LAMBDA (ELT) (LIST (CAR ELT) (VERSION-TO-LIST (CADR
ELT)))) (IF (EQ 'QUOTE (CAR REQUIREMENTS)) (NTH 1 REQUIREMENTS)
REQUIREMENTS))) (KIND (PLIST-GET REST-PLIST :KIND)) (ARCHIVE
(PLIST-GET REST-PLIST :ARCHIVE)) (EXTRAS (LET (ALIST) (WHILE
REST-PLIST (UNLESS (MEMQ (CAR REST-PLIST) '(:KIND :ARCHIVE)) (LET
((VALUE (CADR REST-PLIST))) (WHEN VALUE (PUSH (CONS (CAR
REST-PLIST) (IF (EQ (CAR-SAFE VALUE) 'QUOTE) (CADR VALUE) VALUE))
ALIST)))) (SETQ REST-PLIST (CDDR REST-PLIST))) ALIST)))

This prompted me to customize eldoc to never make it happen again:

(setq eldoc-echo-area-use-multiline-p nil)
原文出处: Vasilij Schneidermann
原文地址: http://emacshorrors.com/posts/function-signature-from-hell.html
原文时间: 2016-02-22 22:53
本文地址: http://emacsist.com/10771
整理时间: 2016-02-24 22:40

本文由 Hick 整理,转载请保留以上信息;
COPYLEFTThe articles on this site come from Internet, thanks to all the original authors.
      If anything about COPYRIGHT, or LEFT, please contact Emacsist at gmail dot com .