• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版e828469aa3e33b382bf01535382184a5e18453ab (tree)
时间2019-11-11 18:25:02
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I changed the way a function is called to avoid problems and
warnings. See
https://stackoverflow.com/questions/10400328/wrong-number-of-arguments-called-interactively-p-1
and the solution about adding "any.

更改概述

差异

diff -r c49713cc7d1c -r e828469aa3e3 emacs_files/screen-lines.el
--- a/emacs_files/screen-lines.el Thu Nov 07 16:21:47 2019 +0100
+++ b/emacs_files/screen-lines.el Mon Nov 11 10:25:02 2019 +0100
@@ -311,7 +311,7 @@
311311 (setq screen-lines-mode
312312 (if (null arg) (not screen-lines-mode)
313313 (> (prefix-numeric-value arg) 0)))
314- (when (interactive-p)
314+ (when (called-interactively-p 'any )
315315 (message "Screen Lines minor mode %s"
316316 (if screen-lines-mode "enabled" "disabled"))))
317317
@@ -467,7 +467,7 @@
467467 (newline 1)
468468 (goto-char pos)
469469 (screen-lines-move arg)))
470- (if (called-interactively-p 'any )
470+ (if (called-interactively-p 'any)
471471 (condition-case nil
472472 (screen-lines-move arg)
473473 ((beginning-of-buffer end-of-buffer) (ding)))
@@ -477,7 +477,7 @@
477477 (defun Screen-lines-previous-line (arg)
478478 "Move cursor vertically up ARG screen lines."
479479 (interactive "p")
480- (if (called-interactively-p 'any)
480+ (if (called-interactively-p 'any)
481481 (condition-case nil
482482 (screen-lines-move (- arg))
483483 ((beginning-of-buffer end-of-buffer) (ding)))
@@ -493,7 +493,7 @@
493493 (defmacro screen-lines-mode-p ()
494494 "Return non-nil when Screen Lines minor mode should be effective."
495495 '(and screen-lines-mode
496- (or (called-interactively-p 'any)
496+ (or (called-interactively-p 'any)
497497 (memq this-command screen-lines-mode-commands))))
498498
499499 (defadvice next-line