Commit graph

8411 commits

Author SHA1 Message Date
Richard M. Stallman
285cdf4e20 (byte-compile-protect-from-advice): Macro deleted.
(byte-compile-from-buffer, byte-compile-top-level): Don't use it.
1994-08-04 21:47:55 +00:00
Richard M. Stallman
fabaa9b58e New handling of automatic advice activation that
exploits modified built-in versions of `fset' and `defalias' which
take care of this functionality directly:
(ad-start-advice-on-load, ad-activate-on-definition)
(ad-definition-hooks, ad-enable-definition-hooks, ad-defined-function)
(ad-advised-definers, ad-advised-byte-compilers, byte-constant)
(byte-constant-limit, byte-constant2, byte-fset)
(ad-byte-code-fset-regexp): Variables deleted.
(ad-activate-defined-function, ad-find-fset-in-byte-code)
(ad-scan-byte-code-for-fsets, ad-advised-byte-code)
(ad-recover-byte-code, ad-enable-definition-hooks)
(ad-disable-definition-hooks): Functions deleted.
(defun, defmacro, fset, defalias, define-function)
(byte-compile-from-buffer, byte-compile-top-level): Removed `defadvice'
for these functions.
(ad-save-real-definitions): Removed saving of `byte-code'.
(ad-activate-off): New dummy function.
(ad-activate-on): New name for `ad-activate'.  All calls changed.
(ad-with-auto-activation-disabled): New macro prevents automatic
advice activation.
(ad-safe-fset): New function, used instead of `ad-real-fset'.
(ad-compile-function): Disable automatic advice activation while
compiling, because `byte-compile' uses `fset'.
(ad-activate-on): Renamed from `ad-activate'.  Avoid recursive calls.
(ad-activate-on-top-level): New variable.
(ad-start-advice, ad-stop-advice, ad-recover-normality): Modified to
achieve de/activation of automatic advice activation by setting the
definition of `ad-activate' to `ad-activate-on' or `ad-activate-off'.
(ad-start-advice): Is now called unconditionally when Advice is loaded.

Made compilation behavior of advised definitions customizable, since
loading the byte-compiler takes some time and is not always worth the
cost, e.g., if one only wants to make a few simple modifications:
(ad-default-compilation-action): New variable which specifies whether
to compile an advised definition in case the COMPILE argument to
`ad-activate-on' or one of its friends was supplied as nil.
(ad-preactivate-advice): Supply negative COMPILE argument to prevent
compilation.
(ad-should-compile): New function.
(ad-activate-advised-definition): Use `ad-should-compile' to determine
whether an advised definition should get compiled.
(ad-activate-on, ad-update, ad-activate-regexp, ad-update-regexp)
(ad-activate-all): Doc fixes.
(ad-update): Leave handling of COMPILE up to `ad-activate-on'.

