]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years ago* image.c: (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
Paul Eggert [Fri, 11 Mar 2011 08:20:11 +0000 (00:20 -0800)]
* image.c: (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):

(jpeg_load, gif_load): Rename locals to avoid shadowing.

13 years ago* image.c (gif_load): Fix pointer signedness.
Paul Eggert [Fri, 11 Mar 2011 08:01:09 +0000 (00:01 -0800)]
* image.c (gif_load): Fix pointer signedness.

13 years ago* image.c (x_edge_detection): Remove unnecessary cast that
Paul Eggert [Fri, 11 Mar 2011 07:59:36 +0000 (23:59 -0800)]
* image.c (x_edge_detection): Remove unnecessary cast that

gcc -Wbad-function-cast diagnoses.

13 years ago* image.c (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
Paul Eggert [Fri, 11 Mar 2011 07:54:50 +0000 (23:54 -0800)]
* image.c (xpm_load): Redo to avoid "discards qualifiers" gcc warning.

13 years ago* image.c (DIM, HAVE_STDLIB_H_1): Remove unused macros.
Paul Eggert [Fri, 11 Mar 2011 07:50:08 +0000 (23:50 -0800)]
* image.c (DIM, HAVE_STDLIB_H_1): Remove unused macros.

13 years ago* image.c (clear_image_cache): Now static.
Paul Eggert [Fri, 11 Mar 2011 07:42:54 +0000 (23:42 -0800)]
* image.c (clear_image_cache): Now static.

2011-03-11  Paul Eggert  <eggert@cs.ucla.edu>

13 years agoFix some minor problems found by GCC 4.5.2's static checks.
Paul Eggert [Fri, 11 Mar 2011 07:24:21 +0000 (23:24 -0800)]
Fix some minor problems found by GCC 4.5.2's static checks.

13 years agoMerge: Minor changes for problems found by GCC 4.5.2's static checks.
Paul Eggert [Fri, 11 Mar 2011 06:57:50 +0000 (22:57 -0800)]
Merge: Minor changes for problems found by GCC 4.5.2's static checks.

13 years agoAdd bug#s.
Paul Eggert [Fri, 11 Mar 2011 06:41:50 +0000 (22:41 -0800)]
Add bug#s.

13 years ago* fringe.c: Add comment.
Paul Eggert [Fri, 11 Mar 2011 06:23:26 +0000 (22:23 -0800)]
* fringe.c: Add comment.

13 years ago* fringe.c (update_window_fringes): Mark locals as initialized
Paul Eggert [Fri, 11 Mar 2011 06:06:36 +0000 (22:06 -0800)]
* fringe.c (update_window_fringes): Mark locals as initialized

13 years agolisp/help-fns.el (describe-variable): Don't complete keywords.
Juanma Barranquero [Fri, 11 Mar 2011 00:33:57 +0000 (01:33 +0100)]
lisp/help-fns.el (describe-variable): Don't complete keywords.

13 years ago* .gdbinit (pwinx, xbuffer): Fix access to buffer name.
Andreas Schwab [Fri, 11 Mar 2011 00:19:57 +0000 (01:19 +0100)]
* .gdbinit (pwinx, xbuffer): Fix access to buffer name.

13 years agoFix package.el handling of version numbers like 1.0pre6.
Chong Yidong [Thu, 10 Mar 2011 23:40:46 +0000 (18:40 -0500)]
Fix package.el handling of version numbers like 1.0pre6.

* lisp/emacs-lisp/package.el (package-version-join): Impose a standard
string representation for pre/alpha/beta version lists.
(package-unpack-single): Standardize the directory name by passing
it through package-version-join.

13 years agoFix package-strip-rcs-id to be more robust.
Chong Yidong [Thu, 10 Mar 2011 21:51:26 +0000 (16:51 -0500)]
Fix package-strip-rcs-id to be more robust.

See http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00396.html

* lisp/emacs-lisp/package.el (package-strip-rcs-id): Accept any version
string that does not signal an error in version-to-list.

13 years ago* fringe.c (update_window_fringes): Initialize top_row_ends_at_zv_p and
Paul Eggert [Thu, 10 Mar 2011 21:46:21 +0000 (13:46 -0800)]
* fringe.c (update_window_fringes): Initialize top_row_ends_at_zv_p and

bot_row_ends_at_zv_p, with a FIXME comment.

13 years agoauth-source.el (auth-source-read-char-choice): Remove `dropdown-list'.
Teodor Zlatanov [Thu, 10 Mar 2011 13:32:49 +0000 (13:32 +0000)]
auth-source.el (auth-source-read-char-choice): Remove `dropdown-list'.
 (auth-source-pick-first-password): New convenience function.

13 years ago* simple.el (delete-trailing-whitespace): Return nil for the
Michael Albinus [Thu, 10 Mar 2011 11:28:33 +0000 (12:28 +0100)]
* simple.el (delete-trailing-whitespace): Return nil for the
benefit of `write-file-functions'.

13 years ago* lisp/vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
Glenn Morris [Thu, 10 Mar 2011 08:32:27 +0000 (00:32 -0800)]
* lisp/vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.

13 years agoAdd `vc-git-program' option; suggested on emacs-devel.
Glenn Morris [Thu, 10 Mar 2011 08:26:41 +0000 (00:26 -0800)]
Add `vc-git-program' option; suggested on emacs-devel.

* lisp/vc/vc-git.el (vc-git-program): New option.
(vc-git-branches, vc-git-pull, vc-git-merge-branch, vc-git-command)
(vc-git--call): Use it.

13 years ago* lisp/eshell/esh-util.el (eshell-condition-case): Doc fix.
Glenn Morris [Thu, 10 Mar 2011 07:16:04 +0000 (23:16 -0800)]
* lisp/eshell/esh-util.el (eshell-condition-case): Doc fix.

13 years agoFix non-ASCII characters in User and ELisp manuals.
Eli Zaretskii [Thu, 10 Mar 2011 05:48:33 +0000 (00:48 -0500)]
Fix non-ASCII characters in User and ELisp manuals.

 doc/lispref/modes.texi (Operator Precedence Grammars): Don't use characters
 outside ISO-8859-1.
 doc/emacs/search.texi (Regexp Example):
 doc/emacs/mule.texi (International Chars):
 doc/emacs/building.texi (External Lisp): Don't use characters outside
 ISO-8859-1.

13 years agocus-edit tweak for bug#2298.
Glenn Morris [Thu, 10 Mar 2011 03:44:33 +0000 (19:44 -0800)]
cus-edit tweak for bug#2298.

* lisp/cus-edit.el (Custom-newline): If no button at point, look for a
subgroup button at start-of-line.

13 years ago* lisp/mail/rmail.el (rmail-msgend, rmail-msgbeg): Doc fixes.
Glenn Morris [Thu, 10 Mar 2011 03:41:17 +0000 (19:41 -0800)]
* lisp/mail/rmail.el (rmail-msgend, rmail-msgbeg): Doc fixes.

13 years agoInhibit mouse-avoidance if cursor-type is nil (Bug#8209).
Julien Danjou [Thu, 10 Mar 2011 02:14:55 +0000 (21:14 -0500)]
Inhibit mouse-avoidance if cursor-type is nil (Bug#8209).

* lisp/avoid.el (mouse-avoidance-ignore-p): Do not move the cursor if
`cursor-type' is nil.

13 years ago* fringe.c (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
Paul Eggert [Thu, 10 Mar 2011 02:02:40 +0000 (18:02 -0800)]
* fringe.c (destroy_fringe_bitmap, init_fringe_bitmap): Now static.

13 years ago* alloc.c (mark_fringe_data): Move decl from here ...
Paul Eggert [Thu, 10 Mar 2011 02:01:53 +0000 (18:01 -0800)]
* alloc.c (mark_fringe_data): Move decl from here ...

* lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
to check its interface.
(init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.

13 years ago* xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
Paul Eggert [Thu, 10 Mar 2011 01:58:37 +0000 (17:58 -0800)]
* xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):

(Fx_backspace_delete_keys_p):
Use them to avoid shadowing, and rename vars to avoid shadowing.
(x_decode_color, x_set_name, x_window): Now static.

13 years ago* fontset.c (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
Paul Eggert [Thu, 10 Mar 2011 01:48:47 +0000 (17:48 -0800)]
* fontset.c (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.

13 years ago* fontset.c (fontset_font): Mark local as initialized.
Paul Eggert [Thu, 10 Mar 2011 01:44:38 +0000 (17:44 -0800)]
* fontset.c (fontset_font): Mark local as initialized.

13 years ago* fontset.c (Fset_fontset_font): Rename local to avoid shadowing.
Paul Eggert [Thu, 10 Mar 2011 01:43:19 +0000 (17:43 -0800)]
* fontset.c (Fset_fontset_font): Rename local to avoid shadowing.

13 years ago* fontset.c (free_realized_fontset): Now static.
Paul Eggert [Thu, 10 Mar 2011 01:41:18 +0000 (17:41 -0800)]
* fontset.c (free_realized_fontset): Now static.

13 years ago* xrdb.c: Include "xterm.h", to check x_load_resources's interface.
Paul Eggert [Thu, 10 Mar 2011 01:40:21 +0000 (17:40 -0800)]
* xrdb.c: Include "xterm.h", to check x_load_resources's interface.

13 years ago* xselect.c (x_own_selection, Fx_disown_selection_internal): Rename locals
Paul Eggert [Thu, 10 Mar 2011 01:36:58 +0000 (17:36 -0800)]
* xselect.c (x_own_selection, Fx_disown_selection_internal): Rename locals

to avoid shadowing.
(x_handle_dnd_message): Remove local to avoid shadowing.

13 years ago* xselect.c (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
Paul Eggert [Thu, 10 Mar 2011 01:31:57 +0000 (17:31 -0800)]
* xselect.c (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.

13 years ago* xselect.c (x_disown_buffer_selections): Remove; not used.
Paul Eggert [Thu, 10 Mar 2011 01:30:22 +0000 (17:30 -0800)]
* xselect.c (x_disown_buffer_selections): Remove; not used.

13 years ago* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
Paul Eggert [Thu, 10 Mar 2011 01:28:06 +0000 (17:28 -0800)]
* lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,

so that the caller can use some name other than gcpro1.
(GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
(Fx_create_frame, x_create_tip_frame, Fx_show_tip):
(Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
macros.

13 years ago* xfns.c: (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
Paul Eggert [Thu, 10 Mar 2011 01:06:01 +0000 (17:06 -0800)]
* xfns.c: (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):

Remove unused locals.

13 years ago* xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
Paul Eggert [Thu, 10 Mar 2011 01:03:29 +0000 (17:03 -0800)]
* xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness.

13 years ago* xfns.c (Fx_create_frame): Add braces to silence GCC warning.
Paul Eggert [Thu, 10 Mar 2011 00:59:17 +0000 (16:59 -0800)]
* xfns.c (Fx_create_frame): Add braces to silence GCC warning.

13 years ago* xfns.c (x_decode_color, x_set_name, x_window): Now static.
Paul Eggert [Thu, 10 Mar 2011 00:58:10 +0000 (16:58 -0800)]
* xfns.c (x_decode_color, x_set_name, x_window): Now static.

13 years ago* calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'.
Jay Belanger [Wed, 9 Mar 2011 23:38:16 +0000 (17:38 -0600)]
* calc/calc.el (calc-mode-map): Don't bind "C-_" to `calc-missing-key'.

13 years ago* allout.el Summary: Change so yank of distinctive-bullet items preserves
Ken Manheimer [Wed, 9 Mar 2011 20:48:56 +0000 (15:48 -0500)]
* allout.el Summary: Change so yank of distinctive-bullet items preserves
the existing header prefix, rebulleting it if necessary, rather than
replacing it.  This is necessary for proper operation of cooperative addons
like allout-widgets.

(allout-make-topic-prefix) (allout-rebullet-heading): Change SOLICIT arg to
INSTEAD, and interpret additionally a string value as alternate bullet to
be used, instead of prompting the user for a bullet character.

13 years agoFix last commit.
Eli Zaretskii [Wed, 9 Mar 2011 20:05:40 +0000 (22:05 +0200)]
Fix last commit.

13 years ago* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.
Paul Eggert [Wed, 9 Mar 2011 17:39:28 +0000 (09:39 -0800)]
* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.

13 years ago* xterm.c (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
Paul Eggert [Wed, 9 Mar 2011 17:30:24 +0000 (09:30 -0800)]
* xterm.c (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.

13 years agoAllow building manuals with Texinfo before v4.12.
Eli Zaretskii [Wed, 9 Mar 2011 16:54:08 +0000 (18:54 +0200)]
Allow building manuals with Texinfo before v4.12.

 doc/lispref/intro.texi (Acknowledgements): Convert to ISO-8859-1 encoding.
 doc/lispref/makefile.w32-in (MAKEINFO_OPTS): Add --enable-encoding.
 doc/lispref/elisp.texi: Use ISO-8859-1 in @documentencoding.
 doc/emacs/ack.texi (Acknowledgments): Convert to ISO-8859-1 encoding.  Use
 Texinfo @-commands for non Latin-1 characters.
 doc/emacs/emacs.texi: Use ISO-8859-1 in @documentencoding.
 doc/emacs/makefile.w32-in (MAKEINFO_OPTS): Add --enable-encoding.

13 years ago* src/search.c (compile_pattern_1): Remove unused argument.
Juanma Barranquero [Wed, 9 Mar 2011 16:18:51 +0000 (17:18 +0100)]
* src/search.c (compile_pattern_1): Remove unused argument.
  (compile_pattern): Don't pass it.

13 years agoFix a typo in last commit of ChangeLog file.
Eli Zaretskii [Wed, 9 Mar 2011 16:04:43 +0000 (18:04 +0200)]
Fix a typo in last commit of ChangeLog file.

13 years agoFix bug #8210 with index entries for ".emacs".
Eli Zaretskii [Wed, 9 Mar 2011 15:59:23 +0000 (17:59 +0200)]
Fix bug #8210 with index entries for ".emacs".

 doc/emacs/custom.texi (Init File): Add index entries for ".emacs".

13 years agoauth.texi (Help for developers): Untabify.
Katsumi Yamaoka [Wed, 9 Mar 2011 14:37:30 +0000 (14:37 +0000)]
auth.texi (Help for developers): Untabify.

13 years agoMerge changes made in Gnus trunk.
Teodor Zlatanov [Wed, 9 Mar 2011 13:39:35 +0000 (13:39 +0000)]
Merge changes made in Gnus trunk.

auth-source.el (auth-source-read-char-choice): New function to read a character choice using `dropdown-list', `read-char-choice', or `read-char'.  It appends "[a/b/c] " to the prompt if the choices were '(?a ?b ?c).  The `dropdown-list' support is disabled for now.  Use `eval-when-compile' to load `dropdown-list'.
 (auth-source-netrc-saver): Use it.
nnimap.el (nnimap-credentials): Keep the :save-function as the third parameter in the credentials.
 (nnimap-open-connection-1): Use it after a successful login.
 (nnimap-credentials): Add IMAP-specific user and password prompt.
auth-source.el (auth-source-search): Add :require parameter, taking a list.  Document it and the :save-function return token.  Pass :require down.  Change the CREATED message from a warning to a debug statement.
 (auth-source-search-backends): Pass :require down.
 (auth-source-netrc-search): Pass :require down.
 (auth-source-netrc-parse): Use :require, if it's given, as a filter.  Change save prompt to indicate all modifications saved here are deletions.
 (auth-source-netrc-create): Take user login name as default in user prompt.  Move all the save functionality to a lexically bound function under the :save-function token in the returned list.  Set up clearer default prompts for user, host, port, and secret.
 (auth-source-netrc-saver): New function, intended to be wrapped for :save-function.

13 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Do
Michael Albinus [Wed, 9 Mar 2011 11:04:27 +0000 (12:04 +0100)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Do
not use `tramp-file-name-port', because this returns also
`tramp-default-port'.

13 years ago* lisp/net/rcirc.el (rcirc-handler-001): Remove useless
Deniz Dogan [Wed, 9 Mar 2011 10:45:19 +0000 (11:45 +0100)]
* lisp/net/rcirc.el (rcirc-handler-001): Remove useless
with-rcirc-process-buffer.
(rcirc-check-auth-status): Swap arguments to string-match.

13 years ago* xterm.c: (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
Paul Eggert [Wed, 9 Mar 2011 09:12:38 +0000 (01:12 -0800)]
* xterm.c: (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):

(x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
(x_error_catcher, x_connection_closed, x_error_handler):
(x_error_quitter, xembed_send_message, x_iconify_frame):
(my_log_handler): Rename locals to avoid shadowing.

13 years ago* shell.el (shell-mode): Set comint-input-ring-size from HISTSIZE. (Bug#7889)
Glenn Morris [Wed, 9 Mar 2011 09:01:14 +0000 (01:01 -0800)]
* shell.el (shell-mode): Set comint-input-ring-size from HISTSIZE.  (Bug#7889)

13 years agoFix previous gdb-mi fix...
Glenn Morris [Wed, 9 Mar 2011 08:57:40 +0000 (00:57 -0800)]
Fix previous gdb-mi fix...

13 years agoFix previous gdb-mi change.
Glenn Morris [Wed, 9 Mar 2011 08:55:08 +0000 (00:55 -0800)]
Fix previous gdb-mi change.

13 years agogdb-mi addition for bug#7889.
Glenn Morris [Wed, 9 Mar 2011 08:43:27 +0000 (00:43 -0800)]
gdb-mi addition for bug#7889.

* lisp/progmodes/gdb-mi.el (gdb): Improve 2010-12-08 change.
Check for GDBHISTFILE, HISTSIZE, etc.

13 years ago* xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
Paul Eggert [Wed, 9 Mar 2011 07:17:17 +0000 (23:17 -0800)]
* xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.

(x_fatal_error_signal): Remove; not used.

13 years ago* xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals
Paul Eggert [Wed, 9 Mar 2011 07:11:42 +0000 (23:11 -0800)]
* xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals

unless they are used.

13 years ago* xterm.c: Don't declare local "event" unless it's used.
Paul Eggert [Wed, 9 Mar 2011 07:07:42 +0000 (23:07 -0800)]
* xterm.c: Don't declare local "event" unless it's used.

13 years ago* xterm.c (XTread_socket): Don't define label "out" unless it's used.
Paul Eggert [Wed, 9 Mar 2011 07:05:07 +0000 (23:05 -0800)]
* xterm.c (XTread_socket): Don't define label "out" unless it's used.

13 years ago* xterm.c: (x_shift_glyphs_for_insert, XTflash, XTring_bell):
Paul Eggert [Wed, 9 Mar 2011 07:02:55 +0000 (23:02 -0800)]
* xterm.c: (x_shift_glyphs_for_insert, XTflash, XTring_bell):

(x_calc_absolute_position): Now static.

13 years ago* xterm.h (x_mouse_leave): New decl.
Paul Eggert [Wed, 9 Mar 2011 07:01:14 +0000 (23:01 -0800)]
* xterm.h (x_mouse_leave): New decl.

13 years ago* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
Paul Eggert [Wed, 9 Mar 2011 06:40:38 +0000 (22:40 -0800)]
* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):

Remove unused functions.

13 years ago* xfaces.c (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
Paul Eggert [Wed, 9 Mar 2011 06:29:34 +0000 (22:29 -0800)]
* xfaces.c (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.

(LFACEP): Define only if XASSERTS, as it's not needed otherwise.

13 years ago* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized
Paul Eggert [Wed, 9 Mar 2011 06:25:19 +0000 (22:25 -0800)]
* xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized

does not deduce is never used uninitialized.

13 years ago* xfaces.c (free_realized_faces_for_fontset): Remove; not used.
Paul Eggert [Wed, 9 Mar 2011 06:23:48 +0000 (22:23 -0800)]
* xfaces.c (free_realized_faces_for_fontset): Remove; not used.

13 years ago* xfaces.c (tty_defined_color, merge_face_heights): Now static.
Paul Eggert [Wed, 9 Mar 2011 06:22:39 +0000 (22:22 -0800)]
* xfaces.c (tty_defined_color, merge_face_heights): Now static.

13 years ago* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.
Paul Eggert [Wed, 9 Mar 2011 06:21:25 +0000 (22:21 -0800)]
* term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized.

13 years ago* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
Paul Eggert [Wed, 9 Mar 2011 06:17:32 +0000 (22:17 -0800)]
* xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename

or move locals to avoid shadowing.

13 years ago* terminal.c (store_terminal_param): Now static.
Paul Eggert [Wed, 9 Mar 2011 06:07:27 +0000 (22:07 -0800)]
* terminal.c (store_terminal_param): Now static.

13 years ago* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file
Paul Eggert [Wed, 9 Mar 2011 05:46:35 +0000 (21:46 -0800)]
* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file

13 years ago* alloc.c (mark_ttys): Move decl from here ...
Paul Eggert [Wed, 9 Mar 2011 05:40:59 +0000 (21:40 -0800)]
* alloc.c (mark_ttys): Move decl from here ...

* lisp.h (mark_ttys): ... to here, so that it's checked against defn.

13 years ago* term.c (term_mouse_position): Rename local to avoid shadowing.
Paul Eggert [Wed, 9 Mar 2011 02:15:18 +0000 (18:15 -0800)]
* term.c (term_mouse_position): Rename local to avoid shadowing.

13 years ago* cm.c (calccost, cmgoto): Use const pointers where appropriate.
Paul Eggert [Wed, 9 Mar 2011 02:12:00 +0000 (18:12 -0800)]
* cm.c (calccost, cmgoto): Use const pointers where appropriate.

* cm.h (struct cm): Likewise.
* dispextern.h (do_line_insertion_deletion_costs): Likewise.
* scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
* term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
(term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
(turn_on_face, init_tty): Likewise.
* termchar.h (struct tty_display_info): Likewise.
* term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.

13 years ago* tparam.h: New file.
Paul Eggert [Tue, 8 Mar 2011 18:26:34 +0000 (10:26 -0800)]
* tparam.h: New file.

* term.c, tparam.h: Include it.
* deps.mk (term.o, tparam.o): Depend on tparam.h.
* term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
Move these decls to tparam.h, and make them agree with what
is actually in tparam.c.  The previous trick of using incompatible
decls in different modules does not conform to the C standard.
All callers of tparam changed to use tparam's actual API.
* tparam.c (tparam1, tparam, tgoto):
Use const pointers where appropriate.

13 years agoAdd missing piece of previous doc/ change.
Glenn Morris [Tue, 8 Mar 2011 17:33:55 +0000 (09:33 -0800)]
Add missing piece of previous doc/ change.

* doc/lispref/elisp.texi: Set documentencoding.

13 years ago* term.c (encode_terminal_code): Remove unused local
Paul Eggert [Tue, 8 Mar 2011 17:31:51 +0000 (09:31 -0800)]
* term.c (encode_terminal_code): Remove unused local

13 years ago* term.c (encode_terminal_code): Now static.
Paul Eggert [Tue, 8 Mar 2011 17:30:15 +0000 (09:30 -0800)]
* term.c (encode_terminal_code): Now static.

13 years ago* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
Paul Eggert [Tue, 8 Mar 2011 17:28:17 +0000 (09:28 -0800)]
* cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not

deduce are never used uninitialized.

13 years ago* bidi.c (BIDI_BOB): Remove unused macro.
Paul Eggert [Tue, 8 Mar 2011 17:25:52 +0000 (09:25 -0800)]
* bidi.c (BIDI_BOB): Remove unused macro.

13 years agoUse condition-case-no-debug in package.el.
Chong Yidong [Tue, 8 Mar 2011 17:11:19 +0000 (12:11 -0500)]
Use condition-case-no-debug in package.el.

* lisp/emacs-lisp/package.el (package-refresh-contents)
(package-menu-execute): Use condition-case-no-debug.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 8 Mar 2011 14:26:05 +0000 (14:26 +0000)]
Merge changes made in Gnus trunk.

message.texi (Message Buffers): Update default value of message-generate-new-buffers.
shr.el (shr-table-horizontal-line): Change the defaults for the table lines to be spaces instead.
sieve-manage.el (sieve-sasl-auth): Create auth-info if not found.
 (sieve-sasl-auth): Check that auth-source-search did return something, or just return an empty string.
gnus-start.el (gnus-group-change-level): Allow putting foreign groups onto the list of killed groups, too.  This makes killed nnimap groups, for instance, more reliably not reappear.
nnimap.el (nnimap-request-thread): Don't bug out when we can't find the parent.

13 years ago* simple.el (shell-command-to-string): Use `process-file'.
Michael Albinus [Tue, 8 Mar 2011 12:58:40 +0000 (13:58 +0100)]
* simple.el (shell-command-to-string): Use `process-file'.

* emacs-lisp/package.el (package-tar-file-info): Handle also
remote files.

* emacs-lisp/package-x.el (package-upload-buffer-internal): Use
`equal' for upload base check.

13 years agoConvert some names in texinfo files to UTF-8.
Glenn Morris [Tue, 8 Mar 2011 08:59:18 +0000 (00:59 -0800)]
Convert some names in texinfo files to UTF-8.

* doc/emacs/Makefile.in (MAKEINFO_OPTS): Add --enable-encoding.
* doc/emacs/emacs.texi (Acknowledgments):
* doc/emacs/ack.texi (Acknowledgments): Names to UTF-8.

* doc/lispref/Makefile.in (MAKEINFO_OPTS): Add --enable-encoding.
* doc/lispref/intro.texi (Acknowledgements): Names to UTF-8.

13 years agoUpdates for compiling with Gtk+ 3.0 (--with-x-toolkit=gtk3).
Jan D [Tue, 8 Mar 2011 08:34:55 +0000 (09:34 +0100)]
Updates for compiling with Gtk+ 3.0 (--with-x-toolkit=gtk3).

* configure.in: Require 3.0 for --with-gtk3.  Add HAVE_GTK3.

* doc/emacs/xresources.texi (GTK resources): ~/.emacs.d/gtkrc does not work
for Gtk+ 3.

* src/gtkutil.c: Include gtkx.h if HAVE_GTK3.  If ! HAVE_GTK3, define
gdk_window_get_screen, gdk_window_get_geometry,
gdk_x11_window_lookup_for_display and GDK_KEY_g.
(xg_set_screen): Use DEFAULT_GDK_DISPLAY.
(xg_get_pixbuf_from_pixmap): New function.
(xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
to Pixmap, take frame as parameter, remove GdkColormap parameter.
Call xg_get_pixbuf_from_pixmap instead of
gdk_pixbuf_get_from_drawable.
(xg_get_image_for_pixmap): Do not make GdkPixmaps, call
xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
(xg_check_special_colors): Use GtkStyleContext and its functions
for HAVE_GTK3.
(xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
(xg_prepare_tooltip, create_dialog, menubar_map_cb)
(xg_update_frame_menubar, xg_tool_bar_detach_callback)
(xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
gtk_widget_get_preferred_size.
(xg_frame_resized): gdk_window_get_geometry only takes 5
parameters.
(xg_win_to_widget, xg_event_is_for_menubar): Call
gdk_x11_window_lookup_for_display.
(xg_set_widget_bg): New function.
(delete_cb): New function.
(xg_create_frame_widgets): connect delete-event to delete_cb.
Call xg_set_widget_bg.  Only set backgrund pixmap for ! HAVE_GTK3
(xg_set_background_color): Call xg_set_widget_bg.
(xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
(xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
Only call gtk_range_set_update_policy if ! HAVE_GTK3.
(xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
if ! HAVE_GTK3.
(update_frame_tool_bar): Call gtk_widget_hide.
(xg_initialize): Use GDK_KEY_g.

* src/xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.

* src/xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
if ! HAVE_GTK3
(x_session_initialize): Call gdk_x11_set_sm_client_id.

* src/xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
(x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.

* src/xterm.h (DEFAULT_GDK_DISPLAY): New define.
(GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
for ! HAVE_GTK3.
(GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.

13 years ago* dispextern.h (bidi_dump_cached_states): Likewise.
Paul Eggert [Tue, 8 Mar 2011 08:26:27 +0000 (00:26 -0800)]
* dispextern.h (bidi_dump_cached_states): Likewise.

13 years ago* bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
Paul Eggert [Tue, 8 Mar 2011 08:23:12 +0000 (00:23 -0800)]
* bidi.c (bidi_check_type): Now static, since it's not used elsewhere.

13 years ago* chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
Paul Eggert [Tue, 8 Mar 2011 08:13:36 +0000 (00:13 -0800)]
* chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.

13 years ago* chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):
Paul Eggert [Tue, 8 Mar 2011 08:12:00 +0000 (00:12 -0800)]
* chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):

Rename locals to avoid shadowing.

13 years ago* chartab.c (copy_sub_char_table): Now static, since it's not used
Paul Eggert [Tue, 8 Mar 2011 08:08:41 +0000 (00:08 -0800)]
* chartab.c (copy_sub_char_table): Now static, since it's not used

elsewhere.

13 years ago* character.c (string_count_byte8): Likewise.
Paul Eggert [Tue, 8 Mar 2011 07:49:41 +0000 (23:49 -0800)]
* character.c (string_count_byte8): Likewise.

13 years ago* ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
Paul Eggert [Tue, 8 Mar 2011 07:48:20 +0000 (23:48 -0800)]
* ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):

(Fregister_code_conversion_map): Rename locals to avoid shadowing.

13 years ago* category.c (copy_category_table): Now static, since it's not used elsewhere.
Paul Eggert [Tue, 8 Mar 2011 07:39:53 +0000 (23:39 -0800)]
* category.c (copy_category_table): Now static, since it's not used elsewhere.

13 years ago* category.c (hash_get_category_set): Remove unused local var.
Paul Eggert [Tue, 8 Mar 2011 07:38:52 +0000 (23:38 -0800)]
* category.c (hash_get_category_set): Remove unused local var.

13 years ago* coding.c (detect_coding_iso_2022): Initialize a local variable that might
Paul Eggert [Tue, 8 Mar 2011 07:36:31 +0000 (23:36 -0800)]
* coding.c (detect_coding_iso_2022): Initialize a local variable that might

be used uninitialized.  Leave a FIXME because it's not clear that
this initialization is needed.

13 years ago* coding.c (decode_coding_emacs_mule): Mark variables that gcc
Paul Eggert [Tue, 8 Mar 2011 07:34:38 +0000 (23:34 -0800)]
* coding.c (decode_coding_emacs_mule): Mark variables that gcc

-Wuninitialized does not deduce are never used uninitialized.

13 years ago* coding.c: (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
Paul Eggert [Tue, 8 Mar 2011 07:23:55 +0000 (23:23 -0800)]
* coding.c: (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):

(ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
(SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
(ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
Remove unused macros.