bpt/emacs.git
10 years ago* w32term.c (note_mouse_movement): Fix last change.
Dmitry Antipov [Wed, 18 Sep 2013 13:18:39 +0000 (17:18 +0400)]
* w32term.c (note_mouse_movement): Fix last change.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 18 Sep 2013 10:19:31 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

10 years agoIfdef away recent changes which aren't relevant to NS port.
Dmitry Antipov [Wed, 18 Sep 2013 09:33:36 +0000 (13:33 +0400)]
Ifdef away recent changes which aren't relevant to NS port.
* dispextern.h (x_mouse_grabbed, x_redo_mouse_highlight)
[!HAVE_NS]: Declare as such.
* frame.c (x_mouse_grabbed, x_redo_mouse_highlight)
[!HAVE_NS]: Define as such.

10 years ago* frame.c (x_redo_mouse_highlight): New function
Dmitry Antipov [Wed, 18 Sep 2013 09:23:10 +0000 (13:23 +0400)]
* frame.c (x_redo_mouse_highlight): New function
to factor out common code used in W32 and X ports.
* dispextern.h (x_redo_mouse_highlight): Add prototype.
* xterm.h (struct x_display_info):
* w32term.h (struct w32_display_info):
* nsterm.h (struct ns_display_info): New members
last_mouse_motion_frame, last_mouse_motion_x and
last_mouse_motion_y, going to replace static variables below.
* xterm.c (last_mouse_motion_event, last_mouse_motion_frame)
(redo_mouse_highlight): Remove.
(note_mouse_movement, syms_of_xterm): Adjust user.
(handle_one_xevent): Likewise.  Use x_redo_mouse_highlight.
* w32term.c (last_mouse_motion_event, last_mouse_motion_frame)
(redo_mouse_highlight): Remove.
(note_mouse_movement, syms_of_w32term): Adjust user.
(w32_read_socket): Likewise.  Use x_redo_mouse_highlight.
* nsterm.m (last_mouse_motion_position, last_mouse_motion_frame):
Remove.
(note_mouse_movement, mouseMoved, syms_of_nsterm):
* nsfns.m (compute_tip_xy): Adjust user.

10 years ago* frame.c (x_mouse_grabbed): New function.
Dmitry Antipov [Wed, 18 Sep 2013 06:48:11 +0000 (10:48 +0400)]
* frame.c (x_mouse_grabbed): New function.
* dispextern.h (x_mouse_grabbed): Add prototype.
(last_mouse_frame): Remove declaration.
* xterm.h (struct x_display_info):
* w32term.h (struct w32_display_info):
* nsterm.h (struct ns_display_info): New member
last_mouse_frame, going to replace...
* xdisp.c (last_mouse_frame): ...global variable.
(note_tool_bar_highlight):
* w32term.c (w32_mouse_position, w32_read_socket):
* xterm.c (XTmouse_position, handle_one_xevent):
Use x_mouse_grabbed.
* nsterm.m (ns_mouse_position, mouseDown): Adjust user.

10 years ago* progmodes/gud.el (gud-mode): Silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 05:19:28 +0000 (22:19 -0700)]
* progmodes/gud.el (gud-mode): Silence --without-x compilation.
(tooltip-mode): Declare.

10 years ago* progmodes/gud.el (gud-find-file): Silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 05:16:36 +0000 (22:16 -0700)]
* progmodes/gud.el (gud-find-file): Silence --without-x compilation.

10 years ago* eshell/em-glob.el (ange-cache):
Glenn Morris [Wed, 18 Sep 2013 05:11:38 +0000 (22:11 -0700)]
* eshell/em-glob.el (ange-cache):
* eshell/em-unix.el (ange-cache): Declare.

10 years agoFix typo in declaration
Glenn Morris [Wed, 18 Sep 2013 05:10:21 +0000 (22:10 -0700)]
Fix typo in declaration

10 years ago* emacs-lisp/chart.el (x-display-color-cells): Declare.
Glenn Morris [Wed, 18 Sep 2013 05:04:41 +0000 (22:04 -0700)]
* emacs-lisp/chart.el (x-display-color-cells): Declare.
(chart-face-list): Drop Emacsen without display-color-p.

10 years ago* semantic/find.el (semantic-brute-find-first-tag-by-name):
Glenn Morris [Wed, 18 Sep 2013 05:00:26 +0000 (22:00 -0700)]
* semantic/find.el (semantic-brute-find-first-tag-by-name):
Replace obsolete function assoc-ignore-case with assoc-string.

10 years ago* semantic/complete.el (tooltip-mode, tooltip-frame-parameters, tooltip-show):
Glenn Morris [Wed, 18 Sep 2013 04:57:25 +0000 (21:57 -0700)]
* semantic/complete.el (tooltip-mode, tooltip-frame-parameters, tooltip-show):
Declare.

10 years ago* gnus-util.el (image-size): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:54:21 +0000 (21:54 -0700)]
* gnus-util.el (image-size): Declare.

10 years ago* net/shr.el (image-size, image-animate): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:53:05 +0000 (21:53 -0700)]
* net/shr.el (image-size, image-animate): Declare.

