1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

53832 Commits

Author SHA1 Message Date
Dan Nicolaescu
c5cde04220 Derive some programming modes from prog-mode.
* lisp/progmodes/python.el (python-mode): Derive from prog-mode.
* lisp/progmodes/ps-mode.el (ps-mode):
* lisp/progmodes/mixal-mode.el (mixal-mode):
* lisp/progmodes/ld-script.el (ld-script-mode): Likewise.
2011-06-15 07:07:48 -07:00
Martin Rudalics
baa1c9abaa Don't let display-buffer pop up new frames by default (bug#8857).
* window.el (display-buffer-alist): Trim default value to avoid
popping up a new frame (Bug#8857) or reusing an arbitrary window
on another frame.
(display-buffer): Do not fall back on popping up a new frame in
batch mode (Bug#8857).
2011-06-15 09:09:47 +02:00
Chong Yidong
c5dd5a516c Print theme summaries in *Custom Themes* buffer.
* lisp/cus-theme.el (describe-theme-1): Use custom-theme-p.
(custom-theme-summary): New function.
(customize-themes): Use it.

* etc/themes/light-blue-theme.el:
* etc/themes/misterioso-theme.el:
* etc/themes/tango-dark-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tsdh-dark-theme.el:
* etc/themes/tsdh-light-theme.el:
* etc/themes/wheatgrass-theme.el:
* etc/themes/wombat-theme.el: Tweak summaries for better listability.
2011-06-14 01:06:26 -04:00
Glenn Morris
d647b7c44e cus-dep fix for build failure first occurring with 2011-06-13T08:21:09Z!rudalics@gmx.at
The symptom was `make custom-dep' failing with "Unknown terminal type".
This is caused by `display-buffer' trying to pop-up a frame in batch mode.
I think this cus-dep change may be just papering over the immediate
manifestation of the underlying problem.

* lisp/cus-dep.el (custom-make-dependencies): Use up command-line-args-left.
2011-06-13 17:42:40 -04:00
Martin Rudalics
357f93d245 Make help and view-mode work with new buffer display facilities.
* help.el (help-window): Remove variable.
(help-window-point-marker, temp-buffer-max-height)
(temp-buffer-resize-mode, help-window-select): Rewrite doc-strings.
(help-print-return-message): Don't set help-window.
(resize-temp-buffer-window): Rewrite cod eand doc-string.
(help-window-setup-finish): Remove.
(help-window-display-message, help-window-setup)
(with-help-window): Major rewrite based on new
display-buffer-window variable.

* help-mode.el (help-mode-finish): Remove help-window related
code.

* view.el (view-exits-all-viewing-windows): Remove reference to
view-return-to-alist in doc-string.
(view-return-to-alist): Make obsolete.
(view-buffer): Call pop-to-buffer-same-window and remove
undo-window code.
(view-buffer-other-window): Call pop-to-buffer-other-window and
simplify code.  Ignore second argument.
(view-buffer-other-frame): Call pop-to-buffer-other-frame and
simplify code.  Ignore second argument.
(view-return-to-alist-update): Make obsolete.
(view-mode-enter): Rename second argument to QUIT-RESTORE.
Rewrite using quit-restore window parameters.
(view-mode-exit): Rename second argument to EXIT-ONLY.  Rewrite
using quit-restore-window.
(View-exit, View-exit-and-edit, View-leave, View-quit)
(View-quit-all, View-kill-and-leave): Call view-mode-exit with
appropriate arguments.
(view-end-message): Use quit-restore window parameter.
2011-06-13 15:14:42 +02:00
Martin Rudalics
9481c00201 Install new buffer display functions and variables.
* window.el (display-buffer-function): Rewrite doc-string.
(display-buffer-window, display-buffer-alist): New variables.
(display-buffer-split-specifiers)
(display-buffer-side-specifiers)
(display-buffer-macro-specifiers): New constants.
(display-buffer-even-window-sizes, display-buffer-set-height)
(display-buffer-set-width, display-buffer-select-window)
(display-buffer-in-window, display-buffer-reuse-window)
(display-buffer-split-window-1, display-buffer-split-window)
(display-buffer-split-atom-window, display-buffer-pop-up-window)
(display-buffer-pop-up-frame, display-buffer-pop-up-side-window)
(display-buffer-in-side-window, normalize-buffer-to-display)
(display-buffer-normalize-specifiers-1)
(display-buffer-normalize-specifiers-2)
(display-buffer-normalize-specifiers, display-buffer-frame): New
functions.
(display-buffer): Major rewrite.
(display-buffer-other-window, display-buffer-other-frame)
(pop-to-buffer, switch-to-buffer-other-window)
(switch-to-buffer-other-frame): Rewrite.
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-same-frame-other-window)
(pop-to-buffer-same-window, pop-to-buffer-same-frame)
(pop-to-buffer-other-window)
(pop-to-buffer-same-frame-other-window)
(pop-to-buffer-other-frame, switch-to-buffer-same-frame)
(switch-to-buffer-other-window-same-frame): New functions.
(same-window-p, special-display-p): Rewrite disabling warnings.
Make obsolete.
(pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
(display-buffer-mark-dedicated): Initialize to symbol 'unset.
Make obsolete
(same-window-buffer-names, same-window-regexps)
(special-display-frame-alist, special-display-popup-frame)
(special-display-function, special-display-buffer-names)
(special-display-regexps, pop-up-frame-alist)
(pop-up-frame-function, split-window-preferred-function)
(split-height-threshold, split-width-threshold)
(even-window-heights): Make obsolete.
2011-06-13 10:21:09 +02:00
Glenn Morris
873e858a93 * term/xterm.el (terminal-init-xterm): Still more simplifications. 2011-06-12 13:18:04 -07:00
Glenn Morris
422e69f6b6 * term/xterm.el (terminal-init-xterm): More simplifications. 2011-06-12 13:15:02 -07:00
Glenn Morris
7cb363eba0 * term/xterm.el (terminal-init-xterm): Misc simplifications. 2011-06-12 12:58:32 -07:00
Glenn Morris
9db51acaf1 * term/xterm.el (terminal-init-xterm): `version' may be nil. (Bug#8838) 2011-06-12 12:56:41 -07:00
Martin Rudalics
39cffb4422 Restore window-safely-shrinkable-p but avoid using it in calendar.el.
* window.el (window-safely-shrinkable-p): Restore function which
was inadvertently removed in change from 2011-06-11.  Declare as
obsolete.

* calendar/calendar.el (calendar-generate-window): Use
window-iso-combined-p instead of combination of one-window-p and
window-safely-shrinkable-p.
2011-06-12 09:46:56 +02:00
Glenn Morris
a8955be718 Give % punctuation syntax in fortran modes (bug#8820)
* lisp/progmodes/fortran.el (fortran-mode-syntax-table):
* lisp/progmodes/f90.el (f90-mode-syntax-table):
Set % to punctuation.
(f90-find-tag-default): Remove, no longer needed.
2011-06-11 17:57:24 -07:00
Daniel Colascione
f0d4059d8c * emacs-lisp/syntax.el (syntax-ppss): Clarify which items are invalid. 2011-06-11 17:27:14 -07:00
Chong Yidong
1100a63ce5 Handle gif subimage animation delay correctly.
* lisp/image.el (image-animated-p): Return animation delay in seconds.
Avoid bit manipulation in Lisp; use `delay' entry in the metadata.
(image-animate-timeout): Remove DELAY argument.  Use
image-animated-p to get animation delay for each frame.
(image-animate): Caller changed.

* src/image.c (gif_load): Add animation frame delay to the metadata.
(syms_of_image): Use DEFSYM.  New symbol `delay'.
2011-06-11 19:03:16 -04:00
Michael Albinus
def722bf09 * net/tramp.el (tramp-debug-message): Add `tramp-with-progress-reporter'
to ignored backtrace functions.
2011-06-11 20:30:43 +02:00
Glenn Morris
0a2bb1a9cf Handle overlapping appointments in appt.el (bug#8377)
* lisp/calendar/appt.el (appt-disp-window-function): Doc fix.
(appt-check): Handle overlapping appointments.

* etc/NEWS: Mention appt-disp-window-function should handle lists now.
2011-06-11 10:54:53 -07:00
Martin Rudalics
6198ccd0b2 Window configuration, balancing and fit-to-buffer rewrites.
* window.c (delete_deletable_window): Re-add.
(Fset_window_configuration): Rewrite to handle dead buffers and
consequently deletable windows.
(window_tree, Fwindow_tree): Remove.  Supply functionality in
window.el.
(compare_window_configurations): Simplify code.

* window.el (window-tree-1, window-tree): New functions, moving
the latter to window.el.
(bw-get-tree, bw-get-tree-1, bw-find-tree-sub)
(bw-find-tree-sub-1, bw-l, bw-t, bw-r, bw-b, bw-dir, bw-eqdir)
(bw-refresh-edges): Remove.
(balance-windows-1, balance-windows-2): New functions.
(balance-windows): Rewrite in terms of window tree functions,
balance-windows-1 and balance-windows-2.
(bw-adjust-window): Remove.
(balance-windows-area-adjust): New function with functionality of
bw-adjust-window but using resize-window.
(set-window-text-height): Rewrite doc-string.  Use
normalize-live-window and resize-window.
(enlarge-window-horizontally, shrink-window-horizontally): Rename
argument to DELTA.
(window-buffer-height): New function.
(fit-window-to-buffer, shrink-window-if-larger-than-buffer):
Rewrite using new window resize routines.
(kill-buffer-and-window, mouse-autoselect-window-select): Use
ignore-errors instead of condition-case.
(quit-window): Call delete-frame instead of delete-windows-on
for the only buffer on frame.
2011-06-11 16:06:16 +02:00
Martin Rudalics
9397e56f74 Move/add window-buffer-related functions to window.el.
* buffer.c: New Lisp objects Qbuffer_list_update_hook and
Qclone_number.  Remove external declaration of Qdelete_window.
(Fbuffer_list): Rewrite doc-string.  Minor restructuring of
code.
(Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer): Run
Qbuffer_list_update_hook if allowed.
(Fother_buffer): Rewrite doc-string.  Major rewrite for new
buffer list implementation.
(other_buffer_safely): New function.
(Fkill_buffer): Replace call to replace_buffer_in_all_windows by
calls to replace_buffer_in_windows and
replace_buffer_in_windows_safely.  Run Qbuffer_list_update_hook
if allowed.
(record_buffer): Inhibit quitting and rewrite using quittable
functions.  Run Qbuffer_list_update_hook if allowed.
(Frecord_buffer, Funrecord_buffer): New functions.
(switch_to_buffer_1, Fswitch_to_buffer): Remove.  Move
switch-to-buffer to window.el.
(bury-buffer): Move to window.el.
(Vbuffer_list_update_hook): New variable.

* lisp.h (other_buffer_safely): Add prototype in buffer.c
section.

* window.h (resize_frame_windows): Move up in code.
(Fwindow_frame): Remove EXFUN.
(replace_buffer_in_all_windows): Remove prototype.
(replace_buffer_in_windows_safely): Add prototype.

* window.c: Declare Qdelete_window static again.  Move down
declaration of select_count.
(Fnext_window, Fprevious_window): Rewrite doc-strings.
(Fother_window): Move to window.el.
(window_loop): Remove DELETE_BUFFER_WINDOWS and UNSHOW_BUFFER
cases.  Add REPLACE_BUFFER_IN_WINDOWS_SAFELY case.
(Fdelete_windows_on, Freplace_buffer_in_windows): Move to
window.el.
(replace_buffer_in_windows): Implement by calling
Qreplace_buffer_in_windows.
(replace_buffer_in_all_windows): Remove with some functionality
moved into replace_buffer_in_windows_safely.
(replace_buffer_in_windows_safely): New function.
(select_window_norecord, select_frame_norecord): Move in front
of run_window_configuration_change_hook.  Remove now obsolete
declarations.
(Fset_window_buffer): Rewrite doc-string.  Call
Qrecord_window_buffer.
(keys_of_window): Move binding for other-window to window.el.

* loadup.el (top-level): Load window before files for the sake
of replace-buffer-in-windows.

* files.el (read-buffer-to-switch)
(switch-to-buffer-other-window)
(switch-to-buffer-other-frame, display-buffer-other-frame): Move
to window.el.

* simple.el (get-next-valid-buffer, last-buffer, next-buffer)
(previous-buffer): Move to window.el.

* bindings.el (unbury-buffer): Move to window.el.

* window.el (delete-other-windows-vertically): Move after
definition of delete-other-windows.
(other-window, delete-windows-on, replace-buffer-in-windows):
Move here from window.c.
(record-window-buffer, unrecord-window-buffer)
(set-window-buffer-start-and-point, switch-to-prev-buffer)
(switch-to-next-buffer): New functions.
(get-next-valid-buffer, last-buffer, next-buffer): Move here
from simple.el.  Call switch-to-next-buffer.
(previous-buffer): Move here from simple.el.  Call
switch-to-prev-buffer.
(bury-buffer): Move here from buffer.c.  Switch to previous
buffer when window cannot be deleted.
(unbury-buffer): Move here from bindings.el.
(ctl-x-map): Move binding for other-window from window.c to
here.
(read-buffer-to-switch, switch-to-buffer-other-window)
(switch-to-buffer-other-frame): Move here from files.el.
(normalize-buffer-to-switch-to): New functions.
(switch-to-buffer): Move here from buffer.c.  Use
read-buffer-to-switch and normalize-buffer-to-switch-to.
2011-06-11 11:50:37 +02:00
Martin Rudalics
562dd5e953 Move window resize code from window.c to window.el.
* window.c: Remove declarations of Qwindow_size_fixed,
window_min_size_1, window_min_size_2, window_min_size,
size_window, window_fixed_size_p, enlarge_window, delete_window.
Remove static from declaration of Qdelete_window, it's
temporarily needed by Fbury_buffer.
(replace_window): Don't assign orig_top_line and
orig_total_lines.
(Fdelete_window, delete_window): Remove.  Window deletion is
handled by window.el.
(window_loop): Remove DELETE_OTHER_WINDOWS case.  Replace
Fdelete_window calls with calls to Qdelete_window.
(Fdelete_other_windows): Remove.  Deleting other windows is
handled by window.el.
(window_fixed_size_p): Remove.  Fixed-sizeness of windows is
handled in window.el.
(window_min_size_2, window_min_size_1, window_min_size): Remove.
Window minimum sizes are handled in window.el.
(shrink_windows, size_window, set_window_height)
(set_window_width, change_window_heights, window_height)
(window_width, CURBEG, CURSIZE, enlarge_window)
(adjust_window_trailing_edge, Fadjust_window_trailing_edge)
(Fenlarge_window, Fshrink_window): Remove.  Window resizing is
handled in window.el.
(make_dummy_parent): Rename to make_parent_window and give it a
second argument horflag.
(make_window): Don't set resize_proportionally any more.
(Fsplit_window): Remove.  Windows are split in window.el.
(save_restore_action, save_restore_orig_size)
(shrink_window_lowest_first, save_restore_orig_size): Remove.
Resize mini windows in window.el.
(grow_mini_window, shrink_mini_window): Implement by calling
Qresize_root_window_vertically, resize_window_check and
resize_window_apply.
(saved_window, Fset_window_configuration, save_window_save): Do
not handle orig_top_line, orig_total_lines, and
resize_proportionally.
(window_min_height, window_min_width): Move to window.el.
(keys_of_window): Move bindings for delete-other-windows,
split-window, delete-window and enlarge-window to window.el.

* buffer.c: Temporarily extern Qdelete_window.
(Fbury_buffer): Temporarily call Qdelete_window instead of
Fdelete_window (Fbury_buffer will move to window.el soon).

* frame.c (set_menu_bar_lines_1): Remove code handling
orig_top_line and orig_total_lines.

* dispnew.c (adjust_frame_glyphs_initially): Don't use
set_window_height but set heights directly.
(change_frame_size_1): Use resize_frame_windows.

* xdisp.c (init_xdisp): Don't use set_window_height but set
heights directly.

* xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use
resize_frame_windows instead of change_window_heights and run
run_window_configuration_change_hook.

* w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows
instead of change_window_heights and run
run_window_configuration_change_hook.

* window.el (window-min-height, window-min-width): Move here
from window.c.  Add defcustoms and rewrite doc-strings.
(resize-mini-window, resize-window): New functions.
(adjust-window-trailing-edge, enlarge-window, shrink-window):
Move here from window.c.
(maximize-window, minimize-window): New functions.
(delete-window, delete-other-windows, split-window): Move here
from window.c.
(window-split-min-size): New function.
(split-window-keep-point): Mention split-window-above-each-other
instead of split-window-vertically.
(split-window-above-each-other, split-window-vertically): Rename
split-window-vertically to split-window-above-each-other and
provide defalias for old definition.
(split-window-side-by-side, split-window-horizontally): Rename
split-window-horizontally to split-window-side-by-side and provide
defalias for the old definition.
(ctl-x-map): Move bindings for delete-window,
delete-other-windows and enlarge-window here from window.c.
Replace bindings for split-window-vertically and
split-window-horizontally by bindings for
split-window-above-each-other and split-window-side-by-side.

* cus-start.el (all): Remove entries for window-min-height and
window-min-width.  Add entries for window-splits and
window-nest.
2011-06-10 08:55:18 +02:00
Katsumi Yamaoka
b229f37d43 Improve Gnus' dribble data handling. 2011-06-10 00:10:24 +00:00
Glenn Morris
5b4d6e0e88 * lisp/calendar/appt.el (appt-mode-line): Eliminate one local variable. 2011-06-09 16:36:04 -04:00
Glenn Morris
80675c21af Eliminate some code duplication in appt.el.
* lisp/calendar/appt.el (appt-mode-line): New function.
(appt-check, appt-disp-window): Use it.
2011-06-09 16:25:34 -04:00
Glenn Morris
f0da764a5c Allow/recommend explicit args for minor-modes in file local eval:s.
* lisp/files.el (hack-one-local-variable-eval-safep):
Allow minor-modes with explicit +/-1 arguments.

* doc/emacs/custom.texi (Specifying File Variables):
Recommend explicit arguments for minor modes.

* etc/NEWS: Likewise.

* lisp/doc-view.el, lisp/net/soap-client.el: Update file locals.
2011-06-09 16:22:06 -04:00
Ted Zlatanov
59f623b770 Add `xterm-extra-capabilities' defcustom for terminals where the xterm capabilities query is not needed or wanted.
* term/xterm.el (xterm): Add defgroup.
(xterm-extra-capabilities): Add defcustom to supply known xterm
capabilities, skip querying them, or query them (default).
(terminal-init-xterm): Use it.
(terminal-init-xterm-modify-other-keys): New function to set up
modifyOtherKeys support to simplify `terminal-init-xterm'.
2011-06-09 11:58:18 -05:00
Eli Zaretskii
638e9005f1 Fix bug #8780 with decoding files after using ange-ftp.
lisp/net/ange-ftp.el (ange-ftp-insert-file-contents): Let-bind
 buffer-file-type before setting its value, to avoid disastrous
 global effects on decoding files for DOS/Windows systems.
2011-06-09 12:40:51 +03:00
Martin Rudalics
9aab8e0d8b Final preparations in window.el for new window resize code.
* window.el (resize-window-reset, resize-window-reset-1)
(resize-subwindows-skip-p, resize-subwindows-normal)
(resize-subwindows, resize-other-windows, resize-this-window)
(resize-root-window, resize-root-window-vertically)
(window-deletable-p, window-or-subwindow-p)
(frame-root-window-p): New functions.
2011-06-09 10:41:36 +02:00
Glenn Morris
e8b08aeeca ange-ftp fixes for dired switches not being just a single short option.
* lisp/net/ange-ftp.el (ange-ftp-switches-ok): New function.
(ange-ftp-get-files): Use it.
2011-06-08 23:07:11 -07:00
Alexander Klimov
254c37a51d Small fixes for dired-listing-switches usage.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg01000.html

* lisp/mail/sendmail.el (mail-recover-1, mail-recover):
* lisp/files.el (recover-file, recover-session):
Handle dired-listing-switches not being just a single short option.
2011-06-08 22:33:26 -07:00
Glenn Morris
35d7dbd3f3 Allow some appt.el display functions to handle lists.
* lisp/calendar/appt.el (appt-display-message, appt-disp-window):
Handle lists of appointments.
2011-06-08 22:08:11 -07:00
Martin Rudalics
387522b285 A few new functions and rewrites in window.el.
* window.el (one-window-p): Move down in code.  Rewrite
doc-string.
(window-current-scroll-bars): Rewrite doc-string.  Normalize
live window argument.
(walk-windows, get-window-with-predicate, count-windows):
Rewrite doc-string.  Use window-list-1.
(window-in-direction-2, window-in-direction, get-mru-window):
New functions.
2011-06-08 11:13:43 +02:00
Glenn Morris
2c5871045a Merge from emacs-23; up to 2010-06-13T18:15:45Z!eliz@gnu.org. 2011-06-08 00:17:26 -07:00
Ivan Kanis
0de12c52c3 * lisp/calendar/appt.el (appt-check): Move some initializations into the let. 2011-06-07 23:57:38 -07:00
Martin Rudalics
f3d1777e71 window-height, window-width, and window-full-width-p are now in window.el.
* window.c (Fwindow_height, Fwindow_width, Fwindow_full_width_p):
Remove.
* window.el (window-height): Defalias to window-total-height.
(window-width): Defalias to window-body-width.
2011-06-08 07:40:45 +02:00
Chong Yidong
18af70d025 Some changes and re-organization for animated gif support.
* lisp/image.el (image-animate-max-time): Moved to image-mode.el.
(create-animated-image): Remove unnecessary function.
(image-animate): Rename from image-animate-start.  New arg.
(image-animate-stop): Removed; just use image-animate-timer.
(image-animate-timer): Use car-safe.
(image-animate-timeout): Rename argument.

* lisp/image-mode.el (image-toggle-animation): New command.
(image-mode-map): Bind it to RET.
(image-mode): Update message.
(image-toggle-display-image): Avoid a spurious cache flush.
(image-transform-rotation): Doc fix.
(image-transform-properties): Return quickly in the normal case.
(image-animate-loop): Rename from image-animate-max-time.
2011-06-07 14:32:12 -04:00
Martin Rudalics
a1511cafb5 Add and rewrite window size functions in window.el.
* window.el (window-safe-min-height, window-safe-min-width):
New constants.
(window-size-ignore, window-min-size, window-min-size-1)
(window-sizable, window-sizable-p, window-size-fixed-1)
(window-size-fixed-p, window-min-delta-1, window-min-delta)
(window-max-delta-1, window-max-delta, window-resizable)
(window-resizable-p, window-total-height, window-total-width)
(window-body-width): New functions.
(window-full-height-p, window-full-width-p): Rewrite using
window-total-size.
(window-body-height): Rewrite using window-body-size.
2011-06-07 15:50:31 +02:00
Martin Rudalics
190b47e683 Move get-lru-window and get-largest-window to window.el.
* window.c (window_loop): Remove handling of GET_LRU_WINDOW and
GET_LARGEST_WINDOW.
(Fget_lru_window, Fget_largest_window): Move to window.el.

* window.el (get-lru-window, get-largest-window): Move here from
window.c.  Rename first argument to ALL-FRAMES.  Rephrase
doc-strings.
(get-buffer-window-list): Rewrite using window-list-1.  Rephrase
doc-string.
2011-06-07 15:23:08 +02:00
Martin Rudalics
85cc1f1195 Add window-tree based, atomic and side window functions to window.el.
* window.el (window-right, window-left, window-child)
(window-child-count, window-last-child, window-any-p)
(normalize-live-buffer, normalize-live-frame)
(normalize-any-window, normalize-live-window)
(window-iso-combination-p, window-iso-combined-p)
(window-iso-combinations)
(walk-window-tree-1, walk-window-tree, walk-window-subtree)
(windows-with-parameter, window-with-parameter)
(window-atom-root, make-window-atom, window-atom-check-1)
(window-atom-check, window-side-check, window-check): New
functions.
(ignore-window-parameters, window-sides, window-sides-vertical)
(window-sides-slots): New variables.
(window-size-fixed): Move down in code.  Minor doc-string fix.
2011-06-06 17:21:07 +02:00
Andreas Schwab
e71564921e * lisp/comint.el (comint-dynamic-complete-as-filename)
(comint-dynamic-complete-filename): Correctly call
completion-in-region.
2011-06-06 01:20:16 +02:00
Deniz Dogan
7e821d0da8 * lisp/net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced in last change. 2011-06-05 21:39:17 +02:00
Deniz Dogan
ac09b8a128 * lisp/net/rcirc.el (rcirc-prompt-for-encryption): New function.
(rcirc): Use it to prompt for encryption.
2011-06-05 21:03:28 +02:00
Roland Winkler
34699b85fd lisp/textmodes/bibtex.el: new command bibtex-search-entries 2011-06-05 00:46:43 -05:00
Roland Winkler
004dedd364 lisp/textmodes/bibtex.el: various small bug fixes 2011-06-04 23:58:39 -05:00
Roland Winkler
022fe7ce8b lisp/textmodes/bibtex.el (bibtex-search-entry-globally): New variable 2011-06-04 23:47:45 -05:00
Roland Winkler
b7c3692a4c lisp/textmodes/bibtex.el (bibtex-entry-format): new option sort-fields 2011-06-04 23:39:40 -05:00
Juanma Barranquero
499719b776 Fixes bug#8730, bug#8781. Do not merge into trunk.
lisp/progmodes/python.el (python-after-info-look): Add autoload cookie.
(python-unload-function): New function.
2011-06-05 02:32:23 +02:00
Juanma Barranquero
8eda563d1e lisp/doc-view.el: Silence compiler warning. 2011-06-05 02:18:46 +02:00
Reuben Thomas
b1adde906f * flymake.el (flymake-compilation-prevents-syntax-check): Doc fix (Bug#8713). 2011-06-04 19:06:53 -04:00
Chong Yidong
a800408659 * lisp/repeat.el (repeat-on-final-keystroke): Fix type (Bug#8696). 2011-06-04 19:00:29 -04:00
Chong Yidong
7dbe3dbc59 Doc fixes for timer.el (Bug#8793).
* emacs-lisp/timer.el (timer-activate): Remove unused arg.
(timer-activate, timer-activate-when-idle): Doc fix.
2011-06-04 18:46:26 -04:00
Juanma Barranquero
d30550b193 lisp/loadhist.el (unload-feature-special-hooks): Add comint-output-filter-functions. 2011-06-04 23:30:14 +02:00
Deniz Dogan
ade1b01cb4 Fix mistake in last iswitchb.el bug fix. 2011-06-04 17:13:11 +02:00
Michael Albinus
0c33dd17ea * net/tramp-sh.el (tramp-find-shell): Apply workaround also for
"SunOS 5.10".
2011-06-04 16:11:26 +02:00
Michael Albinus
f8f91c2ba8 * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts)
(tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
(tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
(tramp-parse-putty):
* net/tramp-sh.el (tramp-completion-function-alist-rsh)
(tramp-completion-function-alist-ssh)
(tramp-completion-function-alist-telnet)
(tramp-completion-function-alist-su)
(tramp-completion-function-alist-putty): Set `tramp-autoload'
cookie.

* net/tramp-ftp.el:
* net/tramp-sh.el:
* net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after
load "tramp.el" `tramp-set-completion-function'.
2011-06-04 15:58:37 +02:00
Stefan Monnier
e17d900361 * lisp/shell.el: Require and use pcomplete.
(shell-dynamic-complete-functions): Add pcomplete-completions-at-point.
(shell-completion-vars): Set pcomplete-default-completion-function.
2011-06-04 09:31:34 -03:00
Deniz Dogan
6c4cab0308 * lisp/iswitchb.el (iswitchb-window-buffer-p): Use member' instead of memq'.
Fixes: debbugs:8799
2011-06-04 13:02:37 +02:00
Andreas Schwab
5993c059db * lisp/url/url-future.el (url-future-test): Fix scope of `saver'. 2011-06-04 09:53:22 +02:00
Stefan Monnier
ea9fafe093 * lisp/subr.el (make-progress-reporter): Add "..." by default.
Fixes: debbugs:8785
2011-06-02 15:04:44 -03:00
Juanma Barranquero
b3e945d3a4 Silence warning for unused `dotimes' counter variables.
* mpc.el (mpc-select-extend, mpc-songpointer-context):
* vc/log-view.el (log-view-beginning-of-defun):
* vc/smerge-mode.el (smerge-apply-resolution-patch)
  (smerge-refine-forward, smerge-refine-chopup-region):
2011-06-02 13:24:12 +02:00
Glenn Morris
910fcf6e00 Auto-commit of loaddefs files. 2011-06-02 06:21:27 -04:00
Stefan Monnier
7d5200893a * lisp/net/tramp.el (tramp-with-progress-reporter): Rename from
with-progress-reporter.  Use `declare'.
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-gvfs.el: Update all uses.
2011-06-02 00:48:23 -03:00
Jay Belanger
a1c2400f27 * calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
buffer isn't killed before making it current.
2011-06-01 19:09:42 -05:00
Teodor Zlatanov
8d009f4aa9 gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore. 2011-06-01 22:35:26 +00:00
Stefan Monnier
2403c841a8 Silence various byte-compiler warnings.
* lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
`access-type' and new obsolescence format.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
new format.
(byte-compile-check-variable): New `access-type' argument.
Only warn if the access-type is obsolete.
(byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
(byte-compile-variable-set): Adjust callers.
* lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
* lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
setting it as obsolete.
* lisp/simple.el (minibuffer-completing-symbol):
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
access as obsolete.
* lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
obsolete yet.
* lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
code referring to obsolete var.
(quail-choose-completion-string): Remove.
* lisp/server.el (server-clients-with, server-kill-buffer-query-function)
(server-kill-emacs-query-function): Silence "unused `proc'" warnings.
* lisp/proced.el (proced-send-signal):
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
Replace completion-annotate-function with completion-extra-properties.
2011-06-01 16:32:04 -03:00
Glenn Morris
3b7d5980c9 Add :version tags for url-queue.el.
* lisp/url/url-queue.el (url-queue-parallel-processes, url-queue-timeout):
Add :version tag for options that will be new in 24.1.
2011-06-01 10:34:24 -07:00
Stefan Monnier
fb5b2591a6 * lisp/simple.el (goto-line): Use read-number.
(overriding-map-is-bound): Remove.
(saved-overriding-map): Change default.
(save&set-overriding-map): Rename from ensure-overriding-map-is-bound;
Take the map as argument.
(universal-argument, negative-argument, digit-argument): Use it.
(restore-overriding-map): Adjust.
(do-auto-fill): Use fill-forward-paragraph.
(keyboard-quit): Don't signal an error when debug-on-quit is non-nil.
2011-06-01 12:52:35 -03:00
Stefan Monnier
fd6fa53f88 * lisp/minibuffer.el (minibuffer-inactive-mode-map): New var.
(minibuffer-inactive-mode): New major mode.
* src/minibuf.c (get_minibuffer, read_minibuf_unwind): Call it.
* lisp/mouse.el (mouse-drag-region): Remove the "mouse-1 pops up
the *Messages* buffer" hack.
(mouse-popup-menubar): Don't burp if the event is a normal key.
2011-06-01 12:34:41 -03:00
Stefan Monnier
ec8bd86f04 * lisp/thingatpt.el (forward-whitespace): Typo. 2011-06-01 11:28:54 -03:00
Stefan Monnier
2462470b9e Miscellaneous tweaks.
* lisp/emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for
lexical scoping as in subr.el's dolist and dotimes.
* lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf):
Silence compiler warning.
* lisp/thingatpt.el (forward-whitespace): Trivial coding style fix.
* lisp/subr.el (with-output-to-temp-buffer): Provide an edebug spec.
* lisp/international/ccl.el (ccl-compile): Trivial simplification.
* lisp/help-fns.el (help-do-arg-highlight): Silence compiler warning.
* lisp/emacs-lisp/testcover.el (testcover-end): Remove spurious
`printflag' argument.
* lisp/emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable):
Purecopy the whole obsolescence data.
2011-06-01 11:19:45 -03:00
Glenn Morris
18613c7e90 Auto-commit of loaddefs files. 2011-06-01 06:19:26 -04:00
Leo Liu
108bf785c8 Fix last change on rcirc-print and rcirc-decode-coding-system 2011-06-01 16:10:42 +08:00
Glenn Morris
67a0931d39 Use derived-mode-p in previous change. 2011-05-31 20:50:20 -07:00
Glenn Morris
d1a5d56a0c * lisp/mail/emacsbug.el (report-emacs-bug-hook): Mailclient ignores From. 2011-05-31 20:35:49 -07:00
Katsumi Yamaoka
357e1c676c Update. 2011-06-01 00:22:55 +00:00
Gnus developers
2da9c605f8 Merge changes made in Gnus trunk.
gnus.texi (Store custom flags and keywords): Refer to `gnus-registry-article-marks-to-{chars,names}' instead of `gnus-registry-user-format-function-{M,M2}'.
shr.el (shr-rescale-image): Add an :ascent of 100 to images so that the underline comes at the bottom.
gnus-registry.el (gnus-registry-article-marks-to-chars): Rename from `gnus-registry-user-format-function-M' and declare the latter obsolete.
 (gnus-registry-article-marks-to-names): Rename from `gnus-registry-user-format-function-M2'.
shr.el (shr-browse-image): Copy the URL if called interactively.
2011-05-31 22:08:51 +00:00
Stefan Monnier
30a235016e * lisp/minibuffer.el (complete-with-action): Return nil for the metadata and
boundaries of non-functional tables.
(completion-table-dynamic): Return nil for the metadata.
(completion-table-with-terminator): Add default case, using
complete-with-action.
(completion--metadata): New function.
(completion-all-sorted-completions, minibuffer-completion-help): Use it
to try and avoid pathological performance problems.
(completion--embedded-envvar-table): Return `category' metadata.
2011-05-31 18:40:30 -03:00
Lars Magne Ingebrigtsen
5a94384bca (url-queue-parallel-processes): Increase the default to 6, since 2 seems too conservative for normal usage. 2011-05-31 22:58:01 +02:00
Lars Magne Ingebrigtsen
bcd54f8370 Add the tiny convenience function `process-alive-p'. 2011-05-31 20:40:00 +02:00
Stefan Monnier
e227544d7b * lisp/emacs-lisp/debug.el (debug): Save&restore not just the buffer's
content but also its previous major mode.
2011-05-31 12:41:14 -03:00
Helmut Eller
e8296fdc98 * debug.el (debug): Restore the previous content of the
*Backtrace* buffer when we exit with C-M-c.
2011-05-31 12:24:33 -03:00
Ted Zlatanov
e300a61b96 * url-future.el: Add general futures facility. 2011-05-31 05:47:22 -05:00
Katsumi Yamaoka
1a3c720964 gnus-sum.el (gnus-summary-exit): Make sure to kill article buffer in ephemeral group. 2011-05-31 10:37:35 +00:00
Stefan Monnier
620c53a664 * lisp/minibuffer.el: Add metadata method to completion tables.
(completion-category-overrides): New defcustom.
(completion-metadata, completion--field-metadata)
(completion-metadata-get, completion--styles)
(completion--cycle-threshold): New functions.
(completion-try-completion, completion-all-completions):
Add `metadata' argument to choose completion-styles.
(completion--do-completion): Use metadata to choose cycling.
(completion-all-sorted-completions): Use metadata for sorting.
Remove :completion-cycle-penalty which is not needed any more.
(completion--try-word-completion): Add `metadata' argument.
(minibuffer-completion-help): Check metadata for annotation function
and sorting.
(completion-file-name-table): Return `category' metadata.
(minibuffer-completing-file-name): Make obsolete.
* lisp/simple.el (minibuffer-completing-symbol): Make obsolete.
* lisp/icomplete.el (icomplete-completions): Pass new `metadata' param to
completion-try-completion.
* src/minibuf.c (Finternal_complete_buffer): Return `category' metadata.
(read_minibuf): Use get_minibuffer.
(syms_of_minibuf): Use DEFSYM.
(Qmetadata): New var.
* src/data.c (Qbuffer): Don't make it static.
(syms_of_data): Use DEFSYM.
2011-05-31 00:03:38 -03:00
Lars Magne Ingebrigtsen
b5244046e1 Merge changes made in Gnus trunk.
gnus-group.el (gnus-group-mark-article-read): It's possible that we want to have `gnus-newsgroup-unselected' kept sorted.  If this isn't done, then unselected articles may be marked as read.
pop3.el (pop3-open-server): Erase the buffer after the greeting, since not doing this seems to lead to a race condition in pop3-logon.
nnvirtual.el (nnvirtual-request-article): Bind `gnus-command-method' so that the call chain it correct when we call "upwards".
gnus-sum.el (gnus-select-newsgroup): Auto-expiry doesn't make sense in read-only groups.
gnus-group.el (gnus-group-mark-article-read): Ditto.
message.el (message-cite-reply-position): Doc string fix.
nnimap.el (nnimap-transform-headers): Simplify regexp to hopefully avoid regexp overflow.
 (nnimap-transform-split-mail): Ditto.
pop3.el (pop3-retr): Error out if the server closes the connection.
2011-05-30 22:11:52 +00:00
Stefan Monnier
1257e75502 * lisp/mail/smtpmail.el (smtpmail-send-data): Add progress reporter. 2011-05-30 14:23:47 -03:00
Stefan Monnier
7a54264e4c * lisp/gnus/mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed
mm-with-unibyte-current-buffer.  The buffer should not contain any
multibyte chars anyway at this stage.
2011-05-30 14:21:59 -03:00
Stefan Monnier
6105399dcc * bytecomp.el (byte-compile-defvar): Add note about quoted lambda. 2011-05-30 14:14:19 -03:00
Leo Liu
5ab33f2b8a Decode all incoming messages in rcirc.el
Also allow automatic coding system detection if
rcirc-decode-coding-system is nil.

See discussion in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8744
2011-05-30 20:23:56 +08:00
Leo Liu
3767e706d7 Use a visible buffer name for rcirc-debug-buffer 2011-05-30 20:04:44 +08:00
Gnus developers
ca3cf0a561 shr.el (shr-urlify): Use shr-add-font to make underlines be less ugly at the end of lines.
smiley.el (gnus-smiley-file-types): Add gif as supported file type.
2011-05-29 23:28:45 +00:00
Chong Yidong
e8cbec34e8 Fix animated gifs (Bug#6981).
* lisp/image-mode.el (image-toggle-display-image): Ensure that the
image spec passed to the animate timer is the same object as in
the the buffer's display property.
(image-transform-properties): Doc fix.

* lisp/image.el (image-animate-max-time): Default to nil.

* lisp/image.el (image-animate-max-time): Allow nil and t values.
Default to nil.
(create-animated-image): Doc fix.
(image-animate-start): Remove second arg; just use
image-animate-max-time.
(image-animate-timeout): Doc fix.  Args changed.
2011-05-29 17:35:35 -04:00
Martin Rudalics
159daf8794 * menu-bar.el (kill-this-buffer-enabled-p): Avoid looping over entire buffer list (Bug#8184). 2011-05-29 15:11:23 -04:00
Chong Yidong
d66c4c7ce6 Doc fixes for imagemagick support code.
* lisp/image.el (imagemagick-types-inhibit)
(imagemagick-register-types): Doc fix.

* src/image.c: Various fixes to ImageMagick code comments.
(Fimagemagick_types): Doc fix.
2011-05-29 14:17:28 -04:00
Deniz Dogan
80aec78047 * net/rcirc.el (rcirc): Use the user's stored encryption method by default. 2011-05-29 07:42:00 +02:00
Leo Liu
b1c83d95b3 Add option :named to defstruct in url-cookie.el
or url-cookie-p won't be defined.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8747 for details.
2011-05-29 10:45:03 +08:00
Chong Yidong
1dd3c2d9b2 Move clipboard-manager functionality out of hooks.
* lisp/select.el: Don't perform clipboard-manager saving in hooks;
leave the hooks empty.

* src/emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all.
* src/frame.c (delete_frame): Call x_clipboard_manager_save_frame.

* src/xselect.c (x_clipboard_manager_save_frame)
(x_clipboard_manager_save_all): New functions.
(Fx_clipboard_manager_save): Lisp function deleted.

* src/xterm.h: Update prototype.
2011-05-28 20:45:00 -04:00
Chong Yidong
8e6ca83dfe Make first mode-line dash an empty space on graphical terminals (Bug#7295).
* lisp/bindings.el (help-echo): Make the initial non-indicator dash
empty on graphical terminals.
2011-05-28 19:43:11 -04:00
Chong Yidong
fbeba6e230 * startup.el (normal-splash-screen): Remove gratuitous mode-line setting (Bug#8740). 2011-05-28 19:30:17 -04:00
Chong Yidong
bfbbace74b * lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659). 2011-05-28 19:07:43 -04:00
Leo Liu
60e5652346 New major mode: Occur Edit mode.
* lisp/replace.el (occur-menu-map, occur-edit-mode-map): New vars.
(occur-mode-map): Bind occur-edit-mode.  Use occur-menu-map.
(occur-edit-mode): New major mode (Bug#8463).
(occur-after-change-function): New function.
(occur-engine): Give Occur tags a read-only property.
2011-05-28 18:56:14 -04:00
Alp Aker
4ac619f07b Additional minor fix to (Bug#8539).
* lisp/buff-menu.el (Buffer-menu-buffer+size): Use Buffer-menu-buffer-column.
2011-05-28 16:08:05 -04:00
Kevin Ryde
2b1e1a2263 * lisp/subr.el (def-edebug-spec): Doc fix (Bug#8430). 2011-05-28 15:36:02 -04:00
Chong Yidong
5d344e883f Tweak auto-mode-alist to handle config.h.in (Bug#8547).
* lisp/files.el (auto-mode-alist): Move config rule after the
in-stripping one.
2011-05-28 15:26:25 -04:00
Alp Aker
60ed8c727a Use Buffer-menu-buffer-column to replace hard-coded values (Bug#8539).
* lisp/buff-menu.el (Buffer-menu-revert-function, Buffer-menu-sort):
Use Buffer-menu-buffer-column.
2011-05-28 15:13:00 -04:00
Chong Yidong
23db196eea * emacs-lisp/re-builder.el (re-builder): Improve doc (Bug#8286). 2011-05-28 14:48:41 -04:00
Dima Kogan
5012f24c2a More fixes to prevent hide-show from being confused by commented-out braces (Bug#8279).
* progmodes/hideshow.el (hs-looking-at-block-start-p): New fun.
(hs-hide-block-at-point, hs-find-block-beginning)
(hs-already-hidden-p, hs-hide-block, hs-show-block): Use it.
2011-05-28 14:35:29 -04:00
Glenn Morris
6a639b16ed * lisp/startup.el (fancy-about-screen): Use standard mode line. (Bug#8740) 2011-05-28 10:47:45 -07:00
Chong Yidong
5199bde177 In describe-function, print the parent of a derived mode.
* lisp/help-fns.el (describe-function-1): If the function is a derived
major mode, print the parent mode.
2011-05-28 13:40:37 -04:00
Chong Yidong
d43eaf2c3c Make CC modes inherit from prog-mode.
* lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode)
(idl-mode, pike-mode, awk-mode): Inherit from prog-mode.
2011-05-28 13:16:54 -04:00
Stefan Monnier
0ff8e1ba6b * lisp/minibuffer.el (completion--capf-wrapper): Check applicability before
retuning non-nil for non-exclusive completion data.
* lisp/progmodes/etags.el (tags-completion-at-point-function):
* lisp/info-look.el (info-lookup-completions-at-point): Mark as non-exclusive.
(info-complete): Adjust accordingly.
* lisp/erc/erc-pcomplete.el (erc-pcompletions-at-point): Mark the completion
data as non-exclusive if it's using the default-completion-function.
(pcomplete-erc-parse-arguments): Rename pcomplete-parse-erc-arguments.
(pcomplete-erc-setup): Use new name.
2011-05-27 23:10:32 -03:00
Stefan Monnier
423428a80c * lisp/info-look.el: Convert to lexical-binding and completion-at-point.
(info-lookup-completions-at-point): New function.
(info-complete): Use it and completion-in-region.
2011-05-27 22:33:10 -03:00
Drew Adams
b74aa22b0a * lisp/isearch.el: Let M-e start with point at the first mismatched char.
(isearch-fail-pos): New function.
(isearch-edit-string): Use it.
2011-05-27 22:26:53 -03:00
Dmitry Kurochkin
66e2e71d55 * lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Fixes: debbugs:8721
2011-05-27 22:14:38 -03:00
Toby Cubitt
93a1c12a9a * lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
traversal functions for avl-trees.  Consolidate rebalancing code.
2011-05-27 20:03:26 -03:00
Toby Cubitt
eb95d01d15 * lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
traversal functions for avl-trees.
(avl-tree--stack): New struct.
(avl-tree-stack-p, avl-tree--stack-repopulate): New funs.
(avl-tree-enter): Add optional `updatefun' arg.
(avl-tree--do-enter): Add optional `updatefun' arg.  Change return value.
(avl-tree-delete): Add optional `test' and `nilflag' args.
(avl-tree--do-delete): Add `test' and `nilflag' args.  Change return value.
(avl-tree-member): Add optional `nilflag'
(avl-tree-member-p): New function.
(avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar): New functions.
(avl-tree-stack, avl-tree-stack-pop, avl-tree-stack-first)
(avl-tree-stack-empty-p): New functions.
2011-05-27 19:58:29 -03:00
Toby Cubitt
3769ddcf1e * lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename from
avl-tree--del-balance1 and make it work both ways.
(avl-tree--del-balance2): Remove.
(avl-tree--enter-balance): Rename from avl-tree--enter-balance1 and
make it work both ways.
(avl-tree--enter-balance2): Remove.
(avl-tree--switch-dir, avl-tree--dir-to-sign, avl-tree--sign-to-dir):
New macros.
(avl-tree--mapc, avl-tree-map): Add direction argument.
2011-05-27 16:58:19 -03:00
David Michael
7a6b1aef76 * lisp/files.el (interpreter-mode-alist): Add rbash.
Fixes: debbugs:8745
2011-05-27 16:33:48 -03:00
Chong Yidong
a9f737eef6 Support X clipboard managers.
* lisp/select.el (xselect-convert-to-targets): Add MULTIPLE target to list.
(xselect-convert-to-save-targets): New function.

* src/xselect.c: Support for clipboard managers.
(Vselection_alist): Move to termhooks.h as terminal-local var.
(LOCAL_SELECTION): New macro.
(x_atom_to_symbol): Handle x_display_info_for_display fail case.
(symbol_to_x_atom): Remove gratuitous arg.
(x_handle_selection_request, lisp_data_to_selection_data)
(x_get_foreign_selection, Fx_register_dnd_atom): Callers changed.
(x_own_selection, x_get_local_selection, x_convert_selection): New
arg, specifying work frame.  Use terminal-local Vselection_alist.
(some_frame_on_display): Delete unused function.
(Fx_own_selection_internal, Fx_get_selection_internal)
(Fx_disown_selection_internal, Fx_selection_owner_p)
(Fx_selection_exists_p): New optional frame arg.
(frame_for_x_selection, Fx_clipboard_manager_save): New functions.
(x_handle_selection_clear): Don't treat other terminals with the
same keyboard specially.  Use the terminal-local Vselection_alist.
(x_clear_frame_selections): Use Frun_hook_with_args.

* src/termhooks.h (Vselection_alist): Make it terminal-local.

* src/terminal.c (create_terminal): Initialize it.

* src/xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms.

* src/xterm.h: Add support for those atoms.
2011-05-27 12:17:59 -04:00
Glenn Morris
be520aca79 Merge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com. 2011-05-27 00:18:15 -07:00
Kenichi Handa
c92a1e54c4 mail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047-encode-encoded-words to nil. 2011-05-27 13:54:39 +09:00
Glenn Morris
5ec8a86217 * lisp/mail/emacsbug.el: Don't require url-util. 2011-05-26 21:58:50 -04:00
Glenn Morris
4b29d9fbfb * lisp/shell.el (shell-directory-tracker): Case matters. (Bug#8735) 2011-05-26 21:54:56 -04:00
Glenn Morris
e145f1881a Make set-auto-mode respect mode: entries at the end of the file (bug#8586)
* lisp/files.el (set-auto-mode):
Also respect mode: entries at the end of the file.

* doc/lispref/modes.texi (Auto Major Mode):
Update for set-auto-mode changes.

* doc/emacs/custom.texi (Specifying File Variables):
Major modes no longer need come first.

* etc/NEWS: Mention this.
2011-05-26 21:00:53 -04:00
Glenn Morris
8c7c1f6d95 Repeat previous gnus-group.el change for bugs.debian.org.
* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debian reports as well.
2011-05-26 20:55:07 -04:00
Glenn Morris
fc6c27276c Restrict regexp match in previous emacsbug.el change. 2011-05-26 09:14:53 -07:00
Glenn Morris
27b48e635a * lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes. 2011-05-26 00:35:47 -07:00
Glenn Morris
98f593b8d4 Downcase mode names in recent files.el changes.
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
Downcase mode names, as seems to be traditional.
2011-05-26 00:23:11 -07:00
Glenn Morris
e4245494ba Adjust prompt in previous emacsbug.el change. 2011-05-25 19:57:08 -07:00
Glenn Morris
7d15102b76 Try to check From address in bug reports (bug#8038)
* lisp/mail/emacsbug.el (report-emacs-bug): Mention checking From address.
(report-emacs-bug-hook): Try to validate the From address.
2011-05-25 20:52:33 -04:00
Glenn Morris
9945191976 Minor gnus-group.el change.
* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debbugs.gnu.org reports.
2011-05-25 20:49:54 -04:00
Julien Danjou
51d5b4eca9 * textmodes/rst.el (rst-define-level-faces): Do not define face
symbol if it is already defined.
2011-05-25 11:03:59 +02:00
Vincent Belaïche
91513f63c6 * lisp/play/5x5.el (5x5-new-game, 5x5-randomize):
Reset 5x5-solver-output to nil when a new grid is cast.
(5x5-log-init, 5x5-log): Use defsubst instead of defmacro to shunt
these debugging traces, as defmacro breaks the compiled code.
2011-05-24 15:22:09 -03:00
Dmitry Kurochkin
4d90d6d078 * lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Fixes: debbugs:8721
2011-05-24 15:15:07 -03:00
Katsumi Yamaoka
88a7a941cb gnus-art.el (gnus-mime-delete-part): Fix mm-handle-filename usage. 2011-05-24 09:46:18 +00:00
Leo Liu
e1b90ef6ec Implement primitive `sha1' and remove sha1.el 2011-05-24 16:22:58 +08:00
Glenn Morris
db0406bb64 Merge from emacs-23; up to 2010-06-11T21:26:13Z!lekktu@gmail.com. 2011-05-23 20:54:18 -07:00
Glenn Morris
f86307039d * lisp/progmodes/python.el (brm-menu): Declare. 2011-05-23 20:38:35 -07:00
Glenn Morris
8831bbeda4 * lisp/emulation/viper.el (viper-set-hooks): Declare. 2011-05-23 20:37:31 -07:00
Glenn Morris
eb8a5e9b13 Small cleanup of recent 5x5.el changes.
* lisp/play/5x5.el (5x5-log-init, 5x5-log): Evaluate when compiling.
(5x5-log-init, 5x5-log, 5x5-solver): Doc fixes.
(math-map-vec, math-sub, math-mul, math-make-intv, math-reduce-vec)
(math-format-number, math-pow, calcFunc-arrange, calcFunc-cvec)
(calcFunc-diag, calcFunc-trn, calcFunc-inv, calcFunc-mrow)
(calcFunc-mcol, calcFunc-vconcat, calcFunc-index): Declare.
2011-05-23 20:36:06 -07:00
Stefan Monnier
a2a25d2435 Add an :exit-function for completion-at-point.
* lisp/minibuffer.el (completion--done): New fun.
(completion--do-completion): Use it.  New arg `expect-exact'.
(minibuffer-complete, minibuffer-complete-word): Don't output message,
since completion--do-completion does it for us now.
(minibuffer-force-complete): Use completion--done and
completion--replace.  Handle sole-completion case with more care.
(minibuffer-complete-and-exit): Use new `expect-exact' arg.
(completion-extra-properties): New var.
(completion-annotate-function): Make obsolete.
(minibuffer-completion-help): Adjust accordingly.
Use completion-list-insert-choice-function.
(completion-at-point, completion-help-at-point):
Bind completion-extra-properties.
(completion-pcm-word-delimiters): Add | (for uniquify, for example).
* lisp/simple.el (completion-list-insert-choice-function): New var.
(completion-setup-function): Preserve it.
(choose-completion): Pay attention to it, shuffle the code a bit.
(choose-completion-string): New arg `insert-function'.

* lisp/textmodes/bibtex.el: Convert to lexical binding.
(bibtex-mode-map): Use completion-at-point.
(bibtex-mode): Use define-derived-mode&completion-at-point-functions.
(bibtex-completion-at-point-function): New fun, from bibtex-complete.
(bibtex-complete): Define as obsolete alias.
(bibtex-complete-internal): Remove.
(bibtex-format-entry): Remove unused sub-group in regexp.
* lisp/shell.el (shell--command-completion-data)
(shell-environment-variable-completion):
* lisp/pcomplete.el (pcomplete-completions-at-point):
* lisp/comint.el (comint--complete-file-name-data): Use :exit-function
instead of completion-table-with-terminator so it also works for
choose-completion.
2011-05-23 23:45:50 -03:00
Stefan Monnier
4f91a8160f Don't quote lambda expressions with `quote'. 2011-05-23 14:57:17 -03:00
Stefan Monnier
782fc81943 * lisp/vc/smerge-mode.el (smerge-refine-subst): Don't deactivate the mark.
Fixes: debbugs:8710
2011-05-23 14:03:03 -03:00
Stefan Monnier
e44e373d30 * lisp/emacs-lisp/lisp.el (up-list): Fix forward movement.
Fixes: debbugs:8708
2011-05-23 13:40:16 -03:00
Ken Manheimer
381987c350 * allout.el (allout-inhibit-auto-fill-on-headline): Create new
customization variable and implement: If non-nil, auto-fill will be
inhibited while on topic's header line.
2011-05-23 11:03:04 -04:00
Vincent Belaïche
b776bc70b7 * lisp/play/5x5.el: I/ Add an arithmetic solver to suggest positions to
click on. II/ Make 5x5 multisession. III/ Ensure that random grids
always have a solution in grid size = 5 cases.
(5x5-mode-map): Add keybinding to function `5x5-solve-suggest'.
(5x5-solver-output, 5x5-log-buffer): New vars.
(5x5-grid, 5x5-x-pos, 5x5-y-pos, 5x5-moves, 5x5-cracking):
Make these variables buffer local to achieve 5x5 multi-session-ness.
(5x5): Set 5x5-grid-size only if SIZE is non-negative.
(5x5-grid-to-vec, 5x5-vec-to-grid, 5x5-log-init, 5x5-log, 5x5-solver)
(5x5-solve-suggest): New funs.
(5x5-randomize): Use 5x5-make-move instead of 5x5-flip-cell to
randomize a grid so that we ensure that there is always a solution.
(5x5-make-random-grid): Allow other movement than flipping.
2011-05-23 11:46:41 -03:00
Kevin Ryde
7de88b6e91 * lisp/emacs-lisp/advice.el (ad-read-advised-function):
Use `function-called-at-point' as the default default, if it has
advice and passes PREDICATE.
2011-05-23 11:38:28 -03:00
Kenichi Handa
b8d747b9bd RFC2047-encode header of outgoing mails. 2011-05-23 13:44:29 +09:00
Stefan Monnier
bbca48fe46 * lisp/emacs-lisp/bytecomp.el (byte-compile-function-form): Only call
byte-compile-lambda if it's actually a lambda.
2011-05-22 22:15:17 -03:00
Stefan Monnier
b1ef1257fe * lisp/emacs-lisp/eieio.el (eieio-defgeneric-form-primary-only-one):
Fix function quoting.  Use backquote better.
2011-05-22 21:39:25 -03:00
Yuanle Song
92a9cc651a Make rng-xsd-check-pattern case sensitive (Bug#8516).
* nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive
matching.
2011-05-22 15:46:47 -04:00
Jari Aalto
f0fb805946 Maked "edited" tag stand out in vc-dir (Bug#8178).
* vc/vc-dir.el (vc-default-dir-printer): Give edited tag a
different face.
2011-05-22 15:36:07 -04:00
Chong Yidong
d5b44c937b Fix diff-changed face definition.
* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for
defface (Bug#8144).
2011-05-22 15:22:37 -04:00
Chong Yidong
02bd545076 Mark last change as tiny. 2011-05-22 14:47:51 -04:00
Sean Neakums
7261f6cee1 Fix for sc-nested-citation-p in supercite.el.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=109145

* mail/supercite.el (sc-default-cite-frame): Handle
sc-nested-citation-p when sc-cite-blank-lines-p is non-nil.
2011-05-22 14:46:49 -04:00
Stefan Monnier
9c848d8a75 * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for
funcall as well.  Warn when performing those conversions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix error report.

Fixes: debbugs:8712
2011-05-22 15:22:30 -03:00
Stefan Monnier
79106a44d3 * lisp/progmodes/grep.el (grep-mode): Fix it for good!
Fixes: debbugs:8684
2011-05-22 14:19:24 -03:00
Glenn Morris
162d78a17e Further tweak previous files.el change.
* lisp/files.el (hack-local-variables): In the MODE-ONLY case, try to
ignore minor modes.
2011-05-21 18:18:49 -07:00
Glenn Morris
80614e5701 Tweak previous files.el change.
* lisp/files.el (hack-local-variables-prop-line)
(hack-local-variables): In the MODE-ONLY case, return the full mode
symbol, including "-mode".
2011-05-21 17:34:41 -07:00
Glenn Morris
88dfa7568a More small hack-local-variables tweaks for MODE-ONLY case.
* lisp/files.el (hack-local-variables-prop-line): Small simplifications.
(hack-local-variables, hack-local-variables-prop-line):
If MODE-ONLY, return the mode, rather than just `t'.
2011-05-21 17:04:49 -07:00
Stefan Monnier
b7cf2c79c7 * lisp/progmodes/grep.el (grep-mode): Fix last change.
Fixes: debbugs:8684
2011-05-21 20:18:22 -03:00
Glenn Morris
7e4ccca345 Small files.el hack-local changes for mode-only case.
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
If only interested in the mode, don't bother doing the other stuff.
2011-05-21 15:33:12 -07:00
Glenn Morris
e8c061395d Auto-commit of loaddefs files. 2011-05-21 06:19:46 -04:00
Glenn Morris
637d46ca18 image-mode fix for bug#8567.
* image-mode.el (image-after-revert-hook):
Redraw all frames on which the image is visible.
2011-05-20 19:09:49 -07:00
Glenn Morris
973d955b4d * dired-aux.el (dired-touch-initial): Just use current-time. (Bug#6887) 2011-05-20 19:07:25 -07:00
Glenn Morris
3f1a855858 * wid-edit.el (widget-checklist-match-inline): Fix 2011-04-19 change. (Bug#8649) 2011-05-20 19:06:11 -07:00
Stefan Monnier
1dcf791fef * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine):
Also allow singlespace after single-letter capitals followed by a dot.
2011-05-20 15:20:12 -03:00
Stefan Monnier
96479927c9 * lisp/nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is
enabled.  Suggested by James Ahlborn <jahlborn@gmail.com>.

Fixes: debbugs:8704
2011-05-20 10:15:00 -03:00
Teodor Zlatanov
b018a6c910 gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide the thread moves us backwards and so we loop forever. 2011-05-20 01:00:46 +00:00
Nix
35fd0881e6 Small break-hardlink-on-save fix.
* files.el (basic-save-buffer-2):
Fix handling of break-hardlink-on-save with non-existent files.
2011-05-19 17:51:46 -07:00
Glenn Morris
b9704ad993 Remove $shortlisp from src/Makefile.in.
* configure.in (lisp_frag): New output file.

* src/lisp.mk: New file, split from Makefile.in, and inheriting its
  copyright years.
* src/Makefile.in (lisp): Move to separate file, inserted by @lisp_frag@.
(shortlisp): Remove.
($(etc)/DOC): Edit lisp.mk rather than using $shortlisp.

* lisp/loadup.el, doc/misc/Makefile.in: Comment changes.
2011-05-19 17:41:03 -07:00
Katsumi Yamaoka
cfe397c6d2 mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base64 data lines. 2011-05-20 00:03:51 +00:00
Deniz Dogan
9ff90d99bf * lisp/net/rcirc.el (rcirc-markup-urls): Check if rcirc-url-regexp is nil. 2011-05-19 14:38:39 +02:00
Deniz Dogan
8274564053 * lisp/net/rcirc.el (rcirc-mode): Initialize rcirc-urls to nil. 2011-05-19 09:55:34 +02:00
Glenn Morris
d1f21341e1 * lisp/progmodes/f90.el (f90-type-def-re): Handle "type, bind(c)". (Bug#8691) 2011-05-18 23:18:58 -07:00
Glenn Morris
4a72048482 Remove the SOME_MACHINE_LISP distinction in src/Makefile.in.
See discussion in http://debbugs.gnu.org/8302

* configure.in (NS_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT)
(WINDOW_SUPPORT): Remove output variables that are no longer used.

* lib-src/makefile.w32-in (echolisp): Remove rule that is no longer needed.
(clean): No more echolisp.tmp.

* .bzrignore: Remove lib-src/echolisp.tmp.

* lisp/emacs-lisp/autoload.el (batch-update-autoloads):
Set autoload-excludes by parsing lisp/loadup.el rather than Makefiles.

* lisp/loadup.el: Update commentary.

* msdos/sed1x.inp (TOOLTIP_SUPPORT, WINDOW_SUPPORT):
* msdos/sed1v2.inp (MSDOS_SUPPORT, NS_SUPPORT, MOUSE_SUPPORT)
(TOOLTIP_SUPPORT, WINDOW_SUPPORT): No need to edit these any more.

* src/Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT)
(REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT)
(BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove.
(lisp): Set the order to that of loadup.el.
(shortlisp): Make it a copy of $lisp.
(SOME_MACHINE_LISP): Remove.
($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too.
Use just $shortlisp, not $SOME_MACHINE_LISP too.
2011-05-18 23:04:16 -07:00
Teodor Zlatanov
627abcddd1 gnus.texi (Gnus Registry Setup): Rename from "Setup".
(Store custom flags and keywords): Mention `gnus-registry-user-format-function-M' and `gnus-registry-user-format-function-M2'.
gnus-registry.el (gnus-registry-user-format-function-M): Use `mapconcat'.
 (gnus-registry-user-format-function-M2): Use to see the full text of the marks.  Make "," the mark text separator.
2011-05-18 22:16:26 +00:00
Teodor Zlatanov
638f517cc5 nntp.el (nntp-send-authinfo): Use the "force" token for NNTP authentication with auth-source. 2011-05-18 14:17:34 +00:00
Michael Albinus
2fb0a219f6 * net/tramp.el (tramp-process-actions): Set "first-password-request"
property for the correct connection in case of multihops.
2011-05-18 14:59:25 +02:00
Juanma Barranquero
c2571358e4 lisp/ChangeLog: Fix typos. 2011-05-18 13:53:59 +02:00
Glenn Morris
4ac0ba7174 * lisp/emacs-lisp/authors.el (authors-fixed-entries): Remove fakemail.c 2011-05-17 20:42:33 -07:00
Glenn Morris
c136e5cdf2 Remove lib-src/fakemail.c.
* lib-src/fakemail.c: Remove file.

* lib-src/Makefile.in (UTILITIES): Remove fakemail${EXEEXT}.
(fakemail${EXEEXT}): Remove rule.

* lib-src/makefile.w32-in ($(BLD)/fakemail.exe, fakemail)
($(BLD)/fakemail.$(O)): Remove.

* lisp/mail/sendmail.el (sendmail-program): Fall back to just "sendmail".

* lisp/mail/feedmail.el: Update commentary.

* doc/emacs/ack.texi (Acknowledgments): Remove fakemail.c.

* etc/NEWS: Mention this.

* INSTALL: Remove fakemail.
2011-05-17 20:39:45 -07:00
Glenn Morris
e565dd3789 Rationalize calendar handling of day and month abbrev-arrays.
* lisp/calendar/calendar.el (calendar-customized-p): New function.
(calendar-abbrev-construct, calendar-make-alist): Change what it does.
(calendar-day-name-array, calendar-month-name-array): Doc fix.
Add :set function.
(calendar-abbrev-length, calendar-day-abbrev-array)
(calendar-month-abbrev-array): Make defcustoms, with appropriate :set.
(calendar-day-abbrev-array, calendar-month-abbrev-array):
Elements may no longer be nil.
(calendar-day-name, calendar-month-name):
Update for changed nature of abbrev arrays.
* calendar/diary-lib.el (diary-name-pattern):
Update for changed nature of abbrev arrays.
(diary-mark-entries-1): Update calendar-make-alist calls.
(diary-font-lock-date-forms): Doc fix for changed abbrev arrays.
* calendar/cal-html.el (cal-html-day-abbrev-array):
Simply inherit from calendar-day-abbrev-array.

* etc/NEWS: Mention this.
2011-05-17 20:20:13 -07:00
Stefan Monnier
1d99a745e2 * lisp/progmodes/grep.el (grep-mode): Disable default
compilation-directory-matcher setting.

Fixes: debbugs:8684
2011-05-17 15:14:30 -03:00
Michael Albinus
7c1d9aa0bd * net/tramp.el (tramp-handle-insert-file-contents): Use "dd"
instead of "head" and "tail".  There were problems with SunOS 5.9,
and it performs better.
2011-05-17 14:47:55 +02:00
Glenn Morris
7edd209389 * lisp/calendar/appt.el: Fix doc typo in previous. 2011-05-16 21:05:39 -07:00
Glenn Morris
b6d3ee5f4e * lisp/progmodes/cc-defs.el: Comment change. 2011-05-16 19:42:23 -07:00
Glenn Morris
2dd12e7ff0 * lisp/mail/mail-utils.el (mail-dont-reply-to): Silence compiler. 2011-05-16 19:40:34 -07:00
Glenn Morris
e4157b9c92 * idlw-shell.el (idlwave-shell-complete-filename): Replace obsolete function. 2011-05-16 19:39:23 -07:00
Glenn Morris
8e249bbdb7 * lisp/shell.el (pcomplete-parse-arguments-function): Declare. 2011-05-16 19:38:04 -07:00
Glenn Morris
3952e9d86c appt.el mainly doc fixes.
* lisp/calendar/appt.el (appt-message-warning-time, appt-display-mode-line)
(appt-display-diary, appt-display-interval, appt-prev-comp-time)
(appt-check): Doc fixes.
(appt-disp-window-function, appt-delete-window-function):
Remove needless special case in custom :type.
(appt-display-count): Default to 0, not nil.
(appt-check): Reset appt-display-count to 0, not nil.
2011-05-16 19:36:51 -07:00
Glenn Morris
072be7db2b * gnus-group.el (gnus-import-other-newsrc-file): Use insert-file-contents. 2011-05-16 19:32:50 -07:00
Glenn Morris
c71a0d48f3 Merge from emacs-23; up to 2010-06-11T14:39:54Z!cyd@stupidchicken.com. 2011-05-16 19:26:56 -07:00
Teodor Zlatanov
e594638418 gnus-sum.el (gnus-summary-hide-all-threads): Add update message every 1000 iterations. 2011-05-16 22:05:15 +00:00
Stefan Monnier
31d55be985 * lisp/emacs-lisp/eieio.el (defmethod): Fix quoting of code.
Fixes: debbugs:8677
2011-05-16 16:49:28 -03:00
Kevin Ryde
3bfacb2fee * lisp/info-look.el (makefile-automake-mode): New setups, looking in
automake manual, then makefile-mode.
(makefile-mode): Remove automake manual, have it just in
makefile-automake-mode since there's various things different or
not relevant to plain make.
(makefile-mode): Remove "other-modes" non-existent automake-mode,
believe a hypothetical automake-mode would go to makefile-mode,
not the other way around.
2011-05-16 14:41:03 -03:00
Katsumi Yamaoka
7887e229fd nntp.el (nntp-open-connection): Check if process-type is available. 2011-05-16 14:46:30 +00:00
Andreas Schwab
165fd2df8c Fix last change 2011-05-16 14:29:35 +02:00
Julien Danjou
55385ebc9a shr.el (shr-tag-del): Add support for del tag. 2011-05-16 09:33:14 +00:00
Glenn Morris
1aba75c248 * lisp/vc/diff-mode.el: Fix paren typo. 2011-05-15 11:51:21 -07:00
Chong Yidong
2d11b7b37c Backport fix for Bug#8672 from trunk 2011-05-15 10:12:51 -04:00
Chong Yidong
5e9e35cd1d Fix minor bug of diff-fixup-modifs on small diffs (Bug#8672).
* vc/diff-mode.el (diff-fixup-modifs): Locate correct position for
hunk-end tags.
2011-05-15 10:09:43 -04:00
Chong Yidong
c8e837514f Bind = to diff command in vc-annotate mode (Bug#8671)
* lisp/vc/vc-annotate.el (vc-annotate-mode-map): Bind = to
vc-annotate-show-diff-revision-at-line.
2011-05-15 09:47:56 -04:00
Glenn Morris
375cb676c1 add-log font-lock fix for mutilple authors (bug#8644)
* lisp/vc/add-log.el (change-log-font-lock-keywords): Also handle multiple
author lines with leading tabs.
2011-05-14 16:58:25 -07:00
Glenn Morris
7210a7391f add-log.el fix for multiple author entries (bug#8645)
* lisp/vc/add-log.el (add-change-log-entry): Don't start adding a new entry
in the middle of an existing one with multiple authors.
2011-05-14 16:27:09 -07:00
Glenn Morris
ccd1ad0793 Remove obsolete comment. 2011-05-14 13:14:25 -07:00
Glenn Morris
3bda1277be * lisp/allout.el: Comment fix. 2011-05-14 13:11:34 -07:00
Glenn Morris
4691905a95 appt.el trivia.
* lisp/calendar/appt.el (appt-check): Rename some local variables.
Some simplification/reordering.
2011-05-14 12:13:40 -07:00
Glenn Morris
1aa6430740 * lisp/mail/feedmail.el (bbdb-dwim-net-address, vm-mail): Declare. 2011-05-14 11:47:29 -07:00
Glenn Morris
50b23e5a9e Clean-up previous feedmail.el merge.
* lisp/mail/feedmail.el (feedmail-confirm-outgoing-timeout)
(feedmail-sendmail-f-doesnt-sell-me-out)
(feedmail-queue-slug-suspect-regexp, feedmail-debug)
(feedmail-debug-sit-for, feedmail-queue-express-hook)
(feedmail-queue-runner-message-sender): Set :version.
(bbdb-search, bbdb-records, smtp-via-smtp, smtp-server): Declare.
(feedmail-binmail-gnulinuxish-template):
Rename from feedmail-binmail-linuxish-template.
(feedmail-buffer-to-smtp, feedmail-vm-mail-mode):
Use insert-buffer-substring.
2011-05-14 11:43:43 -07:00
Bill Carpenter
215cda7c79 Update from version on author's website.
* lisp/mail/feedmail.el (feedmail-patch-level): Increase.
(feedmail-debug): New custom group.
(feedmail-confirm-outgoing-timeout)
(feedmail-sendmail-f-doesnt-sell-me-out)
(feedmail-queue-slug-suspect-regexp, feedmail-debug)
(feedmail-debug-sit-for, feedmail-queue-express-hook): New options.
(feedmail-sender-line, feedmail-from-line)
(feedmail-fiddle-headers-upwardly, feedmail-enable-spray)
(feedmail-spray-this-address, )
(feedmail-spray-address-fiddle-plex-list)
(feedmail-queue-use-send-time-for-date)
(feedmail-queue-use-send-time-for-message-id)
(feedmail-last-chance-hook, feedmail-queue-runner-mode-setter)
(feedmail-buffer-eating-function):
Doc fixes.
(feedmail-spray-via-bbdb, feedmail-buffer-to-smtp)
(feedmail-vm-mail-mode, feedmail-message-action-scroll-up)
(feedmail-message-action-scroll-down): New functions.
(feedmail-queue-directory, feedmail-queue-draft-directory):
Use expand-file-name.
(feedmail-prompt-before-queue-standard-alist): Add scroll entries.
Remove C-v help entry.
(feedmail-queue-buffer-file-name): New variable.
(feedmail-mail-send-hook-splitter, feedmail-buffer-to-binmail)
(feedmail-buffer-to-smtpmail, feedmail-queue-express-to-draft)
(feedmail-message-action-send-strong, feedmail-message-action-edit)
(feedmail-message-action-draft, feedmail-message-action-draft-strong)
(feedmail-message-action-queue, feedmail-message-action-queue-strong)
(feedmail-message-action-toggle-spray)
(feedmail-run-the-queue-no-prompts)
(feedmail-run-the-queue-global-prompt, feedmail-queue-reminder)
(feedmail-look-at-queue-directory, feedmail-queue-subject-slug-maker)
(feedmail-create-queue-filename, feedmail-rfc822-time-zone):
(feedmail-fiddle-header, feedmail-give-it-to-buffer-eater)
(feedmail-envelope-deducer, feedmail-fiddle-from)
(feedmail-fiddle-sender, feedmail-default-date-generator)
(feedmail-fiddle-date, feedmail-fiddle-message-id)
(feedmail-fiddle-spray-address)
(feedmail-fiddle-list-of-spray-fiddle-plexes)
(feedmail-fiddle-list-of-fiddle-plexes)
(feedmail-fill-to-cc-function, feedmail-fill-this-one)
(feedmail-one-last-look, feedmail-fqm-p): Add debug calls.
(feedmail-queue-runner-message-sender, feedmail-binmail-template):
Change default.  Doc fix.
(feedmail-queue-runner-cleaner-upper): Use feedmail-say-chatter.
(feedmail-binmail-linuxish-template): New constant.
(feedmail-buffer-to-sendmail): Doc fix.  Add debug call.
Respect feedmail-sendmail-f-doesnt-sell-me-out.
(feedmail-send-it): Add debug call.
Use feedmail-queue-buffer-file-name, and
feedmail-send-it-immediately-wrapper.
(feedmail-message-action-send): Add debug call.
Use feedmail-send-it-immediately-wrapper.
(feedmail-queue-express-to-queue): Add debug call.
Run feedmail-queue-express-hook.
(feedmail-message-action-help): Add debug call.  Use feedmail-p-h-b-n.
(feedmail-message-action-help-blat):
Rename from feedmail-queue-send-edit-prompt-help-first.
(feedmail-run-the-queue): Add debug call.  Set buffer-file-type.
Check line-endings.  Handle errors better.
(feedmail-queue-reminder-brief, feedmail-queue-reminder-medium):
Doc fix.  Add debug call.
(feedmail-queue-send-edit-prompt): Doc fix.  Add debug call.
Use feedmail-queue-send-edit-prompt-inner.
(feedmail-queue-runner-prompt, feedmail-scroll-buffer): New functions.
(feedmail-queue-send-edit-prompt-inner): New function, extracted
from feedmail-queue-send-edit-prompt.
(feedmail-queue-send-edit-prompt-help)
(feedmail-queue-send-edit-prompt-help-later): Remove functions.
(feedmail-tidy-up-slug): Add debug call.
Respect feedmail-queue-slug-suspect-regexp.
(feedmail-queue-subject-slug-maker): Use buffer-substring-no-properties.
(feedmail-dump-message-to-queue): Add debug call.
Expand queue-directory.
(feedmail-dump-message-to-queue): Change message slightly.
Use feedmail-say-chatter.
(feedmail-rfc822-date): Add debug call.  Bind system-time-locale.
(feedmail-send-it-immediately-wrapper): New function.
(feedmail-send-it-immediately): Add debug calls.  Use let not let*.
Insert empty string rather than newline.  Handle full-frame case.
Use catch/throw.  Use feedmail-say-chatter.
(feedmail-fiddle-from): Try mail-host-address.
(feedmail-default-message-id-generator): Doc fix.
Bind system-time-locale.  Handle missing end.
(feedmail-fiddle-x-mailer): Add debug call.
Handle feedmail-x-mailer-line being nil.
(feedmail-accume-n-nuke-header, feedmail-deduce-address-list):
Add debug call.  Use buffer-substring-no-properties.
(feedmail-say-debug, feedmail-say-chatter): New functions.
(feedmail-find-eoh): Give an explicit error.
2011-05-14 11:30:21 -07:00
Ulf Jasper
c21edd3404 newsticker: Moved icons to etc/newsticker/images
lisp/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

	* net/newst-treeview.el (newsticker-treeview-face): Changed default
	family from helvetica to sans.
	(newsticker-treeview-tool-bar-map): Moved tool-bar icons to
	etc/images/newsticker.

	* net/newst-reader.el (newsticker-feed-face): Changed default
	family from helvetica to sans.

	* net/newst-plainview.el (newsticker-new-item-face)
	(newsticker-old-item-face, newsticker-immortal-item-face)
	(newsticker-obsolete-item-face, newsticker-date-face)
	(newsticker-statistics-face): Changed default family from
	helvetica to sans.
	(newsticker--plainview-tool-bar-map): Moved tool-bar icons to
	etc/images/newsticker.

	* net/newst-backend.el (newsticker--do-run-auto-mark-filter),
	(newsticker--process-auto-mark-filter-match): : Tell user about
	auto-marking.

etc/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

	* images/newsticker: Added.
	* images/newsticker/browse-url.xpm: Added.
	* images/newsticker/get-all.xpm: Added.
	* images/newsticker/mark-immortal.xpm: Added.
	* images/newsticker/mark-read.xpm: Added.
	* images/newsticker/narrow.xpm: Added.
	* images/newsticker/next-feed.xpm: Added.
	* images/newsticker/next-item.xpm: Added.
	* images/newsticker/prev-feed.xpm: Added.
	* images/newsticker/prev-item.xpm: Added.
	* images/newsticker/update.xpm: Added.
2011-05-13 21:35:36 +02:00
Didier Verna
8497a2977c Common Lisp indentation improvements on defmethod and lambda-lists.
* cl-indent.el: Advertise the changes and remove obsolete TODO entries.
(lisp-lambda-list-keyword-parameter-indentation)
(lisp-lambda-list-keyword-parameter-alignment)
(lisp-lambda-list-keyword-alignment): New customizable user options.
(lisp-indent-defun-method): Improve docstring.
(extended-loop-p): Fix comment.
(lisp-indent-lambda-list-keywords-regexp): New variable.
(lisp-indent-lambda-list): New function.
(lisp-indent-259): Use it.
(lisp-indent-defmethod): Support for more than one
method qualifier and properly indent methods lambda-lists.
(defgeneric): Provide a missing common-lisp-indent-function property.
2011-05-13 16:27:52 -03:00
Ulf Jasper
42c7e61e88 newsticker: Moved icons to etc/newsticker/images
lisp/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

	* net/newst-treeview.el (newsticker-treeview-face): Changed default
	family from helvetica to sans.
	(newsticker-treeview-tool-bar-map): Moved tool-bar icons to
	etc/images/newsticker.

	* net/newst-reader.el (newsticker-feed-face): Changed default
	family from helvetica to sans.

	* net/newst-plainview.el (newsticker-new-item-face)
	(newsticker-old-item-face, newsticker-immortal-item-face)
	(newsticker-obsolete-item-face, newsticker-date-face)
	(newsticker-statistics-face): Changed default family from
	helvetica to sans.
	(newsticker--plainview-tool-bar-map): Moved tool-bar icons to
	etc/images/newsticker.

	* net/newst-backend.el (newsticker--do-run-auto-mark-filter),
	(newsticker--process-auto-mark-filter-match): : Tell user about
	auto-marking.

etc/ChangeLog:

2011-05-13  Ulf Jasper  <ulf.jasper@web.de>

	* images/newsticker: Added.
	* images/newsticker/browse-url.xpm: Added.
	* images/newsticker/get-all.xpm: Added.
	* images/newsticker/mark-immortal.xpm: Added.
	* images/newsticker/mark-read.xpm: Added.
	* images/newsticker/narrow.xpm: Added.
	* images/newsticker/next-feed.xpm: Added.
	* images/newsticker/next-item.xpm: Added.
	* images/newsticker/prev-feed.xpm: Added.
	* images/newsticker/prev-item.xpm: Added.
	* images/newsticker/update.xpm: Added.
2011-05-13 21:06:36 +02:00
Stefan Monnier
f278f87fe6 * lisp/thingatpt.el (bounds-of-thing-at-point): Return nil rather than
bounds for the empty string.

Fixes: debbugs:8667
2011-05-13 14:02:56 -03:00
Juanma Barranquero
ce1539b46d lisp/progmodes/python.el: Highlight keyword "nonlocal" (bug#8639). 2011-05-13 14:44:48 +02:00
Katsumi Yamaoka
ceb90e5198 gnus-html.el (gnus-html-put-image): Fix last change. 2011-05-13 07:53:12 +00:00
Katsumi Yamaoka
195b25935c gnus-html.el (gnus-html-put-image): Register a displayer.
shr.el (shr-image-displayer): Don't remove text props from alt text.
2011-05-13 05:35:56 +00:00
Teodor Zlatanov
652aa46504 registry.el (prune-factor): New initialization parameter defaulting to 0.1.
(registry-prune-hard): Use it.
gnus-registry.el (gnus-registry-fixup-registry): Set prune-factor to 0.1 expicitly.
2011-05-13 04:12:37 +00:00
Glenn Morris
f0dd243b58 * lisp/gnus/message.el (sendmail-program): Declare. 2011-05-12 19:16:09 -07:00
Glenn Morris
9d463c8c03 message.el trivia.
* lisp/gnu/message.el (message-send-mail-with-sendmail): Assume
sendmail-program is bound, since this function requires sendmail.
2011-05-12 19:10:17 -07:00
Glenn Morris
5237a44fef * lisp/mail/feedmail.el (feedmail-buffer-to-sendmail): Require sendmail. 2011-05-12 19:06:35 -07:00
Glenn Morris
8340026cae sendmail.el trivia.
* lisp/mail/sendmail.el (sendmail-program): Try executable-find first.
(sendmail-send-it): sendmail-program cannot be unbound.
2011-05-12 18:42:24 -07:00
Glenn Morris
a54640143d * calendar/appt.el (appt-check): Change mode-line message at time of the appt. 2011-05-12 18:38:31 -07:00
Glenn Morris
4accbca6e9 * lisp/calendar/appt.el (appt-time-msg-list): Doc fix. 2011-05-12 18:35:11 -07:00
Glenn Morris
5233edd7e8 * lisp/calendar/appt.el (appt-make-list): Simplify. 2011-05-12 18:31:53 -07:00
Andreas Schwab
92d1079638 * lisp/progmodes/ld-script.el (ld-script-keywords)
(ld-script-builtins): Update keywords list.
2011-05-12 18:46:53 +02:00
Glenn Morris
79b70037f6 Put ChangeLog entries in the correct files. 2011-05-12 09:30:17 -07:00
Stefan Monnier
c89be45f2e * lisp/progmodes/grep.el (grep-filter): Don't trip on partial lines. 2011-05-12 12:10:17 -03:00
Stefan Monnier
914a0ae1ba * lisp/shell.el (shell-completion-vars): New function.
(shell-mode):
* lisp/simple.el (read-shell-command): Use it.
(blink-matching-open): No need for " [...]" in minibuffer-message.
2011-05-12 09:55:10 -03:00
Glenn Morris
98dc3df322 appt.el code simplifications.
* lisp/calendar/appt.el (appt-now-displayed): Remove pointless variable.
(appt-check): Simplify.

Details:
appt-now-displayed was set non-nil the first time a reminder was displayed.
Nothing ever set it back to nil again.  Thus when full-check was nil,
mode-line-only was always true, so the "(when (or full-check mode-line-only)"
was pointless.  That was the only use of full-check.  mode-line-only
was only used in a negative sense, and can be reduced to the zerop test.
2011-05-12 00:56:02 -07:00
Glenn Morris
d2fc7e3d0f Merge from emacs-23; up to 2010-06-10T12:56:11Z!michael.albinus@gmx.de. 2011-05-12 00:07:06 -07:00
Glenn Morris
d45885f7e0 bytecomp.el fix for bug#8647
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defmumble):
Let byte-compile-initial-macro-environment always take precedence.
2011-05-11 19:36:05 -07:00
Stefan Monnier
488086f4dd * lisp/net/rcirc.el: Add support for SSL/TLS connections.
(rcirc-server-alist): New field `encryption'.
(rcirc): Check `encryption' settings.
(rcirc-connect): New arg `encryption'.  Use open-network-stream.
Merge make-local-variable into `set'.
(rcirc--connection-open-p): New function.
(rcirc-send-string, rcirc-clean-up-buffer): Use it to handle case where
the process is not a network process (e.g. running gnutls-cli).
(set-rcirc-decode-coding-system, set-rcirc-encode-coding-system):
Make rcirc-(en|de)code-coding-system local here.
(rcirc-mode): Merge make-local-variable into `set'.
(rcirc-parent-buffer): Make permanent buffer-local.
(rcirc-multiline-minor-mode): Don't do it here.
(rcirc-switch-to-server-buffer): Don't switch to a random buffer if
there's no server buffer.
2011-05-11 23:25:58 -03:00
Teodor Zlatanov
9820ccdf51 registry.el (registry-usage-test): Disable pruning test. 2011-05-11 22:12:27 +00:00
Glenn Morris
410c42c570 Revert accidental portion of previous bytecomp.el commit. 2011-05-11 13:32:38 -04:00
Glenn Morris
f64049c602 * lisp/newcomment.el (comment-kill): Prefix "unused" local. 2011-05-11 09:37:03 -07:00
Glenn Morris
4f306b0fa7 javascript.el trivia.
* lisp/semantic/wisent/javascript.el (semantic-get-local-variables):
Use define-mode-local-override rather than its obsolete alias.
2011-05-11 09:35:54 -07:00
Glenn Morris
93c9df73d8 * lisp/term/w32console.el (get-screen-color): Declare. 2011-05-11 09:34:15 -07:00
Glenn Morris
7d3b9d4498 bytecomp.el partial fix for bug#8646.
* lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
Handle symbol elements of byte-compile-initial-macro-environment.
2011-05-11 09:31:33 -07:00
Teodor Zlatanov
15cc1ab1f0 registry.el (registry-prune-hard-candidates, registry-prune-soft-candidates): Helper methods for registry pruning.
(registry-prune): Use them.  Make the sort function optional.
2011-05-10 22:21:39 +00:00
Leo Liu
8b34024097 Bind bookmark-bmenu-search to `/' 2011-05-11 03:34:51 +08:00
U. Ser
9b053e766d fix many doubled-word typos 2011-05-10 15:57:12 +02:00
Julien Danjou
296d197b34 shr.el (shr-put-color-1): Do not bug out when old-props is a face symbol and not a list. 2011-05-10 13:20:21 +00:00
Leo Liu
b404486913 Add a new footnote style unicode
See also the discussion thread in:
http://thread.gmane.org/gmane.emacs.devel/139221
2011-05-10 16:20:21 +08:00
Leo Liu
9e2dd53f16 Convert mail/footnote.el to utf-8 encoding 2011-05-10 16:14:42 +08:00
Katsumi Yamaoka
ffb54e99ad gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display. 2011-05-10 07:30:49 +00:00
Katsumi Yamaoka
b9bdaf749f shr.el (shr-put-image-function): New variable.
(shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
 (shr-put-image): Return scaled image.
gnus-art.el (gnus-shr-put-image): New function.
 (gnus-article-prepare-display): Bind shr-put-image-function to it.
gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.
2011-05-10 03:14:44 +00:00
Glenn Morris
b8f82dc15f Deprecate using "mode:" to enable minor modes (bug#8613)
* lisp/files.el (hack-one-local-variable-eval-safep):
Consider "eval: (foo-mode)" to be safe.

* doc/emacs/custom.texi (Specifying File Variables):
Deprecate using mode: for minor modes.

* etc/NEWS: Mention this.

* lisp/doc-view.el, lisp/net/soap-client.el:
Change "mode:" minor-mode file local variables to use "eval:".
2011-05-09 19:31:42 -07:00
Glenn Morris
4f99f44b34 diary-lib.el doc fixes.
* lisp/calendar/diary-lib.el (diary-list-entries-hook)
(diary-mark-entries-hook, diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook, diary-list-entries)
(diary-include-other-diary-files, diary-mark-entries)
(diary-mark-included-diary-files): Doc fixes.
2011-05-09 19:22:55 -07:00
Juanma Barranquero
84f29e6bd8 lisp/misc.el: Require tabulated-list.el during compilation. 2011-05-10 01:57:40 +02:00
Teodor Zlatanov
81d7704c97 registry.el (registry-full): Add convenience method. Fix logic.
(registry-insert): Use it.  Fix logic here too.
gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t.
 (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.
2011-05-09 22:27:17 +00:00