1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00
Dave Love
4de268858c (type-break-mode): Doc fix. 1999-04-27 19:00:42 +00:00
Karl Heuer
25f67e4bc9 *** empty log message *** 1999-03-30 21:37:40 +00:00
Karl Heuer
511a07194f (type-break-mode): Doc fix. 1999-03-30 21:30:05 +00:00
Noah Friedman
f6cafb3ece Comment fixes only. 1998-09-11 01:40:25 +00:00
Noah Friedman
e18b0c51c3 (type-break-mode): remove :version field from defcustom declaration.
It's wreaking too much havoc with XEMacs and older versions of Emacs, which
share this code.
1998-09-11 01:38:30 +00:00
Richard M. Stallman
7cd3279a33 (type-break-mode): Don't alter global-mode-string.
Instead, add an element to minor-mode-alist.
1998-05-15 05:20:58 +00:00
Richard M. Stallman
2157be68a7 (type-break-mode-line-message-mode): Doc fix. Fix some messages.
(type-break-mode): Doc fix.
1998-05-13 01:46:28 +00:00
Dan Nicolaescu
f9e9ac1dde *** empty log message *** 1998-04-20 03:35:05 +00:00
Richard M. Stallman
bc3cb41d8e (type-break-emacs-variant): store-match-data => set-match-data. 1998-03-14 04:47:44 +00:00
Stephen Eglen
104221a01d (type-break-mode): New customize variable to automatically load the package.
Other variables customized.
1998-01-29 09:26:38 +00:00
Noah Friedman
846f6dd90a Don't require timer; use autoloaded functions from Emacs or XEmacs,
depending on variant.

Do not use defsubst anywhere.  Replace with defuns.

(type-break-warning-message-mode): Variable deleted.

(type-break-query-mode): New variable and function.
(type-break-mode): Mention in docstring.

(type-break-run-at-time): New function.
All callers of run-at-time changed.

(type-break-cancel-function-timers): New function.
All callers of cancel-function-timers changed.

(type-break-check-post-command-hook): New function.
(type-break-mode, type-break-schedule, type-break-alarm,
type-break-time-warning-alarm): Call it.

(type-break-mode-line-countdown-or-break): New function.
(type-break): Call it.

(type-break-time-warning-schedule): Put type-break-time-warning
on type-break-post-command-hook.

(type-break-check): Call type-break-mode-line-countdown-or-break.

(type-break-noninteractive-query): New function.
(type-break-force-mode-line-update): New function.
1997-06-23 05:28:51 +00:00
Noah Friedman
b4dc9e6aff Changes which are not mine:
1996-01-20  Richard M. Stallman  <rms@whiz-bang.gnu.ai.mit.edu>
    Move defsubsts before defuns.

    1996-01-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
    (type-break-demo-life): Pass proper format string to message.

    1996-01-04  Paul Eggert  <eggert@twinsun.com>
    (type-break-guesstimate-keystroke-threshold): Renamed from
    type-break-guestimate-keystroke-threshold.
    (type-break-keystroke-threshold, type-break-mode): Doc fix.


(type-break-warning-message-mode): New variable.
(type-break-warning-countdown-string): New variable.
(type-break-warning-countdown-string-type): New variable.

(type-break-warning-message-mode): New function.
(type-break-alarm): Reset type-break mode.
(type-break-check): Ignore mouse motion.
1997-06-23 04:58:15 +00:00
Noah Friedman
99c0333bc4 Assign copyright to FSF, and change comments to reflect that type-break
is now part of GNU Emacs.
1994-10-06 19:12:46 +00:00
Noah Friedman
defa73468e type-break-time-sum: New function.
type-break-schedule: Use it.
Make interactive again.

type-break-guestimate-keystroke-threshold: Use `N' interactive spec, not `n'.

type-break-demo-boring: Show elapsed time of break, or number of minutes
left for good break.

(top level): Do not call type-break-mode.
1994-08-09 21:21:28 +00:00
Noah Friedman
e7b2041725 type-break-time-warning-intervals, type-break-keystroke-warning-intervals,
type-break-warning-repeat: New variables.

type-break-current-time-warning-interval,
type-break-current-keystroke-warning-interval,
type-break-time-warning-count, type-break-keystroke-warning-count: New
variables.

type-break-demo-boring: New function.
type-break-demo-functions: Add it to the default list.

type-break-post-command-hook: New variable.
type-break-run-tb-post-command-hook: New function.
type-break-mode: Install them.

type-break-keystroke-reset: New function.
type-break-check: Call it when appropriate.

type-break: call type-break-cancel-schedule.
Check that rest time was within 60 seconds of "good rest" interval, not 120.

