diff options
| author | Stefan Monnier | 2006-08-22 01:35:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-08-22 01:35:45 +0000 |
| commit | 8ec94c16aefbc14e239c52ca594d9a0da31f2285 (patch) | |
| tree | e36264fc281969936abf3525e2de25eaabae2c82 | |
| parent | b1333d4fbedcbac9623acdba934de3c5540aec94 (diff) | |
| download | emacs-8ec94c16aefbc14e239c52ca594d9a0da31f2285.tar.gz emacs-8ec94c16aefbc14e239c52ca594d9a0da31f2285.zip | |
(blink-cursor-end): Only ignore the error we care about.
(blink-cursor-mode): Use blink-cursor-end to simplify the code.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/frame.el | 67 |
2 files changed, 39 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ecc660373fb..22137ebccf2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,7 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | * progmodes/gdb-ui.el (gdb-frame-memory-buffer): Make frame | 3 | * progmodes/gdb-ui.el (gdb-frame-memory-buffer): Make frame |
| 4 | a bit wider and remove fringes to fit initial output on line. | 4 | a bit wider and remove fringes to fit initial output on line. |
| 5 | 5 | ||
| 6 | 2006-08-21 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7 | |||
| 8 | * frame.el (blink-cursor-end): Only ignore the error we care about. | ||
| 9 | (blink-cursor-mode): Use blink-cursor-end to simplify the code. | ||
| 10 | |||
| 6 | 2006-08-21 Richard Stallman <rms@gnu.org> | 11 | 2006-08-21 Richard Stallman <rms@gnu.org> |
| 7 | 12 | ||
| 8 | * whitespace.el (whitespace-cleanup): Doc fix. | 13 | * whitespace.el (whitespace-cleanup): Doc fix. |
| @@ -16,8 +21,8 @@ | |||
| 16 | (rcirc-mode): Preserve the value of `rcirc-urls' across | 21 | (rcirc-mode): Preserve the value of `rcirc-urls' across |
| 17 | connections. Setup scroll function. | 22 | connections. Setup scroll function. |
| 18 | (rcirc-scroll-to-bottom): New function. | 23 | (rcirc-scroll-to-bottom): New function. |
| 19 | (rcirc-print): Use nick syntax around regexp work. Notice | 24 | (rcirc-print): Use nick syntax around regexp work. |
| 20 | dim-nicks speaking only if they say our nick. | 25 | Notice dim-nicks speaking only if they say our nick. |
| 21 | (rcirc-update-activity-string): Do not show the modeline indicator | 26 | (rcirc-update-activity-string): Do not show the modeline indicator |
| 22 | if there are no live rcirc processes. | 27 | if there are no live rcirc processes. |
| 23 | (rcirc-cmd-ignore): Ignore case. | 28 | (rcirc-cmd-ignore): Ignore case. |
diff --git a/lisp/frame.el b/lisp/frame.el index 873cec6c783..368cab3aed7 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1253,38 +1253,6 @@ The function `blink-cursor-start' is called when the timer fires.") | |||
| 1253 | This timer calls `blink-cursor-timer-function' every | 1253 | This timer calls `blink-cursor-timer-function' every |
| 1254 | `blink-cursor-interval' seconds.") | 1254 | `blink-cursor-interval' seconds.") |
| 1255 | 1255 | ||
| 1256 | (define-minor-mode blink-cursor-mode | ||
| 1257 | "Toggle blinking cursor mode. | ||
| 1258 | With a numeric argument, turn blinking cursor mode on iff ARG is positive. | ||
| 1259 | When blinking cursor mode is enabled, the cursor of the selected | ||
| 1260 | window blinks. | ||
| 1261 | |||
| 1262 | Note that this command is effective only when Emacs | ||
| 1263 | displays through a window system, because then Emacs does its own | ||
| 1264 | cursor display. On a text-only terminal, this is not implemented." | ||
| 1265 | :init-value (not (or noninteractive | ||
| 1266 | no-blinking-cursor | ||
| 1267 | (eq system-type 'ms-dos) | ||
| 1268 | (not (memq window-system '(x w32 mac))))) | ||
| 1269 | :initialize 'custom-initialize-safe-default | ||
| 1270 | :group 'cursor | ||
| 1271 | :global t | ||
| 1272 | (if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer)) | ||
| 1273 | (if blink-cursor-timer (cancel-timer blink-cursor-timer)) | ||
| 1274 | (setq blink-cursor-idle-timer nil | ||
| 1275 | blink-cursor-timer nil) | ||
| 1276 | (if blink-cursor-mode | ||
| 1277 | (progn | ||
| 1278 | ;; Hide the cursor. | ||
| 1279 | ;;(internal-show-cursor nil nil) | ||
| 1280 | (setq blink-cursor-idle-timer | ||
| 1281 | (run-with-idle-timer blink-cursor-delay | ||
| 1282 | blink-cursor-delay | ||
| 1283 | 'blink-cursor-start))) | ||
| 1284 | (internal-show-cursor nil t))) | ||
| 1285 | |||
| 1286 | (define-obsolete-variable-alias 'blink-cursor 'blink-cursor-mode "22.1") | ||
| 1287 | |||
| 1288 | (defun blink-cursor-start () | 1256 | (defun blink-cursor-start () |
| 1289 | "Timer function called from the timer `blink-cursor-idle-timer'. | 1257 | "Timer function called from the timer `blink-cursor-idle-timer'. |
| 1290 | This starts the timer `blink-cursor-timer', which makes the cursor blink | 1258 | This starts the timer `blink-cursor-timer', which makes the cursor blink |
| @@ -1310,11 +1278,38 @@ When run, it cancels the timer `blink-cursor-timer' and removes | |||
| 1310 | itself as a pre-command hook." | 1278 | itself as a pre-command hook." |
| 1311 | (remove-hook 'pre-command-hook 'blink-cursor-end) | 1279 | (remove-hook 'pre-command-hook 'blink-cursor-end) |
| 1312 | (internal-show-cursor nil t) | 1280 | (internal-show-cursor nil t) |
| 1313 | (condition-case nil | 1281 | (when blink-cursor-timer |
| 1314 | (cancel-timer blink-cursor-timer) | 1282 | (cancel-timer blink-cursor-timer) |
| 1315 | (error nil)) | 1283 | (setq blink-cursor-timer nil))) |
| 1316 | (setq blink-cursor-timer nil)) | 1284 | |
| 1285 | (define-minor-mode blink-cursor-mode | ||
| 1286 | "Toggle blinking cursor mode. | ||
| 1287 | With a numeric argument, turn blinking cursor mode on iff ARG is positive. | ||
| 1288 | When blinking cursor mode is enabled, the cursor of the selected | ||
| 1289 | window blinks. | ||
| 1290 | |||
| 1291 | Note that this command is effective only when Emacs | ||
| 1292 | displays through a window system, because then Emacs does its own | ||
| 1293 | cursor display. On a text-only terminal, this is not implemented." | ||
| 1294 | :init-value (not (or noninteractive | ||
| 1295 | no-blinking-cursor | ||
| 1296 | (eq system-type 'ms-dos) | ||
| 1297 | (not (memq window-system '(x w32 mac))))) | ||
| 1298 | :initialize 'custom-initialize-safe-default | ||
| 1299 | :group 'cursor | ||
| 1300 | :global t | ||
| 1301 | (if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer)) | ||
| 1302 | (setq blink-cursor-idle-timer nil) | ||
| 1303 | (blink-cursor-end) | ||
| 1304 | (when blink-cursor-mode | ||
| 1305 | ;; Hide the cursor. | ||
| 1306 | ;;(internal-show-cursor nil nil) | ||
| 1307 | (setq blink-cursor-idle-timer | ||
| 1308 | (run-with-idle-timer blink-cursor-delay | ||
| 1309 | blink-cursor-delay | ||
| 1310 | 'blink-cursor-start)))) | ||
| 1317 | 1311 | ||
| 1312 | (define-obsolete-variable-alias 'blink-cursor 'blink-cursor-mode "22.1") | ||
| 1318 | 1313 | ||
| 1319 | ;; Hourglass pointer | 1314 | ;; Hourglass pointer |
| 1320 | 1315 | ||