10 years ago* net/gnutls.el (gnutls-log-level): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:50:54 +0000 (21:50 -0700)]
* net/gnutls.el (gnutls-log-level): Declare.

10 years ago* net/eww.el (libxml-parse-html-region): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:48:55 +0000 (21:48 -0700)]
* net/eww.el (libxml-parse-html-region): Declare.
(eww-display-html): Explicit error if no libxml2 support.

10 years ago* term.el (term-mouse-paste): Reorder to silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 04:46:44 +0000 (21:46 -0700)]
* term.el (term-mouse-paste): Reorder to silence --without-x compilation.

10 years ago* mpc.el (doc-view-mode): Silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 04:44:20 +0000 (21:44 -0700)]
* mpc.el (doc-view-mode): Silence --without-x compilation.

10 years ago* follow.el (scroll-bar-toolkit-scroll, scroll-bar-drag)
Glenn Morris [Wed, 18 Sep 2013 04:42:30 +0000 (21:42 -0700)]
* follow.el (scroll-bar-toolkit-scroll, scroll-bar-drag)
(scroll-bar-scroll-up, scroll-bar-scroll-down, mwheel-scroll): Declare.

10 years ago* doc-view.el (doc-view-mode): Silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 04:38:49 +0000 (21:38 -0700)]
* doc-view.el (doc-view-mode): Silence --without-x compilation.

10 years ago* term/ns-win.el (x-handle-args): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:36:34 +0000 (21:36 -0700)]
* term/ns-win.el (x-handle-args): Declare.

10 years ago* w32-common-fns.el (x-server-version, x-select-enable-clipboard): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:34:56 +0000 (21:34 -0700)]
* w32-common-fns.el (x-server-version, x-select-enable-clipboard): Declare.

10 years ago* term/w32-win.el (create-default-fontset): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:32:01 +0000 (21:32 -0700)]
* term/w32-win.el (create-default-fontset): Declare.

10 years ago* term/x-win.el (x-select-enable-clipboard): Declare.
Glenn Morris [Wed, 18 Sep 2013 04:30:33 +0000 (21:30 -0700)]
* term/x-win.el (x-select-enable-clipboard): Declare.

10 years ago* term/common-win.el (x-select-enable-primary, x-last-selected-text-primary)
Glenn Morris [Wed, 18 Sep 2013 04:28:57 +0000 (21:28 -0700)]
* term/common-win.el (x-select-enable-primary, x-last-selected-text-primary)
(x-last-selected-text-clipboard): Declare.

10 years ago* image.el (image-multi-frame-p): Remove --without-x warning/error.
Glenn Morris [Wed, 18 Sep 2013 04:26:19 +0000 (21:26 -0700)]
* image.el (image-multi-frame-p): Remove --without-x warning/error.

10 years ago* image.el (image-type-from-buffer): Remove --without-x warning/error.
Glenn Morris [Wed, 18 Sep 2013 04:24:14 +0000 (21:24 -0700)]
* image.el (image-type-from-buffer): Remove --without-x warning/error.

10 years ago* mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 04:21:29 +0000 (21:21 -0700)]
* mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.

10 years ago* frame.el (x-display-name): Declare.
Glenn Morris [Wed, 18 Sep 2013 03:58:26 +0000 (20:58 -0700)]
* frame.el (x-display-name): Declare.

10 years ago* faces.el (x-display-list, x-open-connection, x-get-resource): Declare.
Glenn Morris [Wed, 18 Sep 2013 03:53:10 +0000 (20:53 -0700)]
* faces.el (x-display-list, x-open-connection, x-get-resource): Declare.

10 years ago* lisp/subr.el (x-popup-dialog): Declare.
Glenn Morris [Wed, 18 Sep 2013 03:50:18 +0000 (20:50 -0700)]
* lisp/subr.el (x-popup-dialog): Declare.

10 years ago* mail/rmailmm.el (rmail-mime-set-bulk-data): Silence --without-x compilation.
Glenn Morris [Wed, 18 Sep 2013 03:47:11 +0000 (20:47 -0700)]
* mail/rmailmm.el (rmail-mime-set-bulk-data): Silence --without-x compilation.

10 years agowdired.el trivia
Glenn Morris [Wed, 18 Sep 2013 03:45:54 +0000 (20:45 -0700)]
wdired.el trivia

* lisp/wdired.el (dired-backup-overwrite): Remove declaration.
(wdired-mode-map): Add doc string.

10 years agoSilence some --without-x compilation warnings
Glenn Morris [Wed, 18 Sep 2013 02:50:04 +0000 (19:50 -0700)]
Silence some --without-x compilation warnings

* custom.el (x-get-resource): Declare.

* frame.el (x-display-grayscale-p): Declare.

* simple.el (font-info): Declare.

* window.el (x-display-pixel-height, tool-bar-lines-needed): Declare.
(fit-frame-to-buffer): Explicit error if --without-x.
(mouse-autoselect-window-select): Silence compiler.

