Glenn Morris
ce5033129f
Address some "unused lexical argument" warnings in eshell
...
* eshell/em-ls.el (eshell-ls-use-in-dired): Use `symbol' arg.
Fix (f)boundp mix-up.
* eshell/em-smart.el (eshell-smart-scroll-window)
(eshell-disable-after-change):
* eshell/em-term.el (eshell-term-sentinel): Mark unused arg.
2013-09-18 19:28:20 -07:00
Glenn Morris
a022856b0f
Address some "unused lexical argument" warnings in erc
...
* erc/erc.el (erc-open-server-buffer-p): Actually use the `buffer' arg.
* erc/erc-backend.el (erc-server-process-alive): Take optional `buffer' arg.
* erc/erc-button.el (erc-button-click-button, erc-button-press-button):
Mark unused arguments.
2013-09-18 19:21:31 -07:00
Alan Mackenzie
ee3ce8a7bb
Fix fontification of type when followed by "const".
...
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
"known" types from fontification.
2013-09-18 20:47:37 +00:00
Dmitry Antipov
abd49271db
* w32term.c (note_mouse_movement): Fix last change.
2013-09-18 17:18:39 +04:00
Glenn Morris
2fd6bdbecb
Auto-commit of loaddefs files.
2013-09-18 06:19:31 -04:00
Dmitry Antipov
582ed56ca8
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.
2013-09-18 13:33:36 +04:00
Dmitry Antipov
18da0d8ad4
* 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.
2013-09-18 13:23:10 +04:00
Dmitry Antipov
7a0c745ad1
* 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.
2013-09-18 10:48:11 +04:00
Glenn Morris
12679bfd15
* progmodes/gud.el (gud-mode): Silence --without-x compilation.
...
(tooltip-mode): Declare.
2013-09-17 22:19:28 -07:00
Glenn Morris
30810a057c
* progmodes/gud.el (gud-find-file): Silence --without-x compilation.
2013-09-17 22:16:36 -07:00
Glenn Morris
92d77c897b
* eshell/em-glob.el (ange-cache):
...
* eshell/em-unix.el (ange-cache): Declare.
2013-09-17 22:11:38 -07:00
Glenn Morris
ee8b701cae
Fix typo in declaration
2013-09-17 22:10:21 -07:00
Glenn Morris
7bb3e76899
* emacs-lisp/chart.el (x-display-color-cells): Declare.
...
(chart-face-list): Drop Emacsen without display-color-p.
2013-09-17 22:04:41 -07:00
Glenn Morris
74be3de16c
* semantic/find.el (semantic-brute-find-first-tag-by-name):
...
Replace obsolete function assoc-ignore-case with assoc-string.
2013-09-17 22:00:26 -07:00
Glenn Morris
0a9600e028
* semantic/complete.el (tooltip-mode, tooltip-frame-parameters, tooltip-show):
...
Declare.
2013-09-17 21:57:25 -07:00
Glenn Morris
3a5fdd45c4
* gnus-util.el (image-size): Declare.
2013-09-17 21:54:21 -07:00
Glenn Morris
986ed13557
* net/shr.el (image-size, image-animate): Declare.
2013-09-17 21:53:05 -07:00
Glenn Morris
ffb82dbda3
* net/gnutls.el (gnutls-log-level): Declare.
2013-09-17 21:50:54 -07:00
Glenn Morris
5148da153e
* net/eww.el (libxml-parse-html-region): Declare.
...
(eww-display-html): Explicit error if no libxml2 support.
2013-09-17 21:48:55 -07:00
Glenn Morris
45069b2e00
* term.el (term-mouse-paste): Reorder to silence --without-x compilation.
2013-09-17 21:46:44 -07:00
Glenn Morris
cd8edbbe67
* mpc.el (doc-view-mode): Silence --without-x compilation.
2013-09-17 21:44:20 -07:00
Glenn Morris
7e58af4b13
* follow.el (scroll-bar-toolkit-scroll, scroll-bar-drag)
...
(scroll-bar-scroll-up, scroll-bar-scroll-down, mwheel-scroll): Declare.
2013-09-17 21:42:30 -07:00
Glenn Morris
2f68e15795
* doc-view.el (doc-view-mode): Silence --without-x compilation.
2013-09-17 21:38:49 -07:00
Glenn Morris
f4a1d572bc
* term/ns-win.el (x-handle-args): Declare.
2013-09-17 21:36:34 -07:00
Glenn Morris
38702b5be4
* w32-common-fns.el (x-server-version, x-select-enable-clipboard): Declare.
2013-09-17 21:34:56 -07:00
Glenn Morris
5fa89513d5
* term/w32-win.el (create-default-fontset): Declare.
2013-09-17 21:32:01 -07:00
Glenn Morris
e843de7767
* term/x-win.el (x-select-enable-clipboard): Declare.
2013-09-17 21:30:33 -07:00
Glenn Morris
047a1a4c20
* term/common-win.el (x-select-enable-primary, x-last-selected-text-primary)
...
(x-last-selected-text-clipboard): Declare.
2013-09-17 21:28:57 -07:00
Glenn Morris
9019d095df
* image.el (image-multi-frame-p): Remove --without-x warning/error.
2013-09-17 21:26:19 -07:00
Glenn Morris
67645389fc
* image.el (image-type-from-buffer): Remove --without-x warning/error.
2013-09-17 21:24:14 -07:00
Glenn Morris
5f30349b1e
* mouse.el (mouse-yank-primary): Reorder to silence --without-x compilation.
2013-09-17 21:21:29 -07:00
Glenn Morris
4bd4c0afe0
* frame.el (x-display-name): Declare.
2013-09-17 20:58:26 -07:00
Glenn Morris
76e6957735
* faces.el (x-display-list, x-open-connection, x-get-resource): Declare.
2013-09-17 20:53:10 -07:00
Glenn Morris
d2f3e9f85b
* lisp/subr.el (x-popup-dialog): Declare.
2013-09-17 20:50:18 -07:00
Glenn Morris
8a78544ece
* mail/rmailmm.el (rmail-mime-set-bulk-data): Silence --without-x compilation.
2013-09-17 20:47:11 -07:00
Glenn Morris
f0047cb9a5
wdired.el trivia
...
* lisp/wdired.el (dired-backup-overwrite): Remove declaration.
(wdired-mode-map): Add doc string.
2013-09-17 20:45:54 -07:00
Glenn Morris
e740f9d245
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.
2013-09-17 19:50:04 -07:00
Glenn Morris
91c837fe72
* eshell/esh-util.el (eshell-sublist): Remove unused local variable.
2013-09-17 19:45:31 -07:00
Glenn Morris
49a053fc5b
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.
2013-09-17 21:48:00 -04:00
Glenn Morris
35cc47373e
* lisp/url/url-http.el (zlib-decompress-region): Declare.
2013-09-17 21:44:44 -04:00
Glenn Morris
ec9177ba76
* lisp/textmodes/two-column.el: Make 2C-split work for --without-x.
...
(scroll-bar-columns): Autoload.
(top-level): Require fringe when compiling.
2013-09-17 21:42:43 -04:00
Leo Liu
9f25cb7749
* subr.el (add-hook): Robustify to handle closure as well.
2013-09-18 09:27:00 +08:00
Katsumi Yamaoka
711668ac2d
lisp/gnus/mm-decode.el (mm-add-meta-html-tag): Fix last change
2013-09-18 00:25:23 +00:00
Katsumi Yamaoka
9ab16aab6a
[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.
2013-09-17 23:49:48 +00:00
Glenn Morris
2b42da9837
* lisp/simple.el (messages-buffer-mode-map): Unbind "g".
2013-09-17 16:27:10 -04:00
Stefan Monnier
9c0ad4f7bd
* lisp/help-mode.el (help-mode-finish): Use derived-mode-p.
...
Remove obsolete highlighting.
2013-09-17 13:48:06 -04:00
Stefan Monnier
7a806dfb9e
* 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'.
2013-09-17 13:47:01 -04:00
Stefan Monnier
c2e9e9ef6f
* 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.
2013-09-17 13:22:32 -04:00
Dmitry Antipov
0791d107ed
* w32term.c (w32_read_socket): Avoid temporary
...
variables in a call to x_real_positions.
* xterm.c (handle_one_xevent): Likewise.
2013-09-17 19:57:45 +04:00
Stefan Monnier
96dbf5a8ae
* 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.
2013-09-17 11:52:31 -04:00