]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years agoMerge remote-tracking branch 'origin/trunk' into xwidget
Joakim Verona [Mon, 27 May 2013 21:14:19 +0000 (23:14 +0200)]
Merge remote-tracking branch 'origin/trunk' into xwidget

Conflicts:
ChangeLog
lisp/ChangeLog
lisp/progmodes/octave.el
src/Makefile.in

11 years agoFix bug #14476 with posn-at-point and glyphs from display vector.
Eli Zaretskii [Mon, 27 May 2013 16:54:33 +0000 (19:54 +0300)]
Fix bug #14476 with posn-at-point and glyphs from display vector.

 src/xdisp.c (pos_visible_p): When CHARPOS is displayed frrom a
 display vector, and we backtrack, handle the case that the
 previous character position is also displayed from a display
 vector or covered by a display string or image.

11 years agoRestore an omitted bug reference.
Eli Zaretskii [Mon, 27 May 2013 16:41:32 +0000 (19:41 +0300)]
Restore an omitted bug reference.

11 years agoAlways defvar a mode's hook and provide a docstring.
Stefan Monnier [Mon, 27 May 2013 16:12:52 +0000 (12:12 -0400)]
Always defvar a mode's hook and provide a docstring.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode): Always defvar the
mode hook and provide a docstring.

11 years agoRemove spurious syntax-table text properties inserted by C-y.
Alan Mackenzie [Mon, 27 May 2013 13:30:21 +0000 (13:30 +0000)]
Remove spurious syntax-table text properties inserted by C-y.
        * progmodes/cc-mode.el (c-after-change): Also clear hard
        syntax-table property with value nil.

11 years ago* net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay'
Michael Albinus [Mon, 27 May 2013 12:41:17 +0000 (14:41 +0200)]
* net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay'
when reading the events; the buffer layout shall not be changed.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 27 May 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* progmodes/octave.el (inferior-octave-directory-tracker-resync):
Leo Liu [Mon, 27 May 2013 05:08:04 +0000 (13:08 +0800)]
* progmodes/octave.el (inferior-octave-directory-tracker-resync):
New variable.
(inferior-octave-directory-tracker): Automatically re-sync
default-directory.
(octave-help): Improve handling of 'See also'.

11 years ago* configure.ac (HAVE_XRANDR): Check availability of XRRGetScreenResources rather...
YAMAMOTO Mitsuharu [Mon, 27 May 2013 02:03:18 +0000 (11:03 +0900)]
* configure.ac (HAVE_XRANDR): Check availability of XRRGetScreenResources rather than that of XRRQueryExtension.

11 years ago* lisp/doc-view.el: Minor naming convention tweaks.
Stefan Monnier [Mon, 27 May 2013 01:08:43 +0000 (21:08 -0400)]
* lisp/doc-view.el: Minor naming convention tweaks.
(desktop-buffer-mode-handlers): Don't add to it repeatedly.

11 years ago* lisp/image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops
Stefan Monnier [Mon, 27 May 2013 00:59:33 +0000 (20:59 -0400)]
* lisp/image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops
even if there's no `display' property yet.

Fixes: debbugs:14435
11 years agoRewrite Eshell tests using ERT
Aidan Gauland [Sun, 26 May 2013 07:54:01 +0000 (19:54 +1200)]
Rewrite Eshell tests using ERT

11 years agoRename unmsys--filename to unmsys--file-name.
Eli Zaretskii [Sat, 25 May 2013 16:05:19 +0000 (19:05 +0300)]
Rename unmsys--filename to unmsys--file-name.

11 years agoFactor out common code for multimonitors, for Gtk+, non-Gtk+ X11 and NS.
Jan Djärv [Sat, 25 May 2013 11:14:38 +0000 (13:14 +0200)]
Factor out common code for multimonitors, for Gtk+, non-Gtk+ X11 and NS.

* frame.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): New
Lisp_Object:s.
(free_monitors, make_monitor_attribute_list): New functions.
(syms_of_frame): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes,
Qsource.

* frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
(struct MonitorInfo): New struct.
(free_monitors, make_monitor_attribute_list): Declare.