10 years ago* eshell/esh-util.el (eshell-sublist): Remove unused local variable.
Glenn Morris [Wed, 18 Sep 2013 02:45:31 +0000 (19:45 -0700)]
* eshell/esh-util.el (eshell-sublist): Remove unused local variable.

10 years agoAddress some "unused lexical variable" warnings
Glenn Morris [Wed, 18 Sep 2013 01:48:00 +0000 (21:48 -0400)]
Address some "unused lexical variable" warnings

* lisp/dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Declare.

* lisp/eshell/esh-io.el (x-select-enable-clipboard): Declare.

* lisp/erc/erc-button.el (erc-button-add-buttons):
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments):
* lisp/eshell/em-hist.el (eshell/history, eshell-isearch-backward):
* lisp/eshell/em-pred.el (eshell-parse-modifiers, eshell-pred-file-time):
Remove unused local variables.

10 years ago* lisp/url/url-http.el (zlib-decompress-region): Declare.
Glenn Morris [Wed, 18 Sep 2013 01:44:44 +0000 (21:44 -0400)]
* lisp/url/url-http.el (zlib-decompress-region): Declare.

10 years ago* lisp/textmodes/two-column.el: Make 2C-split work for --without-x.
Glenn Morris [Wed, 18 Sep 2013 01:42:43 +0000 (21:42 -0400)]
* lisp/textmodes/two-column.el: Make 2C-split work for --without-x.
(scroll-bar-columns): Autoload.
(top-level): Require fringe when compiling.

10 years ago* subr.el (add-hook): Robustify to handle closure as well.
Leo Liu [Wed, 18 Sep 2013 01:27:00 +0000 (09:27 +0800)]
* subr.el (add-hook): Robustify to handle closure as well.

10 years agolisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix last change
Katsumi Yamaoka [Wed, 18 Sep 2013 00:25:23 +0000 (00:25 +0000)]
lisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix last change

10 years ago[Gnus] Silence the byte compiler
Katsumi Yamaoka [Tue, 17 Sep 2013 23:49:48 +0000 (23:49 +0000)]
[Gnus] Silence the byte compiler

* gnus-icalendar.el (gnus-icalendar-event--find-attendee)
(gnus-icalendar-event-from-ical)
(gnus-icalendar-event--build-reply-event-body)
(gnus-icalendar-event-reply-from-buffer)
(gnus-icalendar-find-org-event-file)
(gnus-icalendar-event->gnus-calendar, gnus-icalendar-reply)
(gnus-icalendar-mm-inline): Use gmm-labels instead of labels or flet.

* mm-util.el (mm-special-display-p): Isolate XEmacs stuff.

10 years ago* lisp/simple.el (messages-buffer-mode-map): Unbind "g".
Glenn Morris [Tue, 17 Sep 2013 20:27:10 +0000 (16:27 -0400)]
* lisp/simple.el (messages-buffer-mode-map): Unbind "g".

10 years ago* lisp/help-mode.el (help-mode-finish): Use derived-mode-p.
Stefan Monnier [Tue, 17 Sep 2013 17:48:06 +0000 (13:48 -0400)]
* lisp/help-mode.el (help-mode-finish): Use derived-mode-p.
Remove obsolete highlighting.

10 years ago* lisp/play/life.el (life-mode): Use define-derived-mode. Derive from
Stefan Monnier [Tue, 17 Sep 2013 17:47:01 +0000 (13:47 -0400)]
* lisp/play/life.el (life-mode): Use define-derived-mode.  Derive from
special-mode.
(life): Let-bind inhibit-read-only.
(life-setup): Avoid `setq'.  Use `life-mode'.

10 years ago* lisp/gnus/gnus-agent.el (gnus-category-mode): Use define-derived-mode.
Stefan Monnier [Tue, 17 Sep 2013 17:22:32 +0000 (13:22 -0400)]
* lisp/gnus/gnus-agent.el (gnus-category-mode): Use define-derived-mode.
(gnus-agent-mode): Use derived-mode-p.
(gnus-agent-rename-group, gnus-agent-delete-group): Don't bind
gnus-command-method and *-command-method to nil, but bind
gnus-command-method to *-command-method instead!
(gnus-agent-fetch-articles): Remove unused var `id'.
(gnus-agent-fetch-headers): Remove unused arg `force'.
(gnus-agent-braid-nov): Remove unused arg `group'.  Adjust callers.
(gnus-agent-save-alist, gnus-agent-save-local): Remove unused `item'.
(gnus-agent-short-article, gnus-agent-long-article)
(gnus-agent-low-score, gnus-agent-high-score): Move declaration before
first use.
(gnus-agent-fetch-group-1): Remove unused vars `arts', `category',
`score-param'.
(gnus-tmp-name, gnus-tmp-groups): Defvar them.
(gnus-get-predicate): Push in front of the cache, rather than end.
(gnus-agent-expire-current-dirs, gnus-agent-expire-stats): Defvar them.
(gnus-agent-expire-group-1): Use push.  Don't abuse dyn-binding.
(gnus-agent-expire-unagentized-dirs): Don't rebind
gnus-agent-expire-current-dirs since the defvar silences the warning.
(gnus-agent-retrieve-headers): Remove unused var `cached-articles'.
(gnus-agent-regenerate-group): Remove unused vars `point' and `dl'.
(gnus-agent-regenerate): Simplify interactive spec and doc.