Extracted construction of freeze-advices from `defadvice':
(ad-make-freeze-definition): New function.
(defadvice): Use `ad-make-freeze-definition' to construct frozen defs.
1994-08-04 21:40:49 +00:00
Richard M. Stallman
8951521e96 Doc fixes. 1994-08-04 21:08:04 +00:00
Richard M. Stallman
8b947f90b3 (hilit-find-file-hook): Preserve buffer modified state. 1994-08-04 20:15:36 +00:00
Richard M. Stallman
4500ff36ef (end-of-buffer-other-window): Go to the end, not to the beginning. 1994-08-04 19:59:03 +00:00
Richard M. Stallman
7c496a7928 (ediff-version): Function, variable deleted.
(ediff-date): Var deleted.
(ediff-status-info): Don't call ediff-version.
1994-08-04 08:22:09 +00:00
Richard M. Stallman
9c197f24a1 (appt-make-list): Do nothing unless range being processed
for diary entries includes today's date.
1994-08-04 05:44:30 +00:00
Richard M. Stallman
1507a647c0 (gnus-kill-files-directory): New variable.
(gnus-Newsgroup-kill-file, gnus-newsgroup-kill-file): Use it.
1994-08-04 03:26:33 +00:00
Richard M. Stallman
474ac5bb05 (dired-mode): Put expanded name in list-buffers-directory. 1994-08-04 02:43:58 +00:00
Richard M. Stallman
133bbcd690 (x_make_frame_visible): Start one_in_four at 1. 1994-08-03 23:20:26 +00:00
Richard M. Stallman
06e8cf7450 (list_buffers_1): Add one column to size column. 1994-08-03 23:11:05 +00:00
Richard M. Stallman
387ce4a68a (Fwindow_end): Doc fix. 1994-08-03 21:58:47 +00:00
Richard M. Stallman
0e551775a0 (icomplete-prime-minibuffer): Copy the hook lists after making them local. 1994-08-03 21:23:30 +00:00
Richard M. Stallman
c57ca86e2a (iso-fix-iso2tex, iso-fix-tex2iso): Check plain-text-mode. 1994-08-03 20:41:33 +00:00
Richard M. Stallman
78ced549ab (make_lispy_event): If the position is not in a window,
at least pass along the frame it is in.
1994-08-03 07:39:40 +00:00
Richard M. Stallman
44a4a59b60 (Faccessible_keymaps): Use PREFIX to set loop starting
point; don't even consider maps except those reached via prefix.
1994-08-03 07:39:00 +00:00
Richard M. Stallman
23faf38f99 (construct_mouse_click, construct_menu_click):
Don't update x_mouse_grabbed, Vmouse_depressed, last_mouse_frame here.
(XTread_socket): Update them here, so we do it without fail.
(XTmouse_position, XTread_socket case MotionNotify):
Check last_mouse_frame is nonzero before using it.
1994-08-03 07:35:50 +00:00
Richard M. Stallman
f194e50908 (alloca.o): Use -f in all rm's. 1994-08-03 04:39:08 +00:00
Karl Heuer
1bebba148e (auto-mode-alist): Fix typos in comments. 1994-08-03 02:17:57 +00:00
Richard M. Stallman
61cfa85263 *** empty log message *** 1994-08-03 00:12:07 +00:00
Richard M. Stallman
0a50b9936f Capitalize some error messages.
(mouse-set-point): Nice error if button release is in scrollbar.
1994-08-02 21:59:19 +00:00
Richard M. Stallman
e60476ca9c Set up a "Compile" menubar item.
(recompile): New function.
(previous-error): New function.
(first-error): New function.
1994-08-02 21:01:04 +00:00
Richard M. Stallman
5b66a32f60 (frame-delete-all): New function.
(frame-notice-user-settings): Call it--with or without separate
minibuffer frame.
1994-08-02 05:39:48 +00:00
Richard M. Stallman
37fdc96f78 (rmail-mode-map): Fix the Get New Mail entry.
Add `...' where appropriate.
1994-08-02 02:32:26 +00:00
Richard M. Stallman
29e6129ecb (rmail-summary-mode-map): Add `...' where appropriate. 1994-08-02 02:26:35 +00:00
Richard M. Stallman
c0d133a61b (rmail-summary-mode-map): Fix typo. 1994-08-02 02:22:45 +00:00
Richard M. Stallman
5358bc42c2 (rmail-mode-map): Fix the Get New Mail entry. 1994-08-02 01:58:08 +00:00
Richard M. Stallman
e76bca6c4b (rmail-summary-mode-map): Fix the Get New Mail entry. 1994-08-02 01:57:49 +00:00
Richard M. Stallman
4e50f26a07 (follow_key): Don't downcase letters here.
Delete arg `case_converted'.
(read_key_sequence): Do it here; but not if in middle of fcn key.
1994-08-02 01:33:48 +00:00
Richard M. Stallman
f67a0f51a5 (redisplay_window): Avoid using SET_PT to change point temporarily. 1994-08-02 01:31:07 +00:00
Richard M. Stallman
bfc77306f5 (sendmail-send-it): Handle resent-to specially. 1994-08-02 01:29:20 +00:00
Roland McGrath
5e84269afe (Ffset): Don't call Fget unless SYM's plist is consp. 1994-08-01 22:28:26 +00:00
Richard M. Stallman
60f312e2fc (xmenu_show): Ignore any geometry resource from the user. 1994-08-01 21:29:46 +00:00
Richard M. Stallman
43d5aa6818 (gnus-sortable-date): Use timezone-make-time-string. 1994-08-01 20:00:24 +00:00
Richard M. Stallman
877b578fc8 (Fprog2): Doc fix. 1994-08-01 19:29:56 +00:00
Richard M. Stallman
19e3bf0abc (Fmove_to_window_line): Doc fix. 1994-08-01 18:59:09 +00:00
Richard M. Stallman
ae24c599eb (main): Add casts to avoid warnings. 1994-08-01 07:43:30 +00:00
Richard M. Stallman
3cfb886e3d (insert-directory): Gracefully handle the case
where a file disappears between when it is listed in the directory
and when the attributes are requested.
1994-08-01 07:15:34 +00:00
Richard M. Stallman
5d3b0f182f (imenu, imenu--flatten-index-alist): Add marker support.
(imenu--cleanup): New function.
(imenu-example--name-and-position): Now uses markers.

(imenu-add-to-menubar): New function to add an entry
to the menubar for the buffer's current local keymap.
1994-08-01 07:11:43 +00:00
Richard M. Stallman
f150bd2b3e (dired-insert-directory): Call expand-file-name here
because the dir name may have been abbreviated before.
1994-08-01 04:43:38 +00:00
Richard M. Stallman
05d9e5954d (compilation-error-regexp-alist): Fix previous change.
Add alternatives for GNU error messages with program name in them.
1994-08-01 00:39:26 +00:00
Richard M. Stallman
40ac73a0a8 (Fx_get_resource): Doc fix. 1994-07-31 23:20:58 +00:00
Richard M. Stallman
823d86f380 (display-time-string-forms): New variable.
(display-time-filter): Simplify to use it.
1994-07-31 22:49:46 +00:00
Richard M. Stallman
370b6149a4 (dired-noselect): Call abbreviate-file-name here.
(dired-internal-noselect): Not here.
1994-07-31 21:42:11 +00:00
Richard M. Stallman
f1db542733 (compile_range): Avoid warning in casts for range_start/end. 1994-07-31 20:59:32 +00:00
Richard M. Stallman
f845f2c9a5 (syms_of_data): Set up Qadvice_info, Qactivate_advice.
(Ffset): Activate advice if symbol has advice-info property.
1994-07-31 20:57:45 +00:00
Richard M. Stallman
7782a0c643 (comint-password-prompt-regexp): Handle PGP prompt. 1994-07-31 20:47:15 +00:00
Richard M. Stallman
0af6491072 (rmail-retry-failure): Handle a weird case with
a couple of lines before the old message header.
1994-07-31 20:08:53 +00:00
Richard M. Stallman
69d4d27f67 (compilation-error-regexp-alist): Make separate
regexp for Borland C++; the combined one matched too much.
1994-07-31 19:00:42 +00:00
Richard M. Stallman
74c44611aa (ange-ftp-parse-netrc-group): Don't move back to line
beginning.  Skip the machine name whatever it may be.
(ange-ftp-parse-netrc): Skip initial whitespace.
1994-07-31 18:22:04 +00:00