* nsfns.m (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
(struct MonitorInfo, free_monitors): Remove.
(ns_screen_name): Make static.
(ns_make_monitor_attribute_list): Call make_monitor_attribute_list.
(syms_of_nsfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
Qframes, Qsource.

* xfns.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
(struct MonitorInfo, free_monitors): Remove.
(x_make_monitor_attribute_list): Call make_monitor_attribute_list.
(Fx_display_monitor_attributes_list): Call make_monitor_attribute_list.
(syms_of_xfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
Qframes, Qsource.

11 years agoFix a typo in the last commit.
Eli Zaretskii [Sat, 25 May 2013 09:26:53 +0000 (12:26 +0300)]
Fix a typo in the last commit.

11 years agoExplain in nt/INSTALL.MSYS why --prefix should be used with Windows builds.
Eli Zaretskii [Sat, 25 May 2013 07:34:34 +0000 (10:34 +0300)]
Explain in nt/INSTALL.MSYS why --prefix should be used with Windows builds.

11 years agoRename reveal-filename into unmsys--filename.
Eli Zaretskii [Sat, 25 May 2013 07:19:50 +0000 (10:19 +0300)]
Rename reveal-filename into unmsys--filename.

 lisp/subr.el (unmsys--filename): Renamed from reveal-filename.
 lisp/Makefile.in (custom-deps, finder-data, autoloads)
 ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el)
 ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el)
 ($(CAL_DIR)/hol-loaddefs.el): All users changed.

 leim/Makefile.in (leim-list.el, check-declare): Replace
 reveal-filename with unmsys--filename.

11 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't burp at EOB.
Stefan Monnier [Sat, 25 May 2013 03:08:04 +0000 (23:08 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't burp at EOB.

Fixes: debbugs:14446
11 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't use
Stefan Monnier [Sat, 25 May 2013 03:00:13 +0000 (23:00 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't use
error-completion on the first 2 args of condition-case.

Fixes: debbugs:14446
11 years ago* comint.el (comint-previous-matching-input): Do not flood the
Leo Liu [Sat, 25 May 2013 02:40:33 +0000 (10:40 +0800)]
* comint.el (comint-previous-matching-input): Do not flood the
*Messages* buffer with trivial messages.

11 years ago* lisp/simple.el (read--expression): New function, extracted from
Stefan Monnier [Sat, 25 May 2013 02:21:49 +0000 (22:21 -0400)]
* lisp/simple.el (read--expression): New function, extracted from
eval-expression.  Set completion-at-point-functions.
(eval-expression, eval-minibuffer): Use it.

* lisp/progmodes/flymake.el (flymake-nop): Don't return a string.
(flymake-set-at): Fix typo.

Fixes: debbugs:14465
11 years ago* refcards/refcard.tex: Refine some entries. (Bug#14087)
Xue Fuqiao [Sat, 25 May 2013 02:17:54 +0000 (10:17 +0800)]
* refcards/refcard.tex: Refine some entries.  (Bug#14087)

11 years ago* indent/octave.m: Add tests for %!, # and ### comments
Leo Liu [Sat, 25 May 2013 02:03:03 +0000 (10:03 +0800)]
* indent/octave.m: Add tests for %!, # and ### comments

11 years ago* callproc.c (call_process): Refine the doc string. (Bug#14045)
Xue Fuqiao [Sat, 25 May 2013 01:55:00 +0000 (09:55 +0800)]
* callproc.c (call_process): Refine the doc string.  (Bug#14045)

11 years agoChangeLog fix
Xue Fuqiao [Sat, 25 May 2013 01:43:02 +0000 (09:43 +0800)]
ChangeLog fix

11 years ago* refcards/dired-ref.tex: Refine some entries.
Xue Fuqiao [Sat, 25 May 2013 01:39:03 +0000 (09:39 +0800)]
* refcards/dired-ref.tex: Refine some entries.

11 years agoRefine the documentation of Flymake
Xue Fuqiao [Sat, 25 May 2013 01:26:12 +0000 (09:26 +0800)]
Refine the documentation of Flymake

* progmodes/flymake.el (flymake-save-buffer-in-file)
(flymake-makehash, flymake-posn-at-point-as-event, flymake-nop)
(flymake-selected-frame, flymake-log, flymake-ins-after)
(flymake-set-at, flymake-get-buildfile-from-cache)
(flymake-add-buildfile-to-cache, flymake-clear-buildfile-cache)
(flymake-find-possible-master-files, flymake-save-buffer-in-file):
Refine the doc string.
(flymake-get-file-name-mode-and-masks): Reformat.
(flymake-get-real-file-name-function): Fix a minor bug.

* flymake.texi: Changing from one space between sentences to two.

11 years ago* lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber=
Juri Linkov [Fri, 24 May 2013 20:54:38 +0000 (23:54 +0300)]
* lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber=
format used by git-grep for lines with function names.

Fixes: debbugs:13549
11 years ago* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
Stefan Monnier [Fri, 24 May 2013 19:37:55 +0000 (15:37 -0400)]
* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
(smie-setup): Use add-function to set it.

* lisp/progmodes/octave.el (octave-smie-rules): Return nil rather than
0 after a semi-colon; it works better for smie-auto-fill.
(octave--indent-new-comment-line): New function.
(octave-indent-new-comment-line): Use it (indirectly).
(octave-mode): Don't disable smie-auto-fill.  Use add-function to
modify comment-line-break-function.

11 years ago* lisp/sort.el (delete-duplicate-lines): Accept an optional `keep-blanks'
Sam Steingold [Fri, 24 May 2013 18:39:21 +0000 (14:39 -0400)]
* lisp/sort.el (delete-duplicate-lines): Accept an optional `keep-blanks'
argument (before the `interactive' argument).

11 years ago* lisp/image-mode.el (image-mode-winprops): Add winprops to
Stefan Monnier [Fri, 24 May 2013 17:42:23 +0000 (13:42 -0400)]
* lisp/image-mode.el (image-mode-winprops): Add winprops to
image-mode-winprops-alist before running image-mode-new-window-functions.
* lisp/doc-view.el (doc-view-new-window-function): Don't delay
doc-view-goto-page via timers.

Fixes: debbugs:14435
11 years agolisp/gnus/sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer setup
Julien Danjou [Fri, 24 May 2013 14:36:12 +0000 (14:36 +0000)]
lisp/gnus/sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer setup

11 years agoChangeLog for the previous commit
Dmitry Gutov [Fri, 24 May 2013 13:39:53 +0000 (17:39 +0400)]
ChangeLog for the previous commit

11 years ago* themes/leuven-theme.el: Update theme.
Fabrice Niessen [Fri, 24 May 2013 13:37:15 +0000 (17:37 +0400)]
* themes/leuven-theme.el: Update theme.

11 years ago* doc-view.el: Integrate with desktop.el. (Bug#14435)
Tassilo Horn [Fri, 24 May 2013 10:54:20 +0000 (12:54 +0200)]
* doc-view.el: Integrate with desktop.el.  (Bug#14435)
(doc-view-desktop-save-buffer): New function.
(doc-view-restore-desktop-buffer): New function.
(desktop-buffer-mode-handlers): Add
`doc-view-restore-desktop-buffer' as desktop.el buffer mode
handler.
(doc-view-mode): Set `doc-view-desktop-save-buffer' as custom
`desktop-save-buffer' function.

11 years agoxesam.el is obsolete.
Michael Albinus [Fri, 24 May 2013 10:43:31 +0000 (12:43 +0200)]
xesam.el is obsolete.

11 years ago* net/xesam.el: Move to obsolete/.
Michael Albinus [Fri, 24 May 2013 10:35:56 +0000 (12:35 +0200)]
* net/xesam.el: Move to obsolete/.

11 years ago* net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
Michael Albinus [Fri, 24 May 2013 10:03:45 +0000 (12:03 +0200)]
* net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
(tramp-gvfs-file-name-handler): Raise a user error when
`tramp-gvfs-enabled' is nil.
(top): Register signals only when `tramp-gvfs-enabled' is non-nil.
Do not raise a user error when loading package.  (Bug#14447)

11 years agoSilence some cedet compilation warnings
Glenn Morris [Fri, 24 May 2013 07:01:49 +0000 (00:01 -0700)]
Silence some cedet compilation warnings

* cedet/semantic/bovine/c-by.el (semantic-parse-region):
* cedet/semantic/wisent/javat-wy.el (semantic-parse-region):
* cedet/semantic/wisent/js-wy.el (semantic-parse-region):
* cedet/semantic/wisent/python-wy.el (semantic-parse-region): Declare.

* cedet/semantic/bovine/grammar.el (bovine-make-parsers):
Avoid free variable `copyright-end'.

11 years ago* font-lock.el (lisp-font-lock-keywords-2): Add with-coding-priority.
Glenn Morris [Fri, 24 May 2013 06:59:55 +0000 (23:59 -0700)]
* font-lock.el (lisp-font-lock-keywords-2): Add with-coding-priority.

11 years ago* emacs-lisp/chart.el (chart-sort): Replace obsolete `object-name'.
Glenn Morris [Fri, 24 May 2013 06:59:13 +0000 (23:59 -0700)]
* emacs-lisp/chart.el (chart-sort): Replace obsolete `object-name'.

11 years agoSilence some cperl-mode compiler warnings
Glenn Morris [Fri, 24 May 2013 06:57:39 +0000 (23:57 -0700)]
Silence some cperl-mode compiler warnings

* progmodes/cperl-mode.el (cperl-mode): Use fboundp.
(Info-find-node, Man-getpage-in-background): Declare.

11 years ago* mail/unrmail.el (unrmail): Replace obsolete detect-coding-with-priority.
Glenn Morris [Fri, 24 May 2013 06:55:45 +0000 (23:55 -0700)]
* mail/unrmail.el (unrmail): Replace obsolete detect-coding-with-priority.

11 years agosocks.el small cleanup
Glenn Morris [Fri, 24 May 2013 06:53:54 +0000 (23:53 -0700)]
socks.el small cleanup

* lisp/net/socks.el (socks-split-string): Use this rather than split-string.
(socks-nslookup-host): Update for above change.
(dynamic-choice, s5-dynamic-choice-match)
(s5-dynamic-choice-match-inline, s5-widget-value-create):
Comment out unused code.

Comment out other unused code in a more standard manner, with ";"
rather than "'".

11 years agoGud tooltip tweak
Glenn Morris [Fri, 24 May 2013 06:50:22 +0000 (23:50 -0700)]
Gud tooltip tweak

* tooltip.el (tooltip-use-echo-area): Warn only on 'set.
* progmodes/gud.el (gud-gdb-completion-function): Move before use.
(gud-tooltip-echo-area): Make obsolete.
(gud-tooltip-process-output, gud-tooltip-tips): Also check tooltip-mode.

11 years ago* lisp/progmodes/js.el (js--optimize-arglist): Declare.
Glenn Morris [Fri, 24 May 2013 03:50:31 +0000 (20:50 -0700)]
* lisp/progmodes/js.el (js--optimize-arglist): Declare.

11 years ago* progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare.
Glenn Morris [Fri, 24 May 2013 03:49:52 +0000 (20:49 -0700)]
* progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare.

11 years ago* which-func.el (ediff-window-A, ediff-window-B, (ediff-window-C): Declare.
Glenn Morris [Fri, 24 May 2013 03:49:17 +0000 (20:49 -0700)]
* which-func.el (ediff-window-A, ediff-window-B, (ediff-window-C): Declare.

11 years ago* pgg-gpg.el, pgg-pgp.el, pgg-pgp5.el: Tweak requires to silence compiler.
Glenn Morris [Fri, 24 May 2013 03:47:23 +0000 (20:47 -0700)]
* pgg-gpg.el, pgg-pgp.el, pgg-pgp5.el: Tweak requires to silence compiler.

11 years agoSilence sym-comp compilation
Glenn Morris [Fri, 24 May 2013 03:45:50 +0000 (20:45 -0700)]
Silence sym-comp compilation

* obsolete/sym-comp.el: No need to load hipper-exp when compiling.
(he-search-string, he-tried-table, he-expand-list)
(he-init-string, he-string-member, he-substitute-string)
(he-reset-string): Declare.

11 years ago* options.el (list-options): Use custom-variable-p, rather than obsolete alias.
Glenn Morris [Fri, 24 May 2013 03:42:55 +0000 (20:42 -0700)]
* options.el (list-options): Use custom-variable-p, rather than obsolete alias.

11 years ago* simple.el (shell-command-on-region): Pass the `replace' argument
Sam Steingold [Thu, 23 May 2013 21:01:47 +0000 (17:01 -0400)]
* simple.el (shell-command-on-region): Pass the `replace' argument
down to `call-process-region' to comply with he doc as reported on
<http://stackoverflow.com/questions/16720458/emacs-noninteractive-call-to-shell-command-on-region-always-deletes-region>

11 years agosrc/keyboard.c (read_decoded_event_from_main_queue): Improve commentary
Eli Zaretskii [Thu, 23 May 2013 18:49:57 +0000 (21:49 +0300)]
src/keyboard.c (read_decoded_event_from_main_queue): Improve commentary
 about the w32 console reading non-ASCII characters.

11 years ago* lisp/emacs-lisp/smie.el (smie-indent-forward-token)
Stefan Monnier [Thu, 23 May 2013 17:44:38 +0000 (13:44 -0400)]
* lisp/emacs-lisp/smie.el (smie-indent-forward-token)
(smie-indent-backward-token): Handle string tokens.

Fixes: debbugs:14381
11 years agoDon't apply keyboard decoding to unread-command-events.
Stefan Monnier [Thu, 23 May 2013 17:25:42 +0000 (13:25 -0400)]
Don't apply keyboard decoding to unread-command-events.
* src/keyboard.c: Apply keyboard decoding only to events that come directly
from the tty, not from unread-command-events (bug#14368).
(read_event_from_main_queue): New function, extracted from read_char).
(read_decoded_char): Remove.
(read_decoded_event_from_main_queue): New function to replace it.
(read_char): Use it.
(read_key_sequence): Use read_char rather than read_decoded_char.

Fixes: debbugs:14403
11 years ago* lisp/ielm.el (ielm-menu): New menu.
Rüdiger Sonderfeld [Thu, 23 May 2013 15:27:48 +0000 (11:27 -0400)]
* lisp/ielm.el (ielm-menu): New menu.
(inferior-emacs-lisp-mode): Set comment-start.

11 years ago* lisp/textmodes/reftex.el (reftex-ref-style-toggle): Fix deactivate
Tassilo Horn [Thu, 23 May 2013 15:26:20 +0000 (17:26 +0200)]
* lisp/textmodes/reftex.el (reftex-ref-style-toggle): Fix deactivate
  action.

11 years ago* lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add cleveref
Tassilo Horn [Thu, 23 May 2013 15:24:21 +0000 (17:24 +0200)]
* lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add cleveref
  macros.

11 years ago* lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files):
Tassilo Horn [Thu, 23 May 2013 15:21:54 +0000 (17:21 +0200)]
* lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files):
  Accept options for bibliography commands.
* lisp/textmodes/reftex-vars.el (reftex-bibliography-commands): Add
  addbibresource.  Basic Biblatex support.

11 years ago* src/keyboard.c (read_decoded_char): Don't decode under w32.
Stefan Monnier [Thu, 23 May 2013 13:23:45 +0000 (09:23 -0400)]
* src/keyboard.c (read_decoded_char): Don't decode under w32.

Fixes: debbugs:14403
11 years agomerge trunk
Kenichi Handa [Thu, 23 May 2013 12:04:26 +0000 (21:04 +0900)]
merge trunk

11 years agotest/automated/decoder-tests.el: New file
Kenichi Handa [Thu, 23 May 2013 11:18:43 +0000 (20:18 +0900)]
test/automated/decoder-tests.el: New file

11 years ago* net/tramp-gvfs.el (top):
Michael Albinus [Thu, 23 May 2013 08:43:18 +0000 (10:43 +0200)]
* net/tramp-gvfs.el (top):
* net/xesam.el (xesam-dbus-unique-names): Suppress D-Bus errors
when loading package.  (Bug#14447)

11 years agoSilence em-ls compilation
Glenn Morris [Thu, 23 May 2013 07:55:52 +0000 (00:55 -0700)]
Silence em-ls compilation

* lisp/eshell/em-ls.el: Adjust requires.
(eshell-glob-regexp): Declare.

11 years agoSilence gnus-util compilation
Glenn Morris [Thu, 23 May 2013 07:52:19 +0000 (00:52 -0700)]
Silence gnus-util compilation

* lisp/gnus/gnus-util.el (rmail-swap-buffers-maybe)
(rmail-maybe-set-message-counters, rmail-count-new-messages)
(rmail-summary-exists, rmail-show-message, rmail-summary-displayed)
(rmail-pop-to-buffer, rmail-maybe-display-summary): Declare.

11 years agoFix declaration typo
Glenn Morris [Thu, 23 May 2013 07:42:16 +0000 (00:42 -0700)]
Fix declaration typo

11 years agoSilence some js compilation warnings
Glenn Morris [Thu, 23 May 2013 07:37:56 +0000 (00:37 -0700)]
Silence some js compilation warnings

* lisp/progmodes/js.el: No need to load comint when compiling.
(ring-insert, comint-send-string, comint-send-input)
(comint-last-input-end, ido-chop): Declare.

11 years agoSilence ediff compilation
Glenn Morris [Thu, 23 May 2013 07:10:05 +0000 (00:10 -0700)]
Silence ediff compilation

* lisp/vc/ediff-diff.el, lisp/vc/ediff-merg.el: Require ediff-util at run-time.

* lisp/vc/ediff-mult.el: Adjust requires.
(ediff-directories-internal, ediff-directory-revisions-internal)
(ediff-patch-file-internal): Declare.

* lisp/vc/ediff-ptch.el: Adjust requires.
(ediff-use-last-dir, ediff-buffers-internal): Declare.
(ediff-find-file): Autoload.

* lisp/vc/ediff-util.el: No need to load ediff when compiling.
(ediff-regions-internal): Declare.

* lisp/vc/ediff-wind.el: Adjust requires.
(ediff-compute-toolbar-width): Define when compiling.
(ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare.

* lisp/vc/ediff.el: No need to load dired, ediff-ptch when compiling.
(dired-get-filename, dired-get-marked-files)
(ediff-last-dir-patch, ediff-patch-default-directory)
(ediff-get-patch-buffer, ediff-dispatch-file-patching-job)
(ediff-patch-buffer-internal): Declare.

11 years agoSilence some gnus compilation warnings
Glenn Morris [Thu, 23 May 2013 05:05:27 +0000 (22:05 -0700)]
Silence some gnus compilation warnings

* gnus/mm-decode.el: No need to load term when compiling.
(term-mode, term-char-mode): Declare.

* gnus/mm-util.el: No need to load jka-compr when compiling.
(jka-compr-acceptable-retval-list, jka-compr-make-temp-name): Declare.

* gnus/nnmaildir.el: Require is automatically eval-and-compile.
(nnmail): Require at run-time too.

* gnus/registry.el (registry-size): Move definition before use.

11 years agoSilence checkdoc.el compilation
Glenn Morris [Thu, 23 May 2013 05:01:59 +0000 (22:01 -0700)]
Silence checkdoc.el compilation

* lisp/emacs-lisp/checkdoc.el: No need to load ispell when compiling.
(ispell-process, ispell-buffer-local-words, lm-summary)
(lm-section-start, lm-section-end): Declare.
(checkdoc-ispell-init): Simplify.

11 years agoSilence vera-mode compilation
Glenn Morris [Thu, 23 May 2013 04:59:14 +0000 (21:59 -0700)]
Silence vera-mode compilation

* lisp/progmodes/vera-mode.el (he-init-string, he-dabbrev-beg)
(he-string-member, he-reset-string, he-substitute-string): Declare.

11 years ago* lisp/url/url.el (mm-dissect-buffer, mm-display-part): Declare.
Glenn Morris [Thu, 23 May 2013 04:58:09 +0000 (21:58 -0700)]
* lisp/url/url.el (mm-dissect-buffer, mm-display-part): Declare.

11 years agoSilence many eshell compilation warnings
Glenn Morris [Thu, 23 May 2013 04:57:27 +0000 (21:57 -0700)]
Silence many eshell compilation warnings

* lisp/eshell/em-tramp.el: Adjust requires.
(eshell-parse-command): Autoload.

* lisp/eshell/em-xtra.el: Adjust requires.
(eshell-parse-command): Autoload.

* lisp/eshell/esh-ext.el: Adjust requires.
(eshell-parse-command, eshell-close-handles): Autoload.

* lisp/eshell/esh-io.el: Adjust requires.
(eshell-output-filter): Autoload.

* lisp/eshell/esh-util.el: No need to load tramp when compiling.
(tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime): Declare.
(eshell-parse-ange-ls): Require ange-ftp and tramp.

* lisp/eshell/em-alias.el, lisp/eshell/em-banner.el, lisp/eshell/em-basic.el:
* lisp/eshell/em-cmpl.el, lisp/eshell/em-glob.el, lisp/eshell/em-pred.el:
* lisp/eshell/em-prompt.el, lisp/eshell/em-rebind.el, lisp/eshell/em-smart.el:
* lisp/eshell/em-term.el, lisp/eshell/esh-arg.el, lisp/eshell/esh-mode.el:
* lisp/eshell/esh-opt.el, lisp/eshell/esh-proc.el:
* lisp/eshell/esh-var.el: Adjust requires.

* lisp/eshell/eshell.el: Do not require esh-util twice.
(eshell-add-input-to-history): Declare.
(eshell-command): Check history module is active before using it.

11 years ago* lisp/eshell/em-ls.el (eshell-ls-dir): Fix -A handling.
Glenn Morris [Thu, 23 May 2013 04:48:40 +0000 (21:48 -0700)]
* lisp/eshell/em-ls.el (eshell-ls-dir): Fix -A handling.

11 years agolisp/gnus/gnus-spec.el (gnus-parse-complex-format): Try to maximize compatibility
Adam Sjøgren [Wed, 22 May 2013 22:16:29 +0000 (22:16 +0000)]
lisp/gnus/gnus-spec.el (gnus-parse-complex-format): Try to maximize compatibility

11 years ago* src/casetab.c (init_casetab_once): Fix last change.
Barry O'Reilly [Wed, 22 May 2013 21:35:00 +0000 (17:35 -0400)]
* src/casetab.c (init_casetab_once): Fix last change.

Fixes: debbugs:14424
11 years ago* progmodes/octave.el (inferior-octave-startup): Fix bug#14433.
Leo Liu [Wed, 22 May 2013 15:28:42 +0000 (23:28 +0800)]
* progmodes/octave.el (inferior-octave-startup): Fix bug#14433.

11 years agomerge trunk
Kenichi Handa [Wed, 22 May 2013 15:12:59 +0000 (00:12 +0900)]
merge trunk

11 years agoFix the setting of buffer-file-coding-system on, for instance, C-x RET c unix RET...
Kenichi Handa [Wed, 22 May 2013 14:53:21 +0000 (23:53 +0900)]
Fix the setting of buffer-file-coding-system on, for instance, C-x RET c unix RET _FILE_OF_DOS_EOL_TYPE_ RET.

11 years ago* autorevert.el (auto-revert-notify-add-watch)
Michael Albinus [Wed, 22 May 2013 14:47:19 +0000 (16:47 +0200)]
* autorevert.el (auto-revert-notify-add-watch)
(auto-revert-notify-handler): Add `attrib' for the inotify case,
it indicates changes in file modification time.

11 years agolisp/gnus/mml2015.el (mml2015-epg-sign): Make sure to insert newline after the signed...
Daiki Ueno [Wed, 22 May 2013 13:18:40 +0000 (13:18 +0000)]
lisp/gnus/mml2015.el (mml2015-epg-sign): Make sure to insert newline after the signed data to conform the standard (Bug#14232)

11 years agoTweak byte-compile-file-form-autoload warnings
Glenn Morris [Wed, 22 May 2013 07:50:30 +0000 (00:50 -0700)]
Tweak byte-compile-file-form-autoload warnings

* emacs-lisp/bytecomp.el (byte-compile-file-form-autoload):
Always delete the autoloaded function from the noruntime and
unresolved functions lists.

11 years agoAdd some declarations to url-handlers.el
Glenn Morris [Wed, 22 May 2013 07:30:44 +0000 (00:30 -0700)]
Add some declarations to url-handlers.el

* lisp/url/url-handlers.el (mm-save-part-to-file, mm-destroy-parts)
(mm-decode-string, mail-content-type-get): Declare.

11 years agoSilence allout.el compilation
Glenn Morris [Wed, 22 May 2013 07:07:19 +0000 (00:07 -0700)]
Silence allout.el compilation

* lisp/allout.el: No need to load epa, epg, overlay when compiling.
(epg-context-set-passphrase-callback, epg-list-keys)
(epg-decrypt-string, epg-encrypt-string, epg-user-id-string)
(epg-key-user-id-list): Declare.

11 years agoSmall viper clean-up
Glenn Morris [Wed, 22 May 2013 03:21:30 +0000 (20:21 -0700)]
Small viper clean-up

* lisp/emulation/viper-cmd.el (viper-set-searchstyle-toggling-macros)
(viper-set-parsing-style-toggling-macro)
(viper-set-emacs-state-searchstyle-macros):
Use called-interactively-p on Emacs.
(viper-looking-back): Make it an obsolete alias.  Update callers.
* lisp/emulation/viper-ex.el: Load viper-keym, not viper-cmd.
Use looking-back rather than viper-looking-back.
(viper-tmp-insert-at-eob, viper-enlarge-region)
(viper-read-string-with-history, viper-register-to-point)
(viper-append-to-register, viper-change-state-to-vi)
(viper-backward-char-carefully, viper-forward-char-carefully)
(viper-Put-back, viper-put-back, viper-add-newline-at-eob-if-necessary)
(viper-change-state-to-emacs): Declare.
* lisp/emulation/viper-macs.el: Load viper-mous, viper-ex, not viper-cmd.
(viper-change-state-to-insert, viper-change-state-to-vi): Declare.
* lisp/emulation/viper-mous.el: Do not load viper-cmd.
(viper-backward-char-carefully, viper-forward-char-carefully)
(viper-forward-word, viper-adjust-window): Declare.

11 years ago* lisp/vc/ediff.el (ediff-version): Use called-interactively-p on Emacs.
Glenn Morris [Wed, 22 May 2013 03:17:22 +0000 (20:17 -0700)]
* lisp/vc/ediff.el (ediff-version): Use called-interactively-p on Emacs.

11 years ago* progmodes/idlw-help.el (idlwave-help-fontify): Use called-interactively-p.
Glenn Morris [Wed, 22 May 2013 03:16:05 +0000 (20:16 -0700)]
* progmodes/idlw-help.el (idlwave-help-fontify): Use called-interactively-p.

11 years agoSilence w32console.el compilation
Glenn Morris [Wed, 22 May 2013 03:15:03 +0000 (20:15 -0700)]
Silence w32console.el compilation

* lisp/term/w32console.el (w32-get-console-codepage)
(w32-get-console-output-codepage): Declare.

11 years agoSmall speedbar-related clean-up
Glenn Morris [Wed, 22 May 2013 03:13:56 +0000 (20:13 -0700)]
Small speedbar-related clean-up

* lisp/dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape):
Remove unnecessary declarations.
(dframe-message): Doc fix.

* lisp/info.el (dframe-select-attached-frame, dframe-current-frame):
Declare.

* lisp/speedbar.el (speedbar-message): Make it an obsolete alias.
Update all callers.
(speedbar-with-attached-buffer)
(speedbar-maybee-jump-to-attached-frame): Make these aliases obsolete.
(speedbar-with-writable): Use backquote.

* lisp/emacs-lisp/eieio-opt.el (eieio-describe-class-sb):

* lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-handle-click):
Use dframe-with-attached-buffer, dframe-maybee-jump-to-attached-frame
rather than speedbar- aliases.

* lisp/mail/rmail.el: Load dframe rather than speedbar when compiling.
(speedbar-make-specialized-keymap, speedbar-insert-button)
(dframe-select-attached-frame, dframe-maybee-jump-to-attached-frame)
(speedbar-do-function-pointer): Declare.
(rmail-speedbar-button, rmail-speedbar-find-file)
(rmail-speedbar-move-message):
Use dframe-with-attached-buffer rather than speedbar- alias.

* lisp/progmodes/gud.el: Load dframe rather than speedbar when compiling.
(dframe-message, speedbar-make-specialized-keymap)
(speedbar-add-expansion-list, speedbar-mode-functions-list)
(speedbar-make-tag-line, speedbar-remove-localized-speedbar-support)
(speedbar-insert-button, dframe-select-attached-frame)
(dframe-maybee-jump-to-attached-frame)
(speedbar-change-initial-expansion-list)
(speedbar-previously-used-expansion-list-name): Declare.
(gud-speedbar-item-info, gud-gdb-goto-stackframe):
Use dframe-message, dframe-with-attached-buffer rather than
speedbar- aliases.
(gud-sentinel): Silence compiler.

* lisp/progmodes/vhdl-mode.el (speedbar-refresh)
(speedbar-do-function-pointer, speedbar-add-supported-extension)
(speedbar-add-mode-functions-list, speedbar-make-specialized-keymap)
(speedbar-change-initial-expansion-list, speedbar-add-expansion-list)
(speedbar-extension-list-to-regex, speedbar-directory-buttons)
(speedbar-file-lists, speedbar-make-tag-line)
(speedbar-line-directory, speedbar-goto-this-file)
(speedbar-center-buffer-smartly, speedbar-change-expand-button-char)
(speedbar-delete-subblock, speedbar-position-cursor-on-line)
(speedbar-make-button, speedbar-reset-scanners)
(speedbar-files-item-info, speedbar-line-text)
(speedbar-find-file-in-frame, speedbar-set-timer)
(dframe-maybee-jump-to-attached-frame, speedbar-line-file): Declare.
(speedbar-with-writable): Do not (re)define it.
(vhdl-speedbar-find-file): Use dframe-maybee-jump-to-attached-frame
rather than speedbar- alias.

* lisp/cedet/ede/speedbar.el (ede-file-find, ede-tag-find):
* lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
Use dframe-maybee-jump-to-attached-frame rather than speedbar- alias.

* lisp/mh-e/mh-speed.el (mh-speed-view):
Use dframe-with-attached-buffer rather than speedbar- alias.

11 years agoChangeLog fix
Glenn Morris [Wed, 22 May 2013 02:56:22 +0000 (19:56 -0700)]
ChangeLog fix

11 years agoMinor fix to last change
Leo Liu [Tue, 21 May 2013 23:19:03 +0000 (07:19 +0800)]
Minor fix to last change

11 years ago* progmodes/octave.el (octave-mode-menu): Update and re-organize
Leo Liu [Tue, 21 May 2013 23:05:16 +0000 (07:05 +0800)]
* progmodes/octave.el (octave-mode-menu): Update and re-organize
menu items.
(octave-mode): Tweak fill-nobreak-predicate.
(inferior-octave-startup): Check process to avoid infinite loop.
(inferior-octave): Pop to buffer first to show abornmal process
exit information.

11 years ago* src/search.c (looking_at_1): Only set last_thing_searched if the match
Stefan Monnier [Tue, 21 May 2013 21:48:52 +0000 (17:48 -0400)]
* src/search.c (looking_at_1): Only set last_thing_searched if the match
changed the match-data.

Fixes: debbugs:14281
11 years agoFor now, revert previous rmail.el change
Glenn Morris [Tue, 21 May 2013 17:22:04 +0000 (13:22 -0400)]
For now, revert previous rmail.el change

11 years agoSilence printing.el compilation
Glenn Morris [Tue, 21 May 2013 16:13:08 +0000 (09:13 -0700)]
Silence printing.el compilation

* lisp/printing.el (pr-menu-bar): Define when compiling.

11 years agoSilence rmail.el compilation
Glenn Morris [Tue, 21 May 2013 15:43:06 +0000 (08:43 -0700)]
Silence rmail.el compilation

* lisp/mail/rmail.el (speedbar): No need to load when compiling.
(speedbar-make-specialized-keymap, speedbar-with-attached-buffer)
(speedbar-do-function-pointer): Declare.

11 years agoSimplify auto fill in Octave mode and some small improvements
Leo Liu [Tue, 21 May 2013 09:43:14 +0000 (17:43 +0800)]
Simplify auto fill in Octave mode and some small improvements

11 years agoSilence some compiler warnings
Glenn Morris [Tue, 21 May 2013 07:25:14 +0000 (00:25 -0700)]
Silence some compiler warnings

* calculator.el (electric, ehelp): No need to load when compiling.
(Electric-command-loop, electric-describe-mode): Declare.

* doc-view.el (doc-view-current-converter-processes): Move before use.

* files.el (dired-unmark):
* progmodes/gud.el (gdb-input): Update declarations.

* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Move MODE-set-explicitly definition before use.

* erc/erc-log.el (erc-network-name): Declare.

* erc/erc-notify.el (pcomplete--here): Declare.
(pcomplete/erc-mode/NOTIFY): Require pcomplete.

* international/mule-diag.el (mule-diag):
Don't use obsolete window-system-version.

* mail/feedmail.el (smtpmail): No need to load when compiling.
(smtpmail-via-smtp, smtpmail-smtp-server): Declare.

* mail/mail-utils.el (rfc822): No need to load when compiling.
(rfc822-addresses): Autoload it.
(mail-strip-quoted-names): Trivial simplification.

* mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare.
(rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm.

* net/snmp-mode.el (tempo): Don't duplicate requires.

* progmodes/prolog.el (info): No need to load when compiling.
(comint): Require before shell requires it.
(Info-goto-node): Autoload it.
(Info-follow-nearest-node): Declare.
(prolog-help-info, prolog-goto-predicate-info): No need to require info.

* textmodes/artist.el (picture-mode-exit): Declare.

* textmodes/reftex-parse.el (reftex-parse-from-file):
Trivial rewrite so the compiler can parse it better.

* url/url-dav.el (url-http): Require it.
(url-http-head-file-attributes): Don't autoload it.

* url/url-proxy.el (url-http): Autoload it.

11 years agoMake some trivial erc.el functions obsolete
Glenn Morris [Tue, 21 May 2013 07:15:59 +0000 (00:15 -0700)]
Make some trivial erc.el functions obsolete

* lisp/erc/erc.el (erc-quit-reason-various-alist)
(erc-part-reason-various-alist): Don't mention zippy.
(erc-quit-reason, erc-part-reason): Remove zippy options.
(erc-quit-reason-zippy, erc-part-reason-zippy): Make obsolete.
If yow is not defined, fall back to -normal versions.

11 years ago* xdisp.c (reseat_at_previous_visible_line_start):
Dmitry Antipov [Tue, 21 May 2013 05:27:33 +0000 (09:27 +0400)]
* xdisp.c (reseat_at_previous_visible_line_start):
Already declared in dispextern.h, so remove it here.
(move_it_vertically_backward): Likewise.