* lisp/gnus/gnus-eform.el (gnus-edit-form-mode): Use define-derived-mode.

* lisp/gnus/gnus-salt.el (gnus-tree-mode): Use define-derived-mode.
Use save-current-buffer.
(gnus-tree-mode-map): Initialize in the declaration.
(gnus-pick-mouse-pick-region): Remove unused var `fun'.
(scroll-in-place): Defvar it.
(gnus-tmp-*): Defvar them.
(gnus-get-tree-buffer): Use derived-mode-p.
(gnus--let-eval): New macro.
(gnus-tree-highlight-node): Use it to avoid dynamic binding of
non-prefixed variables.
(gnus-tree-open, gnus-tree-close): Remove unused arg `group'.

* lisp/gnus/gnus-sum.el (gnus-summary-highlight): Remove `below' from the list of
vars since it doesn't seem to be available.
(gnus-set-global-variables, gnus-summary-read-group-1)
(gnus-select-newsgroup, gnus-handle-ephemeral-exit)
(gnus-summary-display-article, gnus-summary-select-article)
(gnus-summary-next-article, gnus-offer-save-summaries)
(gnus-summary-generic-mark): Use derived-mode-p.
(gnus-summary-read-group-1, gnus-summary-exit)
(gnus-summary-exit-no-update, gnus-kill-or-deaden-summary):
Adjust calls to gnus-tree-close and gnus-tree-open.

10 years ago* w32term.c (w32_read_socket): Avoid temporary
Dmitry Antipov [Tue, 17 Sep 2013 15:57:45 +0000 (19:57 +0400)]
* w32term.c (w32_read_socket): Avoid temporary
variables in a call to x_real_positions.
* xterm.c (handle_one_xevent): Likewise.

10 years ago* lisp/emacs-lisp/package.el (package-generate-autoloads): Remove `require'
Stefan Monnier [Tue, 17 Sep 2013 15:52:31 +0000 (11:52 -0400)]
* lisp/emacs-lisp/package.el (package-generate-autoloads): Remove `require'
which should not be needed any more.
(package-menu-refresh, package-menu-describe-package): Use user-error.

10 years ago* lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode):
Stefan Monnier [Tue, 17 Sep 2013 15:50:33 +0000 (11:50 -0400)]
* lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode):
Use define-derived-mode.
(semantic-symref-produce-list-on-results): Set up the results here
instead of in semantic-symref-results-mode.  Move after
semantic-symref-current-results's defvar now that it refers to that var.
(semantic-symref-auto-expand-results)
(semantic-symref-results-summary-function)
(semantic-symref-results-mode-hook): Remove redundant :group arg.
(semantic-symref, semantic-symref-symbol, semantic-symref-regexp):
Initialize directly in the let.

10 years ago* lisp/eshell/esh-cmd.el (eshell-post-rewrite-command-function): New var.
Stefan Monnier [Tue, 17 Sep 2013 15:19:12 +0000 (11:19 -0400)]
* lisp/eshell/esh-cmd.el (eshell-post-rewrite-command-function): New var.
(eshell-post-rewrite-command-hook): Make obsolete.
(eshell-parse-command): Simplify.
(eshell-structure-basic-command): Remove unused arg `vocal-test'.
(eshell--cmd): Declare.
(eshell-parse-pipeline): Remove unused var `final-p'.
Pass a dynvar to eshell-post-rewrite-command-hook.
Implement the new eshell-post-rewrite-command-function.
(eshell-invoke-directly): Remove unused arg `input'.
* lisp/eshell/esh-io.el (eshell-io-initialize):
Use eshell-post-rewrite-command-function.
(eshell--apply-redirections): Rename from eshell-apply-redirections;
adjust to new calling convention.
(eshell-create-handles): Rename args to avoid clashing with dynvar
`standard-output'.

Fixes: debbugs:15399

10 years agognus-int.el (gnus-open-server): Silence compiler
Katsumi Yamaoka [Tue, 17 Sep 2013 14:08:24 +0000 (14:08 +0000)]
gnus-int.el (gnus-open-server): Silence compiler

10 years ago* frame.h (x_set_bitmap_icon) [!HAVE_NS]: New function.
Dmitry Antipov [Tue, 17 Sep 2013 12:59:45 +0000 (16:59 +0400)]
* frame.h (x_set_bitmap_icon) [!HAVE_NS]: New function.
(x_icon_type): Remove prototype.
(x_bitmap_icon) [!HAVE_NS]: Declare as such.
* frame.c (x_icon_type): Remove.
* w32term.c (x_make_frame_visible, x_iconify_frame):
* xterm.c (x_make_frame_visible, x_iconify_frame):
Use x_set_bitmap_icon to factor out common code.

10 years ago* dispextern.h (check_x_display_info, x_get_string_resource):
Dmitry Antipov [Tue, 17 Sep 2013 12:27:21 +0000 (16:27 +0400)]
* dispextern.h (check_x_display_info, x_get_string_resource):
Declare here just once and unify the latter.
* frame.c (check_x_display_info, x_get_string_resource):
* nsterm.h (check_x_display_info):
* xrdb.c (x_get_string_resource):
* xterm.h (check_x_display_info): Remove prototypes.
* nsfns.m (x_get_string_resource): Likewise.  Adjust definition.
* w32reg.c (x_get_string_resource): Likewise.
(w32_get_rdb_resource): Adjust user.

10 years agolisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag
Katsumi Yamaoka [Tue, 17 Sep 2013 10:21:24 +0000 (10:21 +0000)]
lisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag

10 years agoAuto-commit of generated files.
Glenn Morris [Tue, 17 Sep 2013 10:17:44 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agomessage.el (message-display-completion-list): Abolish
Katsumi Yamaoka [Tue, 17 Sep 2013 09:24:02 +0000 (09:24 +0000)]
message.el (message-display-completion-list): Abolish

10 years ago* xterm.h (struct x_display_info): New member
Dmitry Antipov [Tue, 17 Sep 2013 08:24:20 +0000 (12:24 +0400)]
* xterm.h (struct x_display_info): New member
x_pending_autoraise_frame, going to replace...
* xterm.c (pending_autoraise_frame): ...static variable.
(x_new_focus_frame, XTread_socket): Adjust users.
* w32term.h (struct w32_display_info): New member
w32_pending_autoraise_frame, going to replace...
* w32term.c (pending_autoraise_frame): ...global variable.
(x_new_focus_frame, w32_read_socket): Adjust users.

10 years agoFix ChangeLog typos
Glenn Morris [Tue, 17 Sep 2013 07:47:51 +0000 (00:47 -0700)]
Fix ChangeLog typos

10 years agoChangeLog whitespace fixes
Glenn Morris [Tue, 17 Sep 2013 07:45:18 +0000 (00:45 -0700)]
ChangeLog whitespace fixes

10 years agoCommentary update
Glenn Morris [Tue, 17 Sep 2013 07:43:14 +0000 (00:43 -0700)]
Commentary update

10 years agoAdd a major-mode for the *Messages* buffer
Glenn Morris [Tue, 17 Sep 2013 07:39:54 +0000 (00:39 -0700)]
Add a major-mode for the *Messages* buffer

Ref: http://lists.gnu.org/archive/html/emacs-devel/2010-02/msg00135.html

* lisp/simple.el (messages-buffer-mode): New major mode.
(messages-buffer): New function.

* lisp/startup.el (normal-top-level): Switch mode of *Messages* buffer.

* src/xdisp.c (message_dolog): If we create *Messages*,
switch it to messages-buffer-mode.

* lisp/emacs-lisp/ert.el (ert--force-message-log-buffer-truncation)
(ert-run-test): Use `message-buffer' function.
(ert--force-message-log-buffer-truncation): Ignore read-only.

