]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years agoReduce GTK tool-bar switching delay by avoiding selective show/hide of widgets.
Chong Yidong [Sat, 1 Jan 2011 06:02:36 +0000 (01:02 -0500)]
Reduce GTK tool-bar switching delay by avoiding selective show/hide of widgets.

* src/gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
image or label in the container.
(xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
(xg_show_toolbar_item): Function deleted.
(xg_tool_item_stale_p): New function.
(update_frame_tool_bar): Calculate tool-bar style once per call.
Instead of hiding text labels, omit them.  Don't use
xg_show_toolbar_item; create new GtkToolItems from scratch if
necessary, instead of trying to re-use them.  This avoids an
annoying animation when changing tool-bars.

13 years ago* net/tramp-sh.el (tramp-methods): Add recursive options to "scpc"
Michael Albinus [Fri, 31 Dec 2010 19:57:05 +0000 (20:57 +0100)]
* net/tramp-sh.el (tramp-methods): Add recursive options to "scpc"
and "scpx".

13 years agoFor nextstep: Handle bad utf-8 in buffer name, always use buffer name for title.
Jan Djärv [Fri, 31 Dec 2010 13:16:16 +0000 (14:16 +0100)]
For nextstep: Handle bad utf-8 in buffer name, always use buffer name for title.

* nsfns.m (ns_set_name_as_filename): Always use buffer name for
title and buffer filename only for RepresentedFilename.
Handle bad UTF-8 in buffer name.

Fixes: debbugs:7517
13 years ago* misc.texi (Document View): Update DocView section with newly
Tassilo Horn [Thu, 30 Dec 2010 20:23:13 +0000 (21:23 +0100)]
* misc.texi (Document View): Update DocView section with newly
supported document formats.

13 years ago* doc-view.el (doc-view-set-doc-type): New function refactored
Tassilo Horn [Thu, 30 Dec 2010 18:08:18 +0000 (19:08 +0100)]
* doc-view.el (doc-view-set-doc-type): New function refactored
from doc-view-mode.
(doc-view-fallback-mode): New function.
(doc-view-mode): Use it.
(doc-view-mode-maybe): New function that checks if doc-view-mode
can be used and falls back to the next best mode otherwise.

* files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF,
DVI, OpenDocument, and MS Office files.

13 years ago* lisp/emacs-lisp/rx.el (rx-syntax): Fix typo.
Andreas Schwab [Thu, 30 Dec 2010 15:15:34 +0000 (16:15 +0100)]
* lisp/emacs-lisp/rx.el (rx-syntax): Fix typo.

13 years ago* doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
Tassilo Horn [Thu, 30 Dec 2010 14:58:32 +0000 (15:58 +0100)]
* doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
on a copy of auto-mode-alist, because that deletes with side
effects.

13 years ago* doc-view.el (doc-view-mode, doc-view-toggle-display): Use
Tassilo Horn [Thu, 30 Dec 2010 14:47:53 +0000 (15:47 +0100)]
* doc-view.el (doc-view-mode, doc-view-toggle-display): Use
normal-mode without doc-view-mode bindings in auto-mode-alist as
fallback instead of hard coding fundamental mode.

13 years ago* doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS Office) files also...
Tassilo Horn [Thu, 30 Dec 2010 13:53:22 +0000 (14:53 +0100)]
* doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS Office) files also for searching.

13 years ago* doc-view.el: Implement viewing of OpenDocument (and Microsoft Office) files.
Tassilo Horn [Thu, 30 Dec 2010 13:45:09 +0000 (14:45 +0100)]
* doc-view.el: Implement viewing of OpenDocument (and Microsoft Office) files.

Not yet enabled via auto-mode-list.
(doc-view-unoconv-program): New custom variable.
(doc-view-mode-p): Handle new odf document type.
(doc-view-odf->pdf): New conversion function.
(doc-view-convert-current-doc): Call it for odf files.
(doc-view-mode): Recognize newly supported file extensions.

13 years agoEncode frame title and icon name before setting.
Jan Djärv [Thu, 30 Dec 2010 11:30:55 +0000 (12:30 +0100)]
Encode frame title and icon name before setting.

* coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.

