Mercurial > emacs
comparison lisp/simple.el @ 50383:2018e9013e52
(pop-global-mark-quick-repeat): Remove defcustom.
(set-mark-command): Unconditionally repeat pop-global-mark without
C-x prefix. Fix doc.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 31 Mar 2003 21:49:09 +0000 |
parents | 24db6dc3fc9e |
children | b108545d1f24 |
comparison
equal
deleted
inserted
replaced
50382:9bf67e990ee1 | 50383:2018e9013e52 |
---|---|
2422 "*Maximum size of global mark ring. \ | 2422 "*Maximum size of global mark ring. \ |
2423 Start discarding off end if gets this big." | 2423 Start discarding off end if gets this big." |
2424 :type 'integer | 2424 :type 'integer |
2425 :group 'editing-basics) | 2425 :group 'editing-basics) |
2426 | 2426 |
2427 (defcustom pop-global-mark-quick-repeat nil | |
2428 "*When non-nil, `pop-global-mark' can be repeated without the prefix key. | |
2429 E.g. \\[pop-global-mark] \\[set-mark-command] \\[set-mark-command] \ | |
2430 pops to the third mark off the global mark ring. | |
2431 To cycle through the marks in the target buffer, \ | |
2432 use \\[universal-argument] \\[set-mark-command] \\[set-mark-command]..." | |
2433 :type 'boolean | |
2434 :group 'editing-basics) | |
2435 | |
2436 (defun pop-to-mark-command () | 2427 (defun pop-to-mark-command () |
2437 "Jump to mark, and pop a new position for mark off the ring | 2428 "Jump to mark, and pop a new position for mark off the ring |
2438 \(does not affect global mark ring\)." | 2429 \(does not affect global mark ring\)." |
2439 (interactive) | 2430 (interactive) |
2440 (if (null (mark t)) | 2431 (if (null (mark t)) |
2465 jump to mark, and pop a new position | 2456 jump to mark, and pop a new position |
2466 for mark off the local mark ring \(this does not affect the global | 2457 for mark off the local mark ring \(this does not affect the global |
2467 mark ring\). Use \\[pop-global-mark] to jump to a mark off the global | 2458 mark ring\). Use \\[pop-global-mark] to jump to a mark off the global |
2468 mark ring \(see `pop-global-mark'\). | 2459 mark ring \(see `pop-global-mark'\). |
2469 | 2460 |
2470 Repeating the \\[set-mark-command] command without the prefix jumps to the next | 2461 Repeating the \\[set-mark-command] command without the prefix jumps to |
2471 position off the local mark ring. See `pop-global-mark-quick-repeat' if you | 2462 the next position off the local (or global) mark ring. |
2472 want the same effect for \\[pop-global-mark]. | |
2473 | 2463 |
2474 With a double \\[universal-argument] prefix argument, e.g. \\[universal-argument] \ | 2464 With a double \\[universal-argument] prefix argument, e.g. \\[universal-argument] \ |
2475 \\[universal-argument] \\[set-mark-command], unconditionally | 2465 \\[universal-argument] \\[set-mark-command], unconditionally |
2476 set mark where point is. | 2466 set mark where point is. |
2477 | 2467 |
2488 (pop-to-mark-command) | 2478 (pop-to-mark-command) |
2489 (push-mark-command t))) | 2479 (push-mark-command t))) |
2490 ((eq last-command 'pop-to-mark-command) | 2480 ((eq last-command 'pop-to-mark-command) |
2491 (setq this-command 'pop-to-mark-command) | 2481 (setq this-command 'pop-to-mark-command) |
2492 (pop-to-mark-command)) | 2482 (pop-to-mark-command)) |
2493 ((and pop-global-mark-quick-repeat | 2483 ((and (eq last-command 'pop-global-mark) (not arg)) |
2494 (eq last-command 'pop-global-mark) (not arg)) | |
2495 (setq this-command 'pop-global-mark) | 2484 (setq this-command 'pop-global-mark) |
2496 (pop-global-mark)) | 2485 (pop-global-mark)) |
2497 (arg | 2486 (arg |
2498 (setq this-command 'pop-to-mark-command) | 2487 (setq this-command 'pop-to-mark-command) |
2499 (pop-to-mark-command)) | 2488 (pop-to-mark-command)) |