Thien-Thi Nguyen [Tue, 10 Jan 2006 13:01:48 +0000 (13:01 +0000)]
(report-emacs-bug-text-prompt): Delete var.
(report-emacs-bug): Don't record initial prompt text.
Instead, add text properties to prompting text.
(report-emacs-bug-hook): Delete prompting text.
Stefan Monnier [Mon, 9 Jan 2006 22:56:08 +0000 (22:56 +0000)]
(reveal-open-new-overlays): New extracted fun.
(reveal-close-old-overlays): Idem. Check overlays's liveness before
using them. Simplify the code.
(reveal-post-command): Use them. Fix up obsolete windows in
reveal-open-spots.
Bill Wohler [Mon, 9 Jan 2006 21:21:06 +0000 (21:21 +0000)]
Use ";; Shush compiler." comment consistently per Mark's suggestion.
(mh-letter-mode): Derive from mail-mode and delete code copied from
mail-mode (closes SF #1385571). Mention mail-mode-hook in docstring.
(mh-fill-paragraph-function): Delete. Handled by mail-mode.
(mh-to-field-choices): For consistency with mail-mode, add "a" for
"Mail-Reply-To:", "l" for "Mail-Followup-To:", and "r" for
"Reply-To:". Change "r" to "m" for "From:" (closes SF #1400139).
(mh-to-fcc): Move setting of folder argument to interactive argument
as is the norm.
(mh-letter-complete-function-alist): Add mail-reply-to.
(mh-letter-mode-map): Add keys for mh-to-field (Mail-Reply-To,
Mail-Followup-To, Reply-To, From).
Stefan Monnier [Mon, 9 Jan 2006 19:11:28 +0000 (19:11 +0000)]
Use `require' rather than autoload for XEmacs's overlays.
(flymake-get-common-file-prefix, flymake-build-relative-filename):
Delete. Use file-relative-name instead.
(flymake-get-syntax-check-program-args, flymake-perl-init):
Simplify the resulting code.
Jan Djärv [Mon, 9 Jan 2006 19:03:20 +0000 (19:03 +0000)]
* gtkutil.c (xg_toggle_notify_cb): New function.
(xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
xg_toggle_notify_cb.
(xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
parameter value changes so the toggle button gets updated.
Bill Wohler [Mon, 9 Jan 2006 06:28:49 +0000 (06:28 +0000)]
* mh-alias.el (mh-alias-gecos-name): Use replace-regexp-in-string
instead of mh-replace-in-string as mh-replace-in-string was replaced
by a more appropriate defsubst in mh-xemacs.el.
* mh-e.el: Require cleanup, wrap compiler-shushing defvars with
eval-when-compile.
(mh-thread-scan-line-map-stack, tool-bar-mode): Delete unused
variables.
(mh-colors-available-p): Just call display-color-cells. It's on all
supported Emacsen (and defaliased on XEmacs).
* mh-funcs.el: mh-inc.el: mh-init.el: Wrap compiler-shushing defvars
* with eval-when-compile.
* mh-identity.el: Don't need (mh-require-cl).
* mh-index.el: Don't need to load executable any more.
* mh-mime.el: Wrap compiler-shushing defvars with eval-when-compile.
(mh-have-file-command): Initialize variable to 'undefined. Add
docstring. Update function of same name accordingly. Also don't need
to load executable any more.
(mh-mime-content-types): Delete.
(mh-minibuffer-read-type): Prompt user for type if mh-file-mime-type
returns application/octet-stream. Assume we have mailcap-mime-types.
(mh-mime-display): Update error message.
* mh-seq.el: Require cleanup, and wrap compiler-shushing defvars with
eval-when-compile.
* mh-utils.el: Require cleanup, and wrap compiler-shushing defvars
with eval-when-compile.
(mh-clean-msg-header): Don't set after-change-functions to nil.
(mh-replace-in-string): Remove. Create defsubst in mh-xemacs.el
instead.
Bill Wohler [Sat, 7 Jan 2006 20:46:49 +0000 (20:46 +0000)]
Updated Faces documentation in header.
(mh-invisible-header-fields-internal): Add X-Lumos-SenderID,
X-Return-Path-Hint, and X-Roving-* from Roving ConstantContact.
Alex Schroeder [Sat, 7 Jan 2006 02:51:45 +0000 (02:51 +0000)]
(rcirc-ignore-list): New option.
(rcirc-ignore-list-automatic): New variable.
(rcirc-print): Take rcirc-ignore-list into account.
(rcirc-cmd-ignore): New command.
(rcirc-ignore-update-automatic): New function.
(rcirc-handler-PART, rcirc-handler-QUIT): Use it to maintain the
list if ignored nicks.
(rcirc-handler-NICK): Ditto, and also ignore the new nick.
Alex Schroeder [Sat, 7 Jan 2006 02:29:14 +0000 (02:29 +0000)]
(rcirc-send-input): No longer check whether the
process is open, since not all commands need an open process.
(rcirc-send-string): Check whether the process is open before
sending anything.
Stefan Monnier [Thu, 5 Jan 2006 22:28:16 +0000 (22:28 +0000)]
(url-history-hash-table): Initialize in declaration.
(url-history-parse-history): Don't reset the history.
(url-history-save-history): Create parent dir if necessary.
(url-history-save-history): Don't write the initialization of
url-history-hash-table into the history file.
(url-have-visited-url): Simplify since url-history-hash-table is non-nil.
(url-completion-function): Simplify.
Stefan Monnier [Thu, 5 Jan 2006 22:10:47 +0000 (22:10 +0000)]
(url-cookie-parse-file): Don't complain of missing file.
(url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
(url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
(url-cookie-setup-save-timer): Remove autoload cookies.
They're only called from files that require url-cookie anyway.
Stefan Monnier [Thu, 5 Jan 2006 22:07:30 +0000 (22:07 +0000)]
(url-history-parse-history): Don't complain if the file is missing.
(url-history-setup-save-timer, url-history-parse-history)
(url-history-save-history): Remove autoload cookies.
They're only called from url.el which requires url-history anyway.
Stefan Monnier [Thu, 5 Jan 2006 18:51:00 +0000 (18:51 +0000)]
(flymake-get-cleanup-function): Default to flymake-simple-cleanup.
(flymake-allowed-file-name-masks): Use this new default.
All the functions are now called in the right buffer rather than
passing the buffer as argument.
(flymake-process-sentinel): Switch to buffer before calling cleanup.
(flymake-parse-err-lines): Remove redundant buffer arg.
(flymake-get-program-dir): Comment out unused function.
(flymake-start-syntax-check, flymake-start-syntax-check-process):
Remove redundant buffer argument.
(flymake-get-real-file-name, flymake-simple-java-cleanup)
(flymake-simple-cleanup, flymake-master-cleanup): Remove buffer arg.
(mac-ae-parameter): Don't coerce data if it is
already of desired type.
(mac-ae-list): Coerce parameter to "list" type.
(mac-dispatch-apple-event): Replace cadr part of event with a
dummy position so that event-start returns it.
Carsten Dominik [Thu, 5 Jan 2006 08:05:44 +0000 (08:05 +0000)]
(org-end-of-subtree): New function.
(org-cycle, org-subtree-end-visible-p, org-scan-tags): Use
`org-end-of-subtree'.
(org-agenda, org-agenda-convert-date): Protect calls to
`fit-window-to-buffer'.
(org-tags-view): Force matching of sublevels when doing a
todo-only search. Define the correct redo command, including the
arguments.
(org-agenda-redo): Display message.
(org-check-for-org-mode): New function.
(org-agenda-type): New variable.
(org-timeline, org-agenda-list, org-todo-list, org-tags-view): Set
`org-agenda-type'.
(org-agenda-check-type): New function.
(org-agenda-goto-today, org-agenda-later, org-agenda-earlier)
(org-agenda-week-view, org-agenda-day-view)
(org-agenda-next-date-line, org-agenda-previous-date-line)
(org-agenda-log-mode, org-agenda-toggle-diary)
(org-agenda-toggle-time-grid, org-agenda-date-later)
(org-agenda-date-prompt, org-agenda-diary-entry)
(org-agenda-execute-calendar-command, org-agenda-goto-calendar)
(org-agenda-convert-date, org-agenda-menu): Use
`org-agenda-check-type'.
(org-make-overlay, org-delete-overlay)
(org-detatch-overlay, org-move-overlay, org-overlay-put): New
compatibility functions.
(org-calendar-select-mouse): New command.
Jan Djärv [Wed, 4 Jan 2006 21:13:49 +0000 (21:13 +0000)]
* gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
let GTK do all image processing. Importing Emacs own pixmaps to GTK
looks bad for inactive tool bar items with some Gnome themes.
Chong Yidong [Wed, 4 Jan 2006 15:56:08 +0000 (15:56 +0000)]
* cus-edit.el (custom-reset-menu, custom-reset, Custom-mode-menu)
(custom-variable-menu, custom-face-menu, custom-group-menu)
(custom-buffer-create-internal): Change "Reset" to "Show".
Reorder menu items.
(custom-link): New face for Info links.
(custom-buffer-create-internal, custom-manual): Use it.
* wid-edit.el (widget-default-mouse-face-get): New function.
(widget-specify-button): Handle mouse-face like button-face.
* custom.el (load-theme): Clear old theme settings if reloading.
Bill Wohler [Wed, 4 Jan 2006 02:08:12 +0000 (02:08 +0000)]
* mh-alias.el (mh-alias-add-alias): Grand message and error string
unification. Use single sentence if possible by using semicolon. Don't
end message with punctuation. Don't need format with message. Quote
messages as in docstrings: use `' around symbols, \" for option
choices. Don't use quotes around %s.
Kim F. Storm [Wed, 4 Jan 2006 00:16:54 +0000 (00:16 +0000)]
Add IPv6 support.
(Qipv4, Qipv6): New vars.
(syms_of_process): Intern and staticpro them.
(Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
with or without port number. Handle 4 element vector as IPv4 address
without port number.
(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
(conv_lisp_to_sockaddr): Handle IPv6 addresses.
(Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
request that address family only. :family nil or omitted means to
determine address family from the specified :host and :service.
(server_accept_connection): Handle IPv6 addresses.
(init_process): Add (:family ipv4) and (:family ipv6) sub-features.
(ifflag_table): Add missing OpenBSD IFF_ flags.
Kim F. Storm [Tue, 3 Jan 2006 23:35:05 +0000 (23:35 +0000)]
(key-sequence): Rework widget to read key binding
using `kbd' syntax. Use C-q to insert literal key, event, or code.
(widget-key-sequence-default-value): Default value for empty sequence.
(widget-key-sequence-map): New map for reading key binding. Bind C-q.
(widget-key-sequence-read-event): New command for C-q.
(widget-key-sequence-validate, widget-key-sequence-value-to-internal)
(widget-key-sequence-value-to-external): New functions.
Stefan Monnier [Tue, 3 Jan 2006 19:59:00 +0000 (19:59 +0000)]
(flymake-create-temp-with-folder-structure): Use expand-file-name.
(flymake-delete-temp-directory): Use expand-file-name,
file-name-directory, and directory-file-name.
(flymake-strrchr): Delete.
(flymake-start-syntax-check): Don't pass the redundant buffer argument
to the init-f function.
(flymake-init-find-buildfile-dir, flymake-init-create-temp-buffer-copy)
(flymake-init-create-temp-source-and-master-buffer-copy, flymake-perl-init)
(flymake-save-buffer-in-file, flymake-simple-make-init-impl, flymake-xml-init)
(flymake-simple-make-init, flymake-master-make-init, flymake-master-tex-init)
(flymake-master-make-header-init, flymake-simple-make-java-init)
(flymake-simple-ant-java-init, flymake-simple-tex-init):
Remove corresponding redundant buffer argument.
(flymake-allowed-file-name-masks): Remove last elems that are equal to
the default anyway. Clean up regexps.
Stefan Monnier [Tue, 3 Jan 2006 19:05:06 +0000 (19:05 +0000)]
(flymake-base-dir, flymake-master-file-name, flymake-temp-master-file-name)
(flymake-temp-source-file-name): New buffer-local vars.
(flymake-buffer-data, flymake-get-buffer-value, flymake-set-buffer-value):
Replace those hash-tables by the new buffer-local vars. Update callers.
Stefan Monnier [Tue, 3 Jan 2006 18:44:42 +0000 (18:44 +0000)]
(flymake-check-start-time, flymake-check-was-interrupted, flymake-err-info)
(flymake-is-running, flymake-last-change-time, flymake-new-err-info)
(flymake-timer): Move definitions, so we can remove earlier declarations.
(flymake-replace-regexp-in-string, flymake-split-string)
(flymake-get-temp-dir): Use defalias.
(flymake-popup-menu): Remove `pos' argument. Use posn-at-point.
(flymake-xemacs-window-edges): Remove unused function.
(flymake-get-point-pixel-pos): Move.
(flymake-pid-to-names, flymake-reg-names)
(flymake-get-source-buffer-name, flymake-unreg-names): Remove.
Replace by a simple list flymake-processes and by process-buffer.
Update callers. Other than simplify the code, it uses buffers rather
than buffer-names so it doesn't get confused by uniquify.
(flymake-buffer-data): The global value should just be nil.
Bill Wohler [Tue, 3 Jan 2006 18:25:26 +0000 (18:25 +0000)]
* mh-customize.el (mh-folder-msg-number): Snow is actually off-white
on low color displays which turns to white when bold. This is
unreadable on white backgrounds. Use snow with min-colors requirement.
Use cyan on low-color displays.
* mh-init.el (mh-defface-compat): On low-color displays, delete the
high-color display rather than simply strip the min-colors requirement
since the existing algorithm shadowed the desired display on low-color
displays.
J.D. Smith [Tue, 3 Jan 2006 17:08:51 +0000 (17:08 +0000)]
(mouse-drag-track): Renamed, from `mouse-drag-region-1'. Includes
optional argument required to enable post-drag event processing
(e.g. delete region keys). Can be used without this argument to track
a mouse region and operate on it as soon as the drag completes.
(mouse-drag-region): Use `mouse-drag-track'.