Révision | e828469aa3e33b382bf01535382184a5e18453ab (tree) |
---|---|
l'heure | 2019-11-11 18:25:02 |
Auteur | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
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.
@@ -311,7 +311,7 @@ | ||
311 | 311 | (setq screen-lines-mode |
312 | 312 | (if (null arg) (not screen-lines-mode) |
313 | 313 | (> (prefix-numeric-value arg) 0))) |
314 | - (when (interactive-p) | |
314 | + (when (called-interactively-p 'any ) | |
315 | 315 | (message "Screen Lines minor mode %s" |
316 | 316 | (if screen-lines-mode "enabled" "disabled")))) |
317 | 317 |
@@ -467,7 +467,7 @@ | ||
467 | 467 | (newline 1) |
468 | 468 | (goto-char pos) |
469 | 469 | (screen-lines-move arg))) |
470 | - (if (called-interactively-p 'any ) | |
470 | + (if (called-interactively-p 'any) | |
471 | 471 | (condition-case nil |
472 | 472 | (screen-lines-move arg) |
473 | 473 | ((beginning-of-buffer end-of-buffer) (ding))) |
@@ -477,7 +477,7 @@ | ||
477 | 477 | (defun Screen-lines-previous-line (arg) |
478 | 478 | "Move cursor vertically up ARG screen lines." |
479 | 479 | (interactive "p") |
480 | - (if (called-interactively-p 'any) | |
480 | + (if (called-interactively-p 'any) | |
481 | 481 | (condition-case nil |
482 | 482 | (screen-lines-move (- arg)) |
483 | 483 | ((beginning-of-buffer end-of-buffer) (ding))) |
@@ -493,7 +493,7 @@ | ||
493 | 493 | (defmacro screen-lines-mode-p () |
494 | 494 | "Return non-nil when Screen Lines minor mode should be effective." |
495 | 495 | '(and screen-lines-mode |
496 | - (or (called-interactively-p 'any) | |
496 | + (or (called-interactively-p 'any) | |
497 | 497 | (memq this-command screen-lines-mode-commands)))) |
498 | 498 | |
499 | 499 | (defadvice next-line |