* lisp/help.el (view-echo-area-messages): Use `message-buffer' function.

* lisp/mail/emacsbug.el (report-emacs-bug): Use `message-buffer' function.

* lisp/gnus/gnus-util.el (gnus-message-with-timestamp-1):
Use `message-buffer' function if available.  Ignore read-only.

* etc/NEWS: Mention this.

10 years ago* xterm.c (toplevel) [USE_MOTIF]: Include xlwmenu.h to pacify GCC.
Dmitry Antipov [Tue, 17 Sep 2013 07:36:35 +0000 (11:36 +0400)]
* xterm.c (toplevel) [USE_MOTIF]: Include xlwmenu.h to pacify GCC.

10 years agoChangeLog whitespace fixes
Glenn Morris [Tue, 17 Sep 2013 07:31:09 +0000 (00:31 -0700)]
ChangeLog whitespace fixes

10 years agoMerge from emacs-24; up to 2013-01-03T02:31:36Z!rgm@gnu.org
Glenn Morris [Tue, 17 Sep 2013 07:26:07 +0000 (00:26 -0700)]
Merge from emacs-24; up to 2013-01-03T02:31:36Z!rgm@gnu.org

10 years agoDon't overuse 'const' in types of locals.
Paul Eggert [Tue, 17 Sep 2013 07:06:42 +0000 (00:06 -0700)]
Don't overuse 'const' in types of locals.

* bidi.c (bidi_count_bytes):
* gtkutil.c, gtkutil.h (xg_event_is_for_menubar)
(xg_event_is_for_scrollbar):
* xselect.c (x_handle_property_notify)
(x_handle_selection_notify, x_handle_dnd_message):
* xsettings.c, xsettings.h (xft_settings_event):
* xterm.c (x_handle_net_wm_state, handle_one_event)
(x_menubar_window_to_frame, x_detect_focus_change)
(construct_mouse_click, note_mouse_movement)
(x_scroll_bar_to_input_event, x_scroll_bar_expose)
(x_scroll_bar_handle_click, x_scroll_bar_note_movement)
(handle_one_xevent, x_handle_net_wm_state):
* xterm.h (x_handle_property_notify, x_handle_selection_notify)
(x_handle_dnd_message):
Avoid unnecessary 'const', typically the second 'const' in
'const foo * const arg', a 'const' that does not affect the API
and doesn't significantly help the human reader.

10 years ago* xterm.c (handle_one_xevent): Do not call to x_clear_area
Dmitry Antipov [Tue, 17 Sep 2013 06:57:30 +0000 (10:57 +0400)]
* xterm.c (handle_one_xevent): Do not call to x_clear_area
if GTK >= 2.7.0.

10 years ago* configure.ac: Do not check for g_type_init because we
Dmitry Antipov [Tue, 17 Sep 2013 06:33:24 +0000 (10:33 +0400)]
* configure.ac: Do not check for g_type_init because we
require glib >= 2.28 for GTK3, glib >= 2.10 for GTK2,
glib >= 2.26 for GSettings and glib >= 2.7.0 for GConf, so
suitable glib should provide g_type_init unconditionally.
* src/image.c (fn_g_type_init) [WINDOWSNT]: Define and load
only if Glib < 2.36.0.
(fn_g_type_init) [!WINDOWSNT]: Define only if Glib < 2.36.0.
* src/xsettings.c (init_gconf, init_gsettings): Do not check
for g_type_init.

10 years agomessage.el (message-expand-group, message-completion-in-region): Correct the order...
Katsumi Yamaoka [Mon, 16 Sep 2013 23:22:02 +0000 (23:22 +0000)]
message.el (message-expand-group, message-completion-in-region): Correct the order of start and end of a region

10 years ago* lisp/url/url-misc.el (url-data): Avoid match-data mix-up with base64 case.
Glenn Morris [Mon, 16 Sep 2013 21:28:11 +0000 (17:28 -0400)]
* lisp/url/url-misc.el (url-data): Avoid match-data mix-up with base64 case.
Use Content-Transfer-Encoding rather than Content-Encoding.

Fixes: debbugs:15285

10 years ago* test/automated/eshell.el (eshell-match-result):
Glenn Morris [Mon, 16 Sep 2013 20:58:28 +0000 (16:58 -0400)]
* test/automated/eshell.el (eshell-match-result):
Return a more informative failure than simply "false".  Update callers.

10 years agoFix comment typo
Glenn Morris [Mon, 16 Sep 2013 19:21:45 +0000 (15:21 -0400)]
Fix comment typo

10 years ago* test/automated/eshell (eshell-test/for-name-shadow-loop): Tweak previous
Glenn Morris [Mon, 16 Sep 2013 19:20:44 +0000 (15:20 -0400)]
* test/automated/eshell (eshell-test/for-name-shadow-loop): Tweak previous

10 years ago* lisp/icomplete.el (icomplete-in-buffer): New var.
Stefan Monnier [Mon, 16 Sep 2013 19:09:24 +0000 (15:09 -0400)]
* lisp/icomplete.el (icomplete-in-buffer): New var.
(icomplete-pre-command-hook, icomplete-post-command-hook): Remove those
vars and replace them with functions.
(icomplete-minibuffer-setup): Adjust accordingly.
(icomplete--completion-table, icomplete--completion-predicate)
(icomplete--field-string, icomplete--field-beg, icomplete--field-end):
New functions.
(icomplete-forward-completions, icomplete-backward-completions)
(icomplete-simple-completing-p, icomplete-exhibit)
(icomplete-completions): Use them.
(icomplete--in-region-buffer): New var.
(icomplete--in-region-setup): New function.
(icomplete-mode): Use it.

10 years ago* test/automated/eshell.el (eshell-test/for-name-shadow-loop):
Glenn Morris [Mon, 16 Sep 2013 18:42:41 +0000 (14:42 -0400)]
* test/automated/eshell.el (eshell-test/for-name-shadow-loop):
Test value before and after loop as well as during.

10 years ago* etc/CONTRIBUTE: Copyedits.
Glenn Morris [Mon, 16 Sep 2013 18:37:18 +0000 (14:37 -0400)]
* etc/CONTRIBUTE: Copyedits.

10 years ago* lisp/eshell/esh-opt.el: Fix last change to set lexical-vars properly.
Stefan Monnier [Mon, 16 Sep 2013 18:23:30 +0000 (14:23 -0400)]
* lisp/eshell/esh-opt.el: Fix last change to set lexical-vars properly.
(eshell--do-opts): Rename from eshell-do-opt, remove arg `body-fun',
return args and options.
(eshell-eval-using-options): Use the new return value of
eshell--do-opts to set the options's vars in their scope.
(eshell--set-option): Rename from eshell-set-option.
Add arg `opt-vals'.
(eshell--process-option): Rename from eshell-process-option.
Add arg `opt-vals'.
(eshell--process-args): Use an `opt-vals' alist to store the options's
values during their processing and return them additionally to the
remaining args.

Fixes: debbugs:15379

10 years ago* xsettings.c (init_gconf, init_gsettings): Check for Glib 2.36.0
Jan Djärv [Mon, 16 Sep 2013 18:17:35 +0000 (20:17 +0200)]
* xsettings.c (init_gconf, init_gsettings): Check for Glib 2.36.0
before calling g_type_init.

10 years ago* etc/CONTRIBUTE: Clarify disclaimer a bit.
Glenn Morris [Mon, 16 Sep 2013 17:54:15 +0000 (13:54 -0400)]
* etc/CONTRIBUTE: Clarify disclaimer a bit.

10 years ago* lisp/subr.el (eval-after-load): Preserve evaluation order.
Stefan Monnier [Mon, 16 Sep 2013 16:29:46 +0000 (12:29 -0400)]
* lisp/subr.el (eval-after-load): Preserve evaluation order.

Fixes: debbugs:15389

10 years agoFix syms_of_(mac|ms)font calls.
Jan Djärv [Mon, 16 Sep 2013 15:55:02 +0000 (17:55 +0200)]
Fix syms_of_(mac|ms)font calls.

* font.c (syms_of_font): Move call to syms_of_(ns|mac)font ...

* nsterm.m (syms_of_nsterm): ... to here.

10 years ago* xterm.c (toolkit_scroll_bar_interaction): Use bool for boolean.
Dmitry Antipov [Mon, 16 Sep 2013 11:23:03 +0000 (15:23 +0400)]
* xterm.c (toolkit_scroll_bar_interaction): Use bool for boolean.
(ignore_next_mouse_click_timeout): Use Time as X does.
(handle_one_xevent): Avoid cast and use unsigned comparison.

10 years agoDo not copy X event in handle_one_xevent except KeyPress case.
Dmitry Antipov [Mon, 16 Sep 2013 10:41:41 +0000 (14:41 +0400)]
Do not copy X event in handle_one_xevent except KeyPress case.
Wnen XEvent is processed, it is unlikely to be changed except
KeyPress case, so we can avoid copying and use const pointer to
const data to make sure that an event is not changed elsewhere.
* xterm.c (handle_one_xevent): Change 2nd arg to 'const XEvent *
const' and do not create local copy except for the KeyPress event.
Use casts to avoid a few glitches.  Adjust formatting.  Add comments.
(SET_SAVED_BUTTON_EVENT): Remove and move the code to the only user.
(x_handle_net_wm_state, x_menubar_window_to_frame)
(x_detect_focus_change, construct_mouse_click, note_mouse_movement)
(x_scroll_bar_to_input_event, x_scroll_bar_expose)
(x_scroll_bar_handle_click, x_scroll_bar_note_movement):
* gtkutil.c (xg_event_is_for_menubar, xg_event_is_for_scrollbar):
* xselect.c (x_handle_property_notify, x_handle_selection_notify)
(x_handle_dnd_message):
* xsettings.c (xft_settings_event):
Use 'const XEvent * const' where appropriate.
* xterm.h, gtkutil.h, xsettngs.h: Adjust related prototypes.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 16 Sep 2013 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoFix X event waiting to handle multiple frames.
Dmitry Antipov [Mon, 16 Sep 2013 07:27:51 +0000 (11:27 +0400)]
Fix X event waiting to handle multiple frames.
* frame.h (struct frame) [HAVE_X_WINDOWS]: New member wait_event_type.
* xterm.c (pending_event_wait): Remove.  Adjust users.
(x_detect_focus_change): Pass frame arg.
(handle_one_xevent): Find related frame early and clear per-frame
wait_event_type only if this is an event for the relevant frame.
(x_wait_for_event): Use per-frame wait_event_type.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line
Dmitry Gutov [Sun, 15 Sep 2013 23:42:26 +0000 (02:42 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-operator-re): Consider line
continuation character an operator, as far as indentation is
concerned.

Fixes: debbugs:15369

10 years agoFix compilation for GNUStep due to font changes.
Jan Djärv [Sun, 15 Sep 2013 19:43:32 +0000 (21:43 +0200)]
Fix compilation for GNUStep due to font changes.

* font.c (syms_of_font): Check MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
for syms_of_macfont.

* nsfns.m (Fx_create_frame): Fix font driver registration for
GNUStep.

10 years agoForgot to add files.
Jan Djärv [Sun, 15 Sep 2013 19:36:20 +0000 (21:36 +0200)]
Forgot to add files.

10 years agoPort the font backend from the Mac port.
Jan Djärv [Sun, 15 Sep 2013 17:58:46 +0000 (19:58 +0200)]
Port the font backend from the Mac port.

* configure.ac: Add check for OSX 10.5, required for macfont.o.

* etc/NEWS: Mention the macfont backend.

* src/Makefile.in (NS_OBJ, SOME_MACHINE_OBJECTS): Add macfont.o.

* src/font.c (syms_of_font): Call syms_of_macfont.

* src/font.h: Declare syms_of_macfont.

* src/nsfns.m: Include macfont.h.
(Fx_create_frame): Register macfont driver, make a better default font.
(Fns_popup_font_panel): Get font from macfont driver, if used.

* src/nsfont.m (ns_tmp_flags, ns_tmp_font): Remove.
(nsfont_open): Set font driver type.
Set font->ascent and font->descent.  Figure out font instead of
ns_tmp_font, and flags instead of ns_tmp_flags.
Fix indentation. Remove call to ns_draw_text_decoration,
moved to nsterm.

* src/nsterm.m: Include macfont.h.
(ns_tmp_flags, ns_tmp_font): Remove.
(ns_compute_glyph_string_overhangs): Check for driver Qns.
(ns_draw_glyph_string): Use local variables instead of ns_tmp_flags,
ns_tmp_font.  Call ns_draw_text_decoration here instead of nsfont.m.
(changeFont:): Fix code style.  Check for font driver type when
getiing font.

* src/nsterm.h (FONT_DESCENT, FONT_ASCENT): Define to (f)->ascent and
(f)->descent.

10 years agoIn window--state-put-2 don't process buffer state when buffer doesn't exist (Bug...
Martin Rudalics [Sun, 15 Sep 2013 16:08:04 +0000 (18:08 +0200)]
In window--state-put-2 don't process buffer state when buffer doesn't exist (Bug#15382).

* window.el (window--state-put-2): Don't process buffer state
when buffer doesn't exist any more (Bug#15382).

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 15 Sep 2013 10:22:42 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

10 years agoDrop VERTICAL_SCROLL_BAR_WIDTH_TRIM. For X, it is zero since 1999,
Dmitry Antipov [Sun, 15 Sep 2013 08:28:30 +0000 (12:28 +0400)]
Drop VERTICAL_SCROLL_BAR_WIDTH_TRIM.  For X, it is zero since 1999,
and it is always zero for others, so I assume that this is an ancient
leftover which nobody will want to change any more.
* xterm.h, w32term.h, nsterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Remove.
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH):
* frame.c (x_set_scroll_bar_width):
* w32fns.c (w32_createscrollbar):
* w32term.c (w32_set_vertical_scroll_bar):
* xfns.c (x_set_scroll_bar_default_width):
* xterm.c (XTflash, x_scroll_bar_create, XTset_vertical_scroll_bar)
(x_scroll_bar_expose): Related users changed.

10 years ago* xterm.c, xfns.c (toplevel): Remove #ifdef HAVE_X_WINDOWS because
Dmitry Antipov [Sun, 15 Sep 2013 07:48:25 +0000 (11:48 +0400)]
* xterm.c, xfns.c (toplevel): Remove #ifdef HAVE_X_WINDOWS because
these modules are never compiled otherwise.

10 years ago* xterm.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
Dmitry Antipov [Sun, 15 Sep 2013 07:28:38 +0000 (11:28 +0400)]
* xterm.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
Define as such.
* w32term.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
Remove unused Xisms.

10 years ago* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
Dmitry Antipov [Sun, 15 Sep 2013 07:06:05 +0000 (11:06 +0400)]
* frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
Define once here...
* nsterm.h, w32term.h, xterm.h: ...and not here.

10 years ago* xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
Dmitry Antipov [Sun, 15 Sep 2013 06:50:41 +0000 (10:50 +0400)]
* xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
(BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER.

10 years ago* eshell/em-unix.el (eshell/rm): Make -f ignore missing files.
Glenn Morris [Sun, 15 Sep 2013 00:35:54 +0000 (17:35 -0700)]
* eshell/em-unix.el (eshell/rm): Make -f ignore missing files.
Does not work until bug=15379 gets fixed.

Fixes: debbugs:15373

10 years ago* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
Glenn Morris [Sun, 15 Sep 2013 00:10:45 +0000 (17:10 -0700)]
* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
(eshell-rewrite-for-command): Add for loop vars to eshell--local-vars.

* lisp/eshell/esh-var.el (eshell-get-variable): Respect eshell--local-vars.

* test/automated/eshell.el (eshell-test/for-name-shadow-loop):
New test.
(eshell-test/for-loop, eshell-test/for-name-loop): Doc fix.

Fixes: debbugs:15372

10 years ago* eshell/esh-var.el (eshell-variable-aliases-list): Fix doc typo.
Glenn Morris [Sat, 14 Sep 2013 23:55:15 +0000 (16:55 -0700)]
* eshell/esh-var.el (eshell-variable-aliases-list): Fix doc typo.

10 years ago* doc/misc/eshell.texi: Markup fixes.
Glenn Morris [Sat, 14 Sep 2013 23:47:54 +0000 (16:47 -0700)]
* doc/misc/eshell.texi: Markup fixes.

10 years ago* erc.el (erc-update-mode-line-buffer): Handle absent topic.
Vivek Dasmohapatra [Sat, 14 Sep 2013 23:33:19 +0000 (16:33 -0700)]
* erc.el (erc-update-mode-line-buffer): Handle absent topic.

Fixes: debbugs:15377

10 years agoMinor fixes for last change in lispref/display.texi.
Eli Zaretskii [Sat, 14 Sep 2013 16:33:12 +0000 (19:33 +0300)]
Minor fixes for last change in lispref/display.texi.

Fixes: debbugs:15375