type-break-time-warning-schedule, type-break-cancel-time-warning-schedule,
type-break-time-warning-alarm, type-break-time-warning: New functions.

type-break-schedule: Remove interactive spec and docstring.
Call type-break-time-warning-schedule.

type-break-cancel-schedule: Remove interactive spec and docstring.
Call type-break-cancel-time-warning-schedule.

type-break-check: Don't check for type-break-mode here.
type-break-run-tb-post-command-hook does that now.

type-break-keystroke-warning: New function.
type-break-check-keystroke-warning: New inline function (defsubst).
type-break-check: Call it.

type-break-query: Bind type-break-mode to nil while calling query function.
1994-07-28 17:32:36 +00:00
Noah Friedman
3c13724430 type-break-schedule: Remove autoload cookie.
type-break-check: Optimized for speed.
1994-07-21 13:00:35 +00:00
Noah Friedman
cc669dd810 type-break-good-rest-interval: Doc fix.
type-break-keystroke-threshold: Calcuate based on 35wpm, not 30.

type-break-demo-function-vector: Variable deleted.
type-break-demo-functions: New variable.
type-break: Use new variable.

type-break-time-difference: Return absolute value.

type-break-format-time: New inline function (defsubst).
type-break-statistics, type-break: Use it.

type-break-mode: Just test prefix-numeric-value >= 0 to to enable mode.
The only visible difference is that invocation with no prefix arg the same
as if given positive numeric prefix arg now.
Do not document type-break-query-interval or type-break-query-function
here; make fritterware-happy users read the source.

type-break: If type break is much less (at least 2 minutes) than a "good
rest interval", ask user whether or not to continue with the break.

type-break-check: Do nothing if user is in the minibuffer.
When alarm is signaled but min threshold isn't reached, reschedule break.

type-break-demo-life: Eat char entered to end life demo.
1994-07-21 10:11:59 +00:00
Noah Friedman
f486195cb1 type-break-keystroke-threshold: Change default wpm to 30 and lower
threshold to 1/5, rather than 1/4, of upper.
type-break-guestimate-keystroke-threshold: Change threshold fraction here too.

type-break-demo-life: Restart when all life perishes.
1994-07-19 04:41:50 +00:00
Noah Friedman
6b62b567cb type-break-check: Shrink keystroke count if it is less than min-threshold
chars from max-threshold, not more.

type-break-statistics: If time for scheduled break is less than a minute
away, show seconds instead.
1994-07-19 00:52:56 +00:00
Noah Friedman
be8d412c3f type-break-mode: Make variable `nil' by default.
type-break-mode (function): If setting to t and mode was already enabled,
don't reschedule breaks or reset keystroke counter.

type-break-good-rest-interval: New variable.
type-break-time-difference: New inline function (defsubst).
tyype-break-time-last-break, type-break-time-next-break,
type-break-time-last-command: New variables.

type-break-check: Reset timers and counters if user has been idle more than
type-break-good-rest-interval seconds (assuming it's set).
Never set keystroke counter to be less than the min threshold.

type-break: Admonish user if s/he rested less than
type-break-good-rest-interval seconds (assuming it's set).

type-break-demo-hanoi: Eat a char when quitting.

type-break-statistics, type-break-guestimate-keystroke-threshold: New
commands.
1994-07-18 15:21:50 +00:00
Noah Friedman
4cf64c15e5 type-break-mode: New variable and function.
type-break-interval: Increase default to 1 hour.

type-break-query-interval: Variable renamed from type-break-delay-interval.

type-break-keystroke-interval: Variable deleted.
type-break-keystroke-threshold: New variable.

type-break-demo-life: Function renamed from type-break-life.
type-break-demo-hanoi: Function renamed from type-break-hanoi.

type-break-alarm-p: Variable renamed from type-break-p.

type-break: Don't query.
type-break-query: (New function) query here.
type-break-check: Call type-break-query, not type-break.
Do nothing if type-break-mode is nil.
Increment type-break-keystroke-count with the length of this-command-keys,
not just 1.
Query for break when keystroke count exceeds cdr of keystroke threshold
variable.
Query for break after an alarm only if keystroke count exceeds car of
keystroke threshold variable.

type-break-select: Function deleted.
type-break: Move that code here.

type-break-cancel-schedule: Function renamed from cancel-type-break.
Reset type-break-alarm-p.

type-break-alarm: Function renamed from type-break-soon.

(top level): Call type-break-mode; don't set up hook explicitly.
1994-07-18 07:37:18 +00:00
Noah Friedman
458401b6ed Real initial revision. (rewrite from hanoi-break.) 1994-07-14 12:10:27 +00:00
Roland McGrath
622aca7c60 Initial revision 1994-02-14 00:41:56 +00:00