* nsfns.m (ns_set_name_iconic): Remove.
(ns_set_name_internal): New function.
(Vicon_title_format): Extern declare.
(ns_set_name): Call ns_set_name_internal.
(x_explicitly_set_name): Remove call to ns_set_name_iconic.
(x_implicitly_set_name): Ditto.
(x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
(ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).

13 years ago* net/tramp.el (tramp-default-method-alist)
Michael Albinus [Thu, 30 Dec 2010 09:04:15 +0000 (10:04 +0100)]
* net/tramp.el (tramp-default-method-alist)
(tramp-default-user-alist)
(tramp-local-host-regexp, tramp-prefix-domain-format)
(tramp-prefix-domain-regexp): Set tramp-autoload cookie.

* net/tramp-ftp.el:
* net/tramp-gvfs.el:
* net/tramp-gw.el:
* net/tramp-imap.el:
* net/tramp-sh.el:
* net/tramp-smb.el: Add tramp-autoload cookie for initialisation
code of `tramp-default-method-alist' and `tramp-default-user-alist'.

13 years ago* window.c (syms_of_window): Add missing defsubr for window-use-time.
Štěpán Němec [Wed, 29 Dec 2010 11:16:44 +0000 (19:16 +0800)]
* window.c (syms_of_window): Add missing defsubr for window-use-time.

13 years ago* configure.in: Make gameuser configurable (Bug#7717).
Ulrich Mueller [Wed, 29 Dec 2010 11:11:25 +0000 (19:11 +0800)]
* configure.in: Make gameuser configurable (Bug#7717).

* configure: Regenerate

13 years ago* lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Minor tweak (Bug#7712).
Chong Yidong [Wed, 29 Dec 2010 11:02:48 +0000 (19:02 +0800)]
* lisp/textmodes/conf-mode.el (conf-font-lock-keywords): Minor tweak (Bug#7712).
Use single quote instead of unused backquote.

13 years ago* lisp/saveplace.el (save-place-alist-to-file): Save list sorted and
Karl Fogel [Wed, 29 Dec 2010 03:24:09 +0000 (22:24 -0500)]
* lisp/saveplace.el (save-place-alist-to-file): Save list sorted and
  pretty-printed, so that it is mergeable by line-based text merging,
  as suggested by Iain Dalton <iain.dalton {_AT_} gmail.com>.

13 years ago(allout-v18/19-file-var-hack): Obsolete, remove.
Ken Manheimer [Tue, 28 Dec 2010 19:57:15 +0000 (14:57 -0500)]
(allout-v18/19-file-var-hack): Obsolete, remove.

(allout-mode): Argument "toggle" => "force".

Refine the docstring.

Remove special provisions for reactivation, besides the 'force' argument.
Consolidate layout provisions coce directly into the activation condition
branch, now that we've removed those provisions.

(allout-unload-function): Explicitly activate the mode before deactivating,
if it's initially deactivated.

(allout-set-buffer-multibyte): Properly prevent byte-compiler warnings for
version of function used only where set-buffer-multibyte is unavailable.

13 years agoRestore x_alloc_lighter_color_for_widget, needed for lwlib
Andreas Schwab [Tue, 28 Dec 2010 16:34:04 +0000 (17:34 +0100)]
Restore x_alloc_lighter_color_for_widget, needed for lwlib

* src/xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
* src/xterm.c (x_alloc_lighter_color_for_widget): Restore.

13 years agoFix 2010-12-20 change to tool-bar.el.
Chong Yidong [Tue, 28 Dec 2010 09:39:25 +0000 (17:39 +0800)]
Fix 2010-12-20 change to tool-bar.el.

* tool-bar.el (tool-bar-setup): Remove :enable conditions, which
are handled by the menu-bar entries.  As before, don't use
:visibile to avoid changing the tool-bar.

13 years ago* net/secrets.el (secrets-delete-alias): New defun.
Michael Albinus [Mon, 27 Dec 2010 17:52:17 +0000 (18:52 +0100)]
* net/secrets.el (secrets-delete-alias): New defun.

13 years agoRemove unused declarations
Andreas Schwab [Mon, 27 Dec 2010 17:29:38 +0000 (18:29 +0100)]
Remove unused declarations

* src/buffer.c: Remove unused declarations.
* src/buffer.h: Likewise.
* src/charset.h: Likewise.
* src/composite.h: Likewise.
* src/dispextern.h: Likewise.
* src/dispnew.c: Likewise.
* src/font.h: Likewise.
* src/fontset.c: Likewise.
* src/fontset.h: Likewise.
* src/intervals.h: Likewise.
* src/keymap.h: Likewise.
* src/lisp.h: Likewise.
* src/syntax.c: Likewise.
* src/syntax.h: Likewise.
* src/termhooks.h: Likewise.
* src/window.h: Likewise.
* src/xsettings.h: Likewise.
* src/xterm.c: Likewise.
* src/xterm.h: Likewise.

* src/chartab.c (sub_char_table_ref): Make static.
* src/dispnew.c (line_hash_code, required_matrix_height)
(required_matrix_width): Likewise.
* src/eval.c (interactive_p, apply_lambda): Likewise.
* src/fns.c (string_make_multibyte, copy_hash_table, hash_clear):
Likewise.
* src/font.c (QCadstyle, QCregistry, font_make_spec)
(font_parse_fcname, font_encode_char, font_at): Likewise.
* src/frame.c (x_frame_get_arg): Likewise.
* src/keymap.c (get_keyelt): Likewise.
* src/lread.c (read_filtered_event): Likewise.
* src/print.c (write_string_1): Likewise.
* src/window.c (delete_window, window_height, window_width)
(foreach_window): Likewise.
* src/xrdb.c (x_get_customization_string, x_get_resource): Likewise.
* src/xterm.c (x_scroll_bar_clear, xembed_set_info)
(xembed_send_message): Likewise.

* src/eval.c (run_hook_list_with_args): Delete.
* src/font.c (font_unparse_gtkname, font_update_lface): Likewise.
* src/terminal.c (get_terminal_param): Likewise.
* src/xterm.c (x_alloc_lighter_color_for_widget): Likewise.

13 years ago* scroll.c: Fix comment.
Andreas Schwab [Mon, 27 Dec 2010 17:23:49 +0000 (18:23 +0100)]
* scroll.c: Fix comment.

13 years agoProtoize
Andreas Schwab [Mon, 27 Dec 2010 17:23:29 +0000 (18:23 +0100)]
Protoize

* dispnew.c (add_window_display_history)
(add_frame_display_history, glyph_row_slice_p)
(find_glyph_row_slice, flush_stdout)
(check_matrix_pointer_lossage, matrix_row)
(check_matrix_invariants, check_window_matrix_pointers)
(check_matrix_pointers, window_to_frame_vpos)
(window_to_frame_hpos): Prototize.
* textprop.c (erase_properties): Likewise.

13 years ago* net/tramp.el (tramp-default-user-alist): Do not add "ssh" based
Michael Albinus [Mon, 27 Dec 2010 10:56:26 +0000 (11:56 +0100)]
* net/tramp.el (tramp-default-user-alist): Do not add "ssh" based
methods, otherwise ~/.ssh/config would be ignored.

13 years agoMake GPG-sign-by-sender code robuster.
Daiki Ueno [Mon, 27 Dec 2010 09:46:02 +0000 (18:46 +0900)]
Make GPG-sign-by-sender code robuster.

* mml2015.el (mml2015-epg-sign, mml2015-epg-encrypt): Take care the
case when sender is not given.

13 years ago* admin/bzrmerge.el: New file to help merge branches while skipping
Stefan Monnier [Mon, 27 Dec 2010 01:27:08 +0000 (20:27 -0500)]
* admin/bzrmerge.el: New file to help merge branches while skipping
some revisions (e.g. from emacs-23 to trunk).

13 years ago* lisp/emacs-lisp/rx.el: Make it a superset of sregex.
Stefan Monnier [Sun, 26 Dec 2010 23:17:09 +0000 (18:17 -0500)]
* lisp/emacs-lisp/rx.el: Make it a superset of sregex.
(rx-constituents): Add `any => "."', mark `repeat' as taking any number
of args, add `regex' alias.
(rx-info): Add arg to distinguish head and standalone forms.
(rx-check, rx-form): Pass the corresponding arg.
(rx-**): Simplify.
(rx-repeat): Make it work for any number of args.
(rx-syntax): Make it accept syntax chars as is.
* lisp/obsolete/sregex.el: Move from emacs-lisp/.
* lisp/emacs-lisp/re-builder.el: Remove sregex support.
* lisp/emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.

13 years agoFix bug #7699 with pasting selected text on MS-Windows.
Eli Zaretskii [Sat, 25 Dec 2010 10:57:02 +0000 (12:57 +0200)]
Fix bug #7699 with pasting selected text on MS-Windows.

 mouse.el (mouse-yank-primary): On MS-Windows, try the (emulated)
 PRIMARY first, then the clipboard.

13 years agoFix indentation
Andreas Schwab [Fri, 24 Dec 2010 09:25:18 +0000 (10:25 +0100)]
Fix indentation

13 years agognus-gravatar.el (gnus-gravatar-transform-address): Set `mail-extr-ignore-realname...
Julien Danjou [Thu, 23 Dec 2010 22:24:24 +0000 (22:24 +0000)]
gnus-gravatar.el (gnus-gravatar-transform-address): Set `mail-extr-ignore-realname-equals-mailbox-name' to nil when extracting the addresses, otherwise we might misplaced the gravatar.

13 years agoFix up last change.
Stefan Monnier [Thu, 23 Dec 2010 00:00:12 +0000 (19:00 -0500)]
Fix up last change.
* lisp/emacs-lisp/bytecomp.el (byte-compile-output-docform): Fix up use of
print-number-table.
* src/print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
(print_preprocess): Fix handling of uninterned symbols in last change.

13 years ago* src/print.c (print, print_preprocess, print_object): Use a hash table
Stefan Monnier [Wed, 22 Dec 2010 21:25:46 +0000 (16:25 -0500)]
* src/print.c (print, print_preprocess, print_object): Use a hash table
rather than a linear table for Vprint_number_table.

13 years agoAdd Obsolete-since: header to pgg*.el.
Daiki Ueno [Wed, 22 Dec 2010 09:23:58 +0000 (18:23 +0900)]
Add Obsolete-since: header to pgg*.el.

13 years agoFix the log entry for reverting of gnus-util.el.
Katsumi Yamaoka [Wed, 22 Dec 2010 07:04:25 +0000 (07:04 +0000)]
Fix the log entry for reverting of gnus-util.el.

13 years agoResection the Killing chapter in the Emacs manual.
Chong Yidong [Tue, 21 Dec 2010 07:54:27 +0000 (15:54 +0800)]
Resection the Killing chapter in the Emacs manual.

* killing.texi: Resection the Info version to conform to the
printed manual, to avoid making sections on Accumulating Text, CUA
and Rectangles into full chapters.

13 years agoFix 2010-04-19 merge error in doc/emacs/maintaining.texi (Bug#7674).
Chong Yidong [Tue, 21 Dec 2010 07:10:31 +0000 (15:10 +0800)]
Fix 2010-04-19 merge error in doc/emacs/maintaining.texi (Bug#7674).

13 years ago* help-fns.el (find-lisp-object-file-name): Locate .emacs from .emacs.elc (Bug#7530).
Chong Yidong [Tue, 21 Dec 2010 06:45:11 +0000 (14:45 +0800)]
* help-fns.el (find-lisp-object-file-name): Locate .emacs from .emacs.elc (Bug#7530).

13 years agoRevert bogus 2010-10-24 change to widget-image-find.
Chong Yidong [Tue, 21 Dec 2010 02:36:48 +0000 (10:36 +0800)]
Revert bogus 2010-10-24 change to widget-image-find.

* lisp/wid-edit.el (widget-image-find): Remove bogus :ascent spec from
image spec (Bug#7480).

13 years agoMark PGG obsolete.
Daiki Ueno [Tue, 21 Dec 2010 02:30:36 +0000 (11:30 +0900)]
Mark PGG obsolete.

* obsolete/pgg-parse.el, obsolete/pgg-pgp5.el, obsolete/pgg-pgp.el,
* obsolete/pgg-gpg.el, obsolete/pgg-def.el, obsolete/pgg.el: Move
from lisp/.

* gnus/mml1991.el (pgg-sign-region, pgg-encrypt-region):
* gnus/gnus-art.el (pgg-snarf-keys-region): Autoload since PGG is now
obsolete in Emacs.

13 years agoRevert "gnus-util: rewrite gnus-rescale-image".
Julien Danjou [Mon, 20 Dec 2010 22:12:30 +0000 (22:12 +0000)]
Revert "gnus-util: rewrite gnus-rescale-image".

13 years ago* dnd.el (dnd-get-local-file-name): Unhex of file name shall
Jan Djärv [Mon, 20 Dec 2010 20:11:01 +0000 (21:11 +0100)]
* dnd.el (dnd-get-local-file-name): Unhex of file name shall
 always be performed (Bug#7680).

13 years agoBind "Copy" menu item to kill-ring-save, obsoleting menu-bar-kill-ring-save.
Chong Yidong [Mon, 20 Dec 2010 14:44:28 +0000 (22:44 +0800)]
Bind "Copy" menu item to kill-ring-save, obsoleting menu-bar-kill-ring-save.

* menu-bar.el (menu-bar-kill-ring-save): Make obsolete.
(menu-bar-edit-menu): Bind "Copy" to kill-ring-save.  Don't use
mouse-region-match.

13 years ago* src/frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
Chong Yidong [Mon, 20 Dec 2010 11:11:30 +0000 (19:11 +0800)]
* src/frame.c (focus_follows_mouse): Default to 0 (Bug#7269).

13 years agoMove color.el out of the gnus/ tree.
Chong Yidong [Mon, 20 Dec 2010 03:18:56 +0000 (11:18 +0800)]
Move color.el out of the gnus/ tree.

13 years agoFix 2010-11-22 change to diff.el.
Chong Yidong [Mon, 20 Dec 2010 00:20:25 +0000 (08:20 +0800)]
Fix 2010-11-22 change to diff.el.

* vc/diff.el (diff-better-file-name): Function deleted.
abbreviating file names causes problems with shell-quote-argument.
(diff-no-select): Just use expand-file-name.

13 years agoImplement tool-bar separators for non-GTK tool-bars.
Chong Yidong [Mon, 20 Dec 2010 00:17:26 +0000 (08:17 +0800)]
Implement tool-bar separators for non-GTK tool-bars.

* lisp/tool-bar.el (tool-bar--image-expression): New function.
(tool-bar-local-item, tool-bar--image-exp): Use it.
(tool-bar-setup): Initialize tool-bar-separator-image-expression.
Use :enable instead of :visible to avoid changing the tool-bar
configuration unnecessarily.

* src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
(parse_tool_bar_item): Use it to obtain image separators for
displays not using native tool-bar separators.

* src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
specially, since this is now done in parse_tool_bar_item.

* lisp/info.el (info-tool-bar-map): Add separators.

13 years agoMinor clean up to silence some gcc warnings.
Stefan Monnier [Sun, 19 Dec 2010 05:43:42 +0000 (00:43 -0500)]
Minor clean up to silence some gcc warnings.
* src/window.c (Fset_window_buffer):
* src/xterm.c (x_set_frame_alpha): Restructure code to silence
compiler warning.
(handle_one_xevent): Remove unused var `p'.
(do_ewmh_fullscreen): Remove unused var `lval'.
(xembed_set_info): Remove unused var `atom'.
* src/textprop.c (Fremove_list_of_text_properties): Add braces to silence
compiler warning.
* src/fontset.c (fontset_id_valid_p, dump_fontset):
* src/ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
* src/eval.c (Feval, Ffuncall): Avoid unneeded gotos.
* src/dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
label only when it's used.
* src/image.c (x_create_bitmap_from_xpm_data):
* src/dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
its callers.
* src/coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
`consumed_chars'.
(DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
(decode_coding_emacs_mule): Remove unused label `retry'.
(detect_eol): Add parens to silence compiler warning.
* src/alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
it's used to silence the compiler.
(make_number): Modernize k&r declaration.
(mark_char_table): Add parens to silence compiler warning.

13 years agoAdd missing ChangeLog entry for 2010-12-16T23:30:57Z!ken.manheimer@gmail.com.
Glenn Morris [Sat, 18 Dec 2010 20:39:05 +0000 (12:39 -0800)]
Add missing ChangeLog entry for 2010-12-16T23:30:57Z!ken.manheimer@gmail.com.

13 years ago* doc/lispref/keymaps.texi (Simple Menu Items, Extended Menu Items):
Stefan Monnier [Sat, 18 Dec 2010 16:28:15 +0000 (11:28 -0500)]
* doc/lispref/keymaps.texi (Simple Menu Items, Extended Menu Items):
Remove mention of the key-binding-data cache since we don't use it
any more.
* doc/lispref/modes.texi (Derived Modes): Mention prog-mode.

Fixes: debbugs:7542
13 years agoMerge changes made in Gnus trunk.
Gnus developers [Fri, 17 Dec 2010 22:45:16 +0000 (22:45 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-get-active): Ignore nnir-ignored-newsgroups if null.
gnus-sum.el (gnus-summary-refer-thread): Simplify code. Restore gnus-use-agent.
 (gnus-get-newsgroup-headers): Avoid unwanted spaces at eol.
gravatar.el (gravatar-retrieve-synchronously): New function.
 (gravatar-get-data): Make more robust.
gnus-util.el (gnus-rescale-image): Allow to resize images even if they are from file. Can also scale up.
nnimap.el (nnimap-retrieve-headers): Remove CRLF from the headers.
nnir.el (nnir-mode): Make sure 'gnus-registry-install is bound.
gnus-sum.el (gnus-get-newsgroup-headers): Revert the last change here, since it's up to the backends to do CRLF removal if their protocol has it.
gnus-group.el (gnus-group-delete-articles): New command.

13 years ago* loadup.el: Use version numbers in Cygwin build.
Ken Brown [Fri, 17 Dec 2010 15:14:57 +0000 (10:14 -0500)]
* loadup.el: Use version numbers in Cygwin build.

13 years agoAsk for confirmation in ido-file-internal (Bug#1238).
Ryan Twitchell [Fri, 17 Dec 2010 10:56:03 +0000 (18:56 +0800)]
Ask for confirmation in ido-file-internal (Bug#1238).

* ido.el (ido-file-internal): Ask for confirmation before
overwriting an existing file (Bug#1238).

13 years agoSupport for menu separators in the GTK tool-bar.
Chong Yidong [Fri, 17 Dec 2010 04:04:06 +0000 (12:04 +0800)]
Support for menu separators in the GTK tool-bar.

* src/gtkutil.c (XG_BIN_CHILD): New macro.
(xg_get_menu_item_label, xg_update_menubar)
(xg_update_menu_item, xg_tool_bar_menu_proxy)
(xg_show_toolbar_item, update_frame_tool_bar): Use it.
(separator_names, xg_separator_p): Move to keyboard.c.
(create_menus, xg_update_submenu, update_frame_tool_bar): Use
menu_separator_name_p.

* src/keyboard.c (parse_tool_bar_item): Allow menu separators in
tool-bar maps.
(menu_separator_name_p): New function, from gtkutil.c.
(separator_names): Move from gtkutil.c.

* src/keyboard.h (menu_separator_name_p): Add prototype.

* src/nsmenu.m (name_is_separator): Function deleted.
(addItemWithWidgetValue): Use menu_separator_name_p.

* src/w32menu.c (name_is_separator): Function deleted.
(add_menu_item): Use menu_separator_name_p.

13 years agoMention epa-file-select-keys in epa.texi.
Daiki Ueno [Fri, 17 Dec 2010 01:43:03 +0000 (10:43 +0900)]
Mention epa-file-select-keys in epa.texi.

13 years agoSynopsis: Migrate allout encryption provisions from pgg library, which is
Ken Manheimer [Thu, 16 Dec 2010 23:30:57 +0000 (18:30 -0500)]
Synopsis: Migrate allout encryption provisions from pgg library, which is
obsolete, to epg library, which replaces pgg.

Due to the underlying GnuPG V2 restrictions on external handling of
passphrases (or epg's restrictions when working with GnuPG v2), we are
dropping allout's symmetric encryption passphrase hinting and verification.
This has the advantage that no emacs code has access to the passphrase,
leaving all passphrase handling in GnuPG, which is much more secure.  This,
together with the reduction in allout code complexity and logistical
complications the user would have in arranging to use GnuPG v1, requires
dropping these features.

Keypair encryption gains features, with adoption of respect for epa-file's
'epa-file-encrypt-to'.  This means that allout outlines can be associated
with recipients, and encryptions by default will be targeted to those
recipients.

The default encryption mode (whether to epa-file-encrypt-to recipients, if
any, or symmetric mode) is overridden by providing a universal argument
greater than 1 to the outline entry encryption command,
'allout-toggle-current-subtree-encryption'.  The user is then prompted to
select keypair identities from their list of known GnuPG keypairs.  If they
don't select any, then symmetric encryption is done.  Otherwise, the
selected keypair identities are targeted.  If the universal argument is
greater than 4 then the selected recipients (or none, if none were
selected) are associated with the outline using a file local variable, as
default recipients for subsequent encryptions.

This is a big merge from a private branch.

Code details:

(allout-toggle-current-subtree-encryption,
allout-toggle-subtree-encryption): Adjust docstrings to reflect defaulting
policy and other changes.
Change fetch-pass to keymode-cue, for simpler universal argument
interpretation.
(allout-toggle-subtree-encryption):  Adjust docstring to describe
changed encryption provisions.
Change fetch-pass to keymode-cue, for simpler universal argument
interpretation.
Remove provisions for handling key type and identity - they'll all be
within allout-encrypt-string or epg/epg or even contained all the way in
gpg.
(allout-encrypt-string): Include keymode-cue, for optionally prompting for
keypair recipients (universal argument > 1) and, in addition, associating the
specified recipients with the outline (universal argument > 4) using a file
local variable setting for 'epa-file-encrypt-to'.
Require epa, for recipients handling.
Change how regexp filtering elements are named.
Describe the problem with caching of incorrect symmetric-decryption keys.
Use the epa-passphrase-callback-function, in case the user is using GnuPG
v1.
Support saving of the selected keypair recipients when invoked with a
keymode-cue > 4.
Remove obsolete arguments 'fetch-pass', 'target-cache-id', 'retried'.
Require 'epa.
Establish epg-context with armoring and default epg-protocol.
Remove all passphrase cache, verification, and hinting code.
(allout-passphrase-verifier-handling, allout-passphrase-hint-handling):
No longer used, delete.
(allout-mode): Adjust docstring to describe changed encryption provisions.
Describe the problem with caching of incorrect symmetric-decryption keys.
(allout-obtain-passphrase, allout-epg-passphrase-callback-function,
allout-make-passphrase-state, allout-passphrase-state-passphrase,
allout-encrypted-key-info, allout-update-passphrase-mnemonic-aids,
allout-get-encryption-passphrase-verifier, allout-verify-passphrase):
Obsolete, remove.

13 years agonnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really conside...
Lars Magne Ingebrigtsen [Thu, 16 Dec 2010 23:18:57 +0000 (23:18 +0000)]
nnimap.el (nnimap-wait-for-response): Fix the end-point calculation to really consider the last line.

13 years ago(allout-mode), (allout-encrypt-string): Describe the problem with caching
Ken Manheimer [Thu, 16 Dec 2010 22:43:45 +0000 (17:43 -0500)]
(allout-mode), (allout-encrypt-string): Describe the problem with caching
of incorrect symmetric-decryption keys.

13 years agolast pgg adjustment before migrating to epg.
Ken Manheimer [Thu, 16 Dec 2010 22:33:13 +0000 (17:33 -0500)]
last pgg adjustment before migrating to epg.

(allout-encrypted-key-info): replace pgg-gpg-symmetric-key-p with explicit
examination of the parsed armoring structure.  pgg-gpg-symmetric-key-p
seems to have drifted, not recognizing parsed symmetric keys as being
symmetric.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Thu, 16 Dec 2010 22:22:28 +0000 (22:22 +0000)]
Merge changes made in Gnus trunk.

nnimap.el (nnimap-wait-for-response): Always look (at least) at the previous line.
nnimap.el (nnimap-quirk): New function.
 (nnimap-retrieve-group-data-early): Use it.
 (nnimap-quirks): New alist.
gnus.texi (Foreign Groups): Added clarification of foreign groups.
gnus-sum.el (gnus-summary-push-marks-to-backend): Fix the logic for copying read-ness to the backends.
gnus-group.el (gnus-group-kill-group): Notify the backend that the group has been killed.
 (gnus-group-yank-group): Ditto.
gnus-start.el (gnus-subscribe-newsgroup): Notify the backend.
nnir.el: Improve customizations.
gnus.texi (Archived Messages): Removed outdated comment and text.
nnfolder.el (nnfolder-save-all-buffers): Refactor out into its own function.
 (nnfolder-request-expire-articles): Save all the buffers after doing expiry.
nnmail.el (nnmail-expiry-target-group): Revert the "all articles are the last article", since that led to serious performance regressions when expiring nnml groups.
gnus-html.el (gnus-html-schedule-image-fetching): Make sure the HTML fetching stops when Gnus exits.
gnus-srvr.el: Avoid passing nil regexp argument to delete-matching-lines.
auth-source.el (auth-source-gpg-encrypt-to): New variable to set the list of recipient keys, or use symmetric encryption if not a list.
 (auth-source-create): Use it to make `epa-file-encrypt-to' local for an EPA override, replacing the call to `netrc-store-data'.

13 years agoHandle invisible cursor (bg same as cursor color) for Nextstep.
Jan Djärv [Thu, 16 Dec 2010 19:37:13 +0000 (20:37 +0100)]
Handle invisible cursor (bg same as cursor color) for Nextstep.

* nsterm.m (ns_draw_window_cursor): If the cursor color is the
same as the background, use the face forground as cursor.

13 years agorespect epa-file-encrypt-to, defaulting to it when encrypting, if set, and
Ken Manheimer [Thu, 16 Dec 2010 07:39:17 +0000 (02:39 -0500)]
respect epa-file-encrypt-to, defaulting to it when encrypting, if set, and
adjusting the value (as a file local variable and an active buffer setting)
with the result of epa-select-keys.

note the problem with caching of incorrect symmetric decryption keys.

(allout-toggle-current-subtree-encryption),
(allout-toggle-subtree-encryption): Adjust docstrings to reflect defaulting
policy change.

(allout-encrypt-string): keymod-cue rather than keypair-mode, which is
interpreted here.  Use the epa-passphrase-callback-function, in case the
user is using GnuPG v1.  Support saving of the selected keypair recipients
when invoked with a keymode-cue > 4.

13 years agourl-cookie.el: Require 'cl when compiling
Miles Bader [Thu, 16 Dec 2010 04:14:48 +0000 (13:14 +0900)]
url-cookie.el: Require 'cl when compiling

13 years agoExtend epa-file-select-keys to allow users to inhibit key selection.
Daiki Ueno [Thu, 16 Dec 2010 02:35:56 +0000 (11:35 +0900)]
Extend epa-file-select-keys to allow users to inhibit key selection.

* epa-file.el (epa-file-select-keys): Accept 'silent to inhibit
key selection prompt; make 'silent as default (Bug#7487).

13 years agoetc/NEWS: Document eshell-directory-name change.
Chong Yidong [Thu, 16 Dec 2010 02:28:33 +0000 (10:28 +0800)]
etc/NEWS: Document eshell-directory-name change.

13 years ago* eshell/eshell.el (eshell-directory-name): Use locate-user-emacs-file (Bug#7578).
Leo Liu [Thu, 16 Dec 2010 02:26:39 +0000 (10:26 +0800)]
* eshell/eshell.el (eshell-directory-name): Use locate-user-emacs-file (Bug#7578).

13 years agoDoc fix for just-one-space change. Document it in NEWS.
Chong Yidong [Thu, 16 Dec 2010 01:20:46 +0000 (09:20 +0800)]
Doc fix for just-one-space change.  Document it in NEWS.

13 years agoshr.el (shr-insert): Set shr-start after deleting trailing space; don't delete it...
Katsumi Yamaoka [Thu, 16 Dec 2010 00:55:04 +0000 (00:55 +0000)]
shr.el (shr-insert): Set shr-start after deleting trailing space; don't delete it within indentation.

13 years agognus-agent.el: Indent.
Gnus developers [Wed, 15 Dec 2010 22:24:36 +0000 (22:24 +0000)]
gnus-agent.el: Indent.
gnus.texi: Fix a couple nnir -> @code{nnir} things.
nnimap.el (nnimap-retrieve-group-data-early): Fix the syntax of the QRESYNC command by deleting a superfluous space which broke Cyrus servers.  This change will break other servers that are buggy the other way around.
gnus.texi (The hyrex Engine): Say that this engine as obsolete.

13 years agoRemove code and comments related to lib-src/fns-*.el; long removed.
Glenn Morris [Wed, 15 Dec 2010 08:16:53 +0000 (00:16 -0800)]
Remove code and comments related to lib-src/fns-*.el; long removed.

* Makefile.in (install-arch-dep, uninstall): Remove code relating to the
long absent lib-src/fns-*.el.

* lisp/loadup.el (symbol-file-load-history-loaded): Remove; unused.
Remove related, old, commented-out code.

* lisp/subr.el (symbol-file-load-history-loaded)
  (load-symbol-file-load-history): Remove old, commented-out code.

13 years agoNew command rectangle-number-lines (Bug#4382).
Jari Aalto [Wed, 15 Dec 2010 02:56:22 +0000 (10:56 +0800)]
New command rectangle-number-lines (Bug#4382).

* rect.el (rectange--default-line-number-format)
(rectangle-number-line-callback): New functions.
(rectangle-number-lines): New command, bound to C-x r N.

13 years agoDelete long unused functions and variables in rect.el.
Chong Yidong [Wed, 15 Dec 2010 02:05:38 +0000 (10:05 +0800)]
Delete long unused functions and variables in rect.el.
lisp/rect.el (operate-on-rectangle-lines, string-rectangle-string):
Delete unused variables.
(move-to-column-force): Remove function obsolete since 21.2.

13 years agospam.el: Reindent and fix long lines.
Teodor Zlatanov [Tue, 14 Dec 2010 23:08:31 +0000 (23:08 +0000)]
spam.el: Reindent and fix long lines.
 (spam-copy-or-move-routine): Exclude invalid move destinations.

13 years agognus.texi (The swish++ Engine): Add customizable parameters descriptions.
Andrew Cohen [Tue, 14 Dec 2010 22:11:38 +0000 (22:11 +0000)]
gnus.texi (The swish++ Engine): Add customizable parameters descriptions.
 (The swish-e Engine): Ditto.

13 years ago* NEWS: Mention new Tramp method "ksu".
Michael Albinus [Tue, 14 Dec 2010 20:42:57 +0000 (21:42 +0100)]
* NEWS: Mention new Tramp method "ksu".

13 years ago* tramp.texi (Inline methods): Add "ksu" method.
Michael Albinus [Tue, 14 Dec 2010 20:37:49 +0000 (21:37 +0100)]
* tramp.texi (Inline methods): Add "ksu" method.
(Remote processes): Add example with remote `default-directory'.

13 years ago* net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
Michael Albinus [Tue, 14 Dec 2010 20:33:33 +0000 (21:33 +0100)]
* net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
(tramp-handle-insert-file-contents): Do not set permanent-local
property.

* net/tramp-cache.el (tramp-persistency-file-name): Use
`locate-user-emacs-file' if fboundp.

* net/tramp-sh.el (tramp-methods): Add "ksu".
(tramp-default-user-alist): Add "ksu".  Use `regexp-opt' for
method list.

13 years agonnir.el (nnir-mode): Don't install registry hooks if user hasn't installed the registry.
Andrew Cohen [Tue, 14 Dec 2010 12:52:30 +0000 (12:52 +0000)]
nnir.el (nnir-mode): Don't install registry hooks if user hasn't installed the registry.

13 years agoTidy up some js.el requires.
Glenn Morris [Tue, 14 Dec 2010 08:06:18 +0000 (00:06 -0800)]
Tidy up some js.el requires.
* lisp/progmodes/js.el: Doc't require font-lock, etags, or easymenu.
(find-tag-marker-ring): Declare.
(js-find-symbol): Require etags.

13 years agoMisc sendmail.el.
Glenn Morris [Tue, 14 Dec 2010 05:01:08 +0000 (21:01 -0800)]
Misc sendmail.el.

* lisp/mail/sendmail.el: Don't require rmail or mailalias when compiling.
Require mail-utils.
(mail-alias-file): Don't autoload.  Doc fix.
(mail-bury-selects-summary, mail-send-nonascii): Don't autoload.
(mail-mailer-swallows-blank-line): Default to nil.  Doc fix.
Mark as obsolete, and risky.
(mail-setup): Simplify.

13 years agoChangeLog fix.
Glenn Morris [Tue, 14 Dec 2010 04:46:07 +0000 (20:46 -0800)]
ChangeLog fix.

13 years agoMake build-mail-aliases an interactive command.
Glenn Morris [Tue, 14 Dec 2010 04:42:59 +0000 (20:42 -0800)]
Make build-mail-aliases an interactive command.

* lisp/mail/mailalias.el (build-mail-aliases): Make it interactive.
* lisp/mail/sendmail.el (build-mail-aliases): Update autoload.

* doc/misc/faq.texi (Expanding aliases when sending mail):
Now build-mail-aliases is interactive.

13 years agoRemove some dired.el autoload cookies on defcustoms.
Glenn Morris [Tue, 14 Dec 2010 04:35:33 +0000 (20:35 -0800)]
Remove some dired.el autoload cookies on defcustoms.

* lisp/dired.el (dired-trivial-filenames, dired-chown-program)
(dired-auto-revert-buffer): Remove autoload cookies.
* lisp/mail/sendmail.el (mail-recover-1): Require 'dired.

13 years agoMake some dired defvars into defcustoms.
Glenn Morris [Tue, 14 Dec 2010 04:32:14 +0000 (20:32 -0800)]
Make some dired defvars into defcustoms.

* lisp/dired.el (dired-subdir-switches, dired-chown-program)
(dired-use-ls-dired, dired-chmod-program, dired-touch-program):
Make into defcustoms.
(dired-chown-program): Simplify initialization.

13 years ago* lisp/mail/mail-utils.el: No need to require lisp-mode, it's in loadup.
Glenn Morris [Tue, 14 Dec 2010 04:26:01 +0000 (20:26 -0800)]
* lisp/mail/mail-utils.el: No need to require lisp-mode, it's in loadup.

13 years agoMisc url-cookie tidy-up.
Glenn Morris [Tue, 14 Dec 2010 04:18:22 +0000 (20:18 -0800)]
Misc url-cookie tidy-up.

* lisp/url/url-cookie.el: Don't require cl when compiling.
(url-cookie-clean-up, url-cookie-generate-header-lines): Use dolist.
(url-cookie-parse-file, url-cookie-store, url-cookie-retrieve)
(url-cookie-handle-set-cookie): Simplify.

13 years agognus.texi (Filtering New Groups): Mention.
Andrew Cohen [Mon, 13 Dec 2010 23:54:31 +0000 (23:54 +0000)]
gnus.texi (Filtering New Groups): Mention.

13 years agonnir.el (nnir-run-gmane): Better check for gmane groups: error out if groupname doesn...
Andrew Cohen [Mon, 13 Dec 2010 23:31:59 +0000 (23:31 +0000)]
nnir.el (nnir-run-gmane): Better check for gmane groups: error out if groupname doesn't contain "gmane".

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 13 Dec 2010 22:29:12 +0000 (22:29 +0000)]
Merge changes made in Gnus trunk.

nnir.el (nnir-run-imap): Return article list in UID order.
gnus-start.el (gnus-auto-subscribed-groups): Add nnimap to the list of automatically subscribed groups.
 (gnus-auto-subscribed-categories): New variable.
 (gnus-matches-options-n): Use it.
 (gnus-default-subscribed-newsgroups): Remove unused variable.
 (gnus-start-draft-setup): Message a bit less.
gnus-agent.el (gnus-agentize): Don't create the queue group automatically on startup.  It'll be created later, if needed.
gnus-start.el (gnus-1): Clarify comment.
 (gnus-matches-options-n): Fix typo in last change.
 (gnus-1): Don't create the nndrafts group twice.
 (gnus-setup-news): There's no need to read the active file here, since that's done again later on a per-backend basis.
 (gnus-start-draft-setup): Make sure that the new group is started out empty.
netrc.el (netrc-point-at-eol): Remove the unused netrc-point-at-old and netrc-bound-and-true-p bindings.
 (netrc-parse): Cache the netrc contents.

13 years ago* net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles.
Romain Francoise [Mon, 13 Dec 2010 22:20:32 +0000 (23:20 +0100)]
* net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles.

13 years agoChangeLog fixes.
Glenn Morris [Mon, 13 Dec 2010 17:27:56 +0000 (09:27 -0800)]
ChangeLog fixes.
Includes removing changes for files not present.

13 years agoChangeLog merge fix.
Glenn Morris [Mon, 13 Dec 2010 17:26:01 +0000 (09:26 -0800)]
ChangeLog merge fix.

13 years agoChangeLog whitespace fix.
Glenn Morris [Mon, 13 Dec 2010 17:19:58 +0000 (09:19 -0800)]
ChangeLog whitespace fix.

13 years agoChangeLog merge fix.
Glenn Morris [Mon, 13 Dec 2010 17:18:55 +0000 (09:18 -0800)]
ChangeLog merge fix.

13 years agoMerge from emacs-23
Stefan Monnier [Mon, 13 Dec 2010 15:27:36 +0000 (10:27 -0500)]
Merge from emacs-23

13 years agoproto-stream.el (proto-stream-open-network-only): Fix the calling convention of the...
Lars Magne Ingebrigtsen [Mon, 13 Dec 2010 04:22:39 +0000 (04:22 +0000)]
proto-stream.el (proto-stream-open-network-only): Fix the calling convention of the network-only option.
gnus-sum.el (gnus-summary-enter-digest-group): Mention gnus-auto-select-on-ephemeral-exit.

13 years agosubr.el (posn-col-row): Evaluate header-line-format in the context of
Eli Zaretskii [Sun, 12 Dec 2010 20:45:57 +0000 (22:45 +0200)]
subr.el (posn-col-row): Evaluate header-line-format in the context of
 the POSITION window's buffer.

13 years agoDocument that expand-file-name collapses multiple slashes. (Bug#7617)
Eli Zaretskii [Sun, 12 Dec 2010 20:37:54 +0000 (22:37 +0200)]
Document that expand-file-name collapses multiple slashes.  (Bug#7617)

 fileio.c (Fexpand_file_name): Doc fix.

13 years ago* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
Karl Fogel [Sun, 12 Dec 2010 16:53:24 +0000 (11:53 -0500)]
* lisp/bookmark.el (bookmark-name-from-full-record): Rename back to
  this original name from `bookmark-name-from-record' reverting part of
  2010-12-08T08:09:27Z!kfogel@red-bean.com / kfogel@red-bean.com-20101208080927-5j9jqnb2xvcw4ogm.
  As Drew Adams pointed out, there was no reason to cause churn for
  third-party callers.

13 years ago(c-forward-type): Before scanning a template arglist, check that the
Alan Mackenzie [Sun, 12 Dec 2010 12:24:56 +0000 (12:24 +0000)]
(c-forward-type): Before scanning a template arglist, check that the
current language supports this.

13 years agoFallout from bug #7563.
Eli Zaretskii [Sat, 11 Dec 2010 18:45:53 +0000 (20:45 +0200)]
Fallout from bug #7563.

 processes.texi (Shell Arguments):
 strings.texi (Creating Strings): Don't mention "shell commands";
 make it explicit that `split-string-and-unquote' and
 `combine-and-quote-strings' are mainly for working with arguments
 to call-process and start-process.