bpt/emacs.git
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.

11 years ago* lisp/mh-e/mh-comp.el (mh-regexp-in-field-p): Fix previous change.
Glenn Morris [Tue, 21 May 2013 01:59:36 +0000 (21:59 -0400)]
* lisp/mh-e/mh-comp.el (mh-regexp-in-field-p): Fix previous change.

11 years agoUse octave-help-mode for the Octave Help buffer
Leo Liu [Mon, 20 May 2013 22:52:40 +0000 (06:52 +0800)]
Use octave-help-mode for the Octave Help buffer

11 years agolisp/gnus/gnus-spec.el (gnus-parse-complex-format): Use unicode escape for left doubl...
Adam Sjøgren [Mon, 20 May 2013 22:37:06 +0000 (22:37 +0000)]
lisp/gnus/gnus-spec.el (gnus-parse-complex-format): Use unicode escape for left double angle quotation mark

11 years agoSync x-server-* and x-display-* functions on NS with those on X11.
YAMAMOTO Mitsuharu [Mon, 20 May 2013 08:27:56 +0000 (17:27 +0900)]
Sync x-server-* and x-display-* functions on NS with those on X11.

11 years ago* lisp/format-spec.el (format-spec): Allow spec chars with nil values.
Glenn Morris [Mon, 20 May 2013 07:45:58 +0000 (00:45 -0700)]
* lisp/format-spec.el (format-spec): Allow spec chars with nil values.

Fixes: debbugs:14420

11 years agoMention `display-monitor-attributes-list' in docstrings of X11 display measurement...
YAMAMOTO Mitsuharu [Mon, 20 May 2013 03:15:20 +0000 (12:15 +0900)]
Mention `display-monitor-attributes-list' in docstrings of X11 display measurement functions.

11 years ago* xfns.c (check_x_display_info): Don't use XINT for terminal object.
YAMAMOTO Mitsuharu [Mon, 20 May 2013 03:09:22 +0000 (12:09 +0900)]
* xfns.c (check_x_display_info): Don't use XINT for terminal object.

11 years agolisp/gnus/message.el (message-insert-formatted-citation-line): Handle finding first...
Adam Sjøgren [Sun, 19 May 2013 22:50:16 +0000 (22:50 +0000)]
lisp/gnus/message.el (message-insert-formatted-citation-line): Handle finding first/lastname when more than 2 names appear

11 years agolisp/gnus/shr.el (shr-tag-span): New function
Adam Sjøgren [Sun, 19 May 2013 22:49:17 +0000 (22:49 +0000)]
lisp/gnus/shr.el (shr-tag-span): New function

11 years agodoc/misc/gnus.texi (Fancy Mail Splitting): Fix missing backslash on \\&
Adam Sjøgren [Sun, 19 May 2013 22:47:25 +0000 (22:47 +0000)]
doc/misc/gnus.texi (Fancy Mail Splitting): Fix missing backslash on \\&

11 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-heredoc): Leave
Dmitry Gutov [Sun, 19 May 2013 06:52:22 +0000 (10:52 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-heredoc): Leave
point at bol following the heredoc openers.
(ruby-syntax-propertize-expansions): Remove.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to
Dmitry Gutov [Sun, 19 May 2013 06:01:23 +0000 (10:01 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to
start at point, so that expansion starting right after opening
slash in a regexp is recognized.
(ruby-syntax-before-regexp-re): New defvar, extracted from
ruby-syntax-propertize-function.  Since the value of this regexp
is looked up at runtime now, we should be able to turn
`ruby-syntax-methods-before-regexp' into a defcustom later.
(ruby-syntax-propertize-function): Split regexp matching into two
parts, for opening and closing slashes.  That allows us to skip
over string interpolations and support multiline regexps.
Don't call `ruby-syntax-propertize-expansions', instead use another rule
for them, which calls `ruby-syntax-propertize-expansion'.
(ruby-syntax-propertize-expansions): Move `remove-text-properties'
call to `ruby-syntax-propertize-function'.
(ruby-syntax-propertize-expansion): Extracted from
`ruby-syntax-propertize-expansions'.  Handles one expansion.
(ruby-syntax-propertize-heredoc): Explicitly call
`ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-percent-literal): Leave point right after
the percent symbol, so that the expression expansion rule can
propertize the contents.

* test/automated/ruby-mode-tests.el (ruby-heredoc-highlights-interpolations)
(ruby-regexp-skips-over-interpolation)
(ruby-regexp-continues-till-end-when-unclosed)
(ruby-regexp-can-be-multiline)
(ruby-interpolation-inside-percent-literal): New tests.

* test/indent/ruby.rb: Add multiline regexp example.

11 years ago* lisp/man.el (Man-default-man-entry): Remove `-' from the end of the default value.
Juri Linkov [Sat, 18 May 2013 23:18:16 +0000 (02:18 +0300)]
* lisp/man.el (Man-default-man-entry): Remove `-' from the end of the default value.

Fixes: debbugs:14400

11 years agocomint-password-prompt-regexp tweak
Glenn Morris [Sat, 18 May 2013 19:38:35 +0000 (12:38 -0700)]
comint-password-prompt-regexp tweak

Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00401.html

* lisp/comint.el (comint-password-prompt-regexp):
Allow "password for XXX" where XXX contains colons (eg https://...).

11 years agoAdd new files in nt/ to make-dist.
Eli Zaretskii [Sat, 18 May 2013 12:04:40 +0000 (15:04 +0300)]
Add new files in nt/ to make-dist.

 make-dist (files): Add nt/msysconfig.sh, nt/mingw-cfg.site,
 nt/epaths.nt, and nt/INSTALL.MSYS.

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

11 years agoSpelling fixes.
Paul Eggert [Sat, 18 May 2013 07:17:03 +0000 (00:17 -0700)]
Spelling fixes.

11 years agoPort --enable-gcc-warnings to clang.
Paul Eggert [Sat, 18 May 2013 05:32:17 +0000 (22:32 -0700)]
Port --enable-gcc-warnings to clang.

* configure.ac (nw): Remove obsolescent warnings.
These aren't needed for clang, or for gcc for that matter.
(emacs_cv_clang): New var, which tests for clang.
Omit warnings that clang is too picky about.
(GLIB_DISABLE_DEPRECATION_WARNINGS): Define this;
needed for Ubuntu 13.04 + clang + --enable-gcc-warnings.
* lib-src/etags.c: Omit unnecessary forward decls.
(print_version, print_help): Declare _Noreturn.
* lib-src/pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.
* src/bytecode.c (exec_byte_code):
* src/regex.c:
Redo diagnostic pragmas to pacify clang, too.
* src/dbusbind.c (xd_retrieve_arg): Do not use uninitialized variable.
* src/editfns.c (Fencode_time):
* src/fileio.c (file_accessible_directory_p):
* src/font.c (font_unparse_xlfd):
Use '&"string"[index]' instead of '"string" + (index)'.
* src/undo.c (user_error): Remove; unused.

11 years ago* make-dist (files): Add nt/Makefile.in, nt/gnulib.mk.
Paul Eggert [Sat, 18 May 2013 05:21:24 +0000 (22:21 -0700)]
* make-dist (files): Add nt/Makefile.in, nt/gnulib.mk.

Otherwise, 'configure; make' fails on non-Windows builds.

11 years agoTeach inferior-octave-startup to handle Octave > 3.7
Leo Liu [Sat, 18 May 2013 03:17:35 +0000 (11:17 +0800)]
Teach inferior-octave-startup to handle Octave > 3.7

11 years ago* progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
Leo Liu [Sat, 18 May 2013 01:17:50 +0000 (09:17 +0800)]
* progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
instead.
(octave-source-directories): Don't check process.
(octave-source-directories, octave-find-definition): Doc fix.

11 years ago* lisp/gnus/message.el (message-mode): Use message-mode-abbrev-table,
Glenn Morris [Sat, 18 May 2013 00:30:49 +0000 (20:30 -0400)]
* lisp/gnus/message.el (message-mode): Use message-mode-abbrev-table,
with text-mode-abbrev-table as parent.  (Bug#14413)

11 years ago* vhdl-mode.el (vhdl-mode-map-init): Remove backspace/delete bindings.
Glenn Morris [Sat, 18 May 2013 00:25:02 +0000 (20:25 -0400)]
* vhdl-mode.el (vhdl-mode-map-init): Remove backspace/delete bindings.
(Bug#14392)

11 years ago* lisp/cus-dep.el (custom-make-dependencies): Sort the output.
Glenn Morris [Sat, 18 May 2013 00:22:56 +0000 (20:22 -0400)]
* lisp/cus-dep.el (custom-make-dependencies): Sort the output.
(custom-versions-load-alist): Convert comment to doc.

11 years agoFix typos in previous subword.el change
Glenn Morris [Fri, 17 May 2013 23:18:15 +0000 (19:18 -0400)]
Fix typos in previous subword.el change

11 years ago* newcomment.el (comment-search-backward): Stricter in finding
Leo Liu [Fri, 17 May 2013 22:46:10 +0000 (06:46 +0800)]
* newcomment.el (comment-search-backward): Stricter in finding
comment start.

* progmodes/octave.el (octave-comment-start): Remove the SPC char.
(octave-comment-start-skip): Properly anchored.

Fixes: debbugs:14303

11 years agoSupport invocation of un-installed runemacs.exe.
Eli Zaretskii [Fri, 17 May 2013 09:36:54 +0000 (12:36 +0300)]
Support invocation of un-installed runemacs.exe.

 nt/runemacs.c (WinMain): Support invocation of un-installed
 nt/runemacs.exe, by looking for src/emacs.exe.

11 years agoSupport invocation of un-installed runemacs.exe.
Eli Zaretskii [Fri, 17 May 2013 09:35:23 +0000 (12:35 +0300)]
Support invocation of un-installed runemacs.exe.

11 years ago* emacs-lisp/smie.el (smie-highlight-matching-block-mode): Clean
Leo Liu [Fri, 17 May 2013 04:33:12 +0000 (12:33 +0800)]
* emacs-lisp/smie.el (smie-highlight-matching-block-mode): Clean
up when turned off.
(smie--highlight-matching-block-overlay): No longer buffer-local.
(smie-highlight-matching-block): Adjust.

Fixes: debbugs:14395

11 years agoDoc string fix for "nanoseconds".
Paul Eggert [Fri, 17 May 2013 04:09:16 +0000 (21:09 -0700)]
Doc string fix for "nanoseconds".

* emacs-lisp/timer.el (timer-relative-time, timer-inc-time):
Fix doc string typo that had "nanoseconds" instead of "microseconds".

Fixes: debbugs:14406

11 years ago* calc/calc-units.el (math-extract-units): Preserve powers of units.
Jay Belanger [Fri, 17 May 2013 02:57:09 +0000 (21:57 -0500)]
* calc/calc-units.el (math-extract-units): Preserve powers of units.

11 years ago* subr.el (delete-consecutive-dups): New function.
Leo Liu [Fri, 17 May 2013 02:43:41 +0000 (10:43 +0800)]
* subr.el (delete-consecutive-dups): New function.
* ido.el (ido-set-matches-1): Use it.
* progmodes/octave.el (inferior-octave-completion-table): Use it.
* ido.el (ido-remove-consecutive-dups): Remove.

11 years ago* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re)
Stefan Monnier [Fri, 17 May 2013 00:36:33 +0000 (20:36 -0400)]
* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re)
(f90-hpf-keywords-re, f90-constants-re): Use \\_< rather than
regexp-opt's `words'.

11 years agolisp/gnus/message.el (message-expand-group): Decode group names
Katsumi Yamaoka [Thu, 16 May 2013 23:29:10 +0000 (23:29 +0000)]
lisp/gnus/message.el (message-expand-group): Decode group names

11 years ago* emacs-lisp/smie.el (smie-matching-block-highlight): New face.
Leo Liu [Thu, 16 May 2013 22:58:58 +0000 (06:58 +0800)]
* emacs-lisp/smie.el (smie-matching-block-highlight): New face.
(smie--highlight-matching-block-overlay)
(smie--highlight-matching-block-lastpos)
(smie--highlight-matching-block-timer): New variables.
(smie-highlight-matching-block): New function.
(smie-highlight-matching-block-mode): New minor mode.
(smie-setup): Conditionally enable smie-blink-matching-open.

Fixes: debbugs:14395

11 years agognus-notifications.el (gnus-notifications-notify): Use photo-file as app-icon
Julien Danjou [Thu, 16 May 2013 22:31:47 +0000 (22:31 +0000)]
gnus-notifications.el (gnus-notifications-notify): Use photo-file as app-icon

11 years agoDocument arguments of insert_1_both.
Eli Zaretskii [Thu, 16 May 2013 19:15:32 +0000 (22:15 +0300)]
Document arguments of insert_1_both.

11 years agoFix bug #14408 with updating *Messages* display.
Eli Zaretskii [Thu, 16 May 2013 18:33:27 +0000 (21:33 +0300)]
Fix bug #14408 with updating *Messages* display.

 src/xdisp.c (message_dolog): If the *Messages* buffer is shown in
 some window, increment windows_or_buffers_changed, so that
 *Messages* display in that window is updated.

11 years agoDefine SIZE_MAX for MSVC, part of bug #14409.
Eli Zaretskii [Thu, 16 May 2013 17:31:25 +0000 (20:31 +0300)]
Define SIZE_MAX for MSVC, part of bug #14409.

 nt/inc/stdint.h (SIZE_MAX) [!__GNUC__]: Define.

11 years agoGive recipe in nt/INSTALL.MSYS to uninstall msys-texinfo.
Eli Zaretskii [Thu, 16 May 2013 17:14:21 +0000 (20:14 +0300)]
Give recipe in nt/INSTALL.MSYS to uninstall msys-texinfo.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 16 May 2013 16:37:05 +0000 (12:37 -0400)]
Auto-commit of generated files.

11 years agoSync with upstream verilog-mode r840.
Wilson Snyder [Thu, 16 May 2013 16:11:38 +0000 (09:11 -0700)]
Sync with upstream verilog-mode r840.

* lisp/progmodes/verilog-mode.el (verilog-mode-version)
(verilog-mode-release-date): Update.
(verilog-auto-lineup, verilog-auto-reset): Doc fixes.
(verilog-sig-tieoff): Fix string error on
AUTORESET with colon define, bug594.  Reported by Andrew Hou.
(verilog-read-decls): Fix parameters confusing
AUTOINST interfaces, bug565.  Reported by Leith Johnson.

11 years agoFix a typo in nt/INSTALL.MSYS.
Eli Zaretskii [Thu, 16 May 2013 15:35:59 +0000 (18:35 +0300)]
Fix a typo in nt/INSTALL.MSYS.

11 years agoSupport building Emacs on MS-Windows using the Posix configury.
Eli Zaretskii [Thu, 16 May 2013 12:48:54 +0000 (15:48 +0300)]
Support building Emacs on MS-Windows using the Posix configury.

 lib/Makefile.am: If building for MS-Windows, include
 nt/gnulib.mk instead of lib/gnulib.mk.
 configure.ac: Adapt to MSYS build on MS-Windows.
 Makefile.in (NTDIR): New variable, for the MSYS build on
 MS-Windows.
 (SUBDIR): Add $(NTDIR).
 (.PHONY): Add epaths-force-w32.
 (msys_to_w32): New variable.
 (epaths-force-w32, install-nt, uninstall-nt): New targets.
 (lib-src src): Add $(NTLIB) to prerequisites.
 (lib lib-src lisp leim nt): Add 'nt'.
 (config.status): Use $(CFG).
 (.PHONY): Add install-$(NTDIR) and uninstall-$(NTDIR).
 (install, install-arch-dep): Add install-$(NTDIR).
 (uninstall): Depend on uninstall-$(NTDIR).
 (mostlyclean, clean, distclean, bootstrap-clean): Add 'nt'.
 * GNUmakefile (CFG): New variable, uses mingw-cfg.site as
 CONFIG_SITE for the MSYS build on MS-Windows.
 (Makefile): Use $(CFG).
 .bzrignore: Ignore *.res, *.tmp, and *.map.  Remove
 src/emacs.res.

 etc/NEWS: Advertise the MSYS build on MS-Windows.

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

 lib-src/update-game-score.c [WINDOWSNT]: Include "ntlib.h".
 lib-src/ntlib.h (sleep): Update prototype.
 (geteuid): Add prototype.
 lib-src/ntlib.c (sleep): Now returns an unsigned value.
 (getgid): New function.
 lib-src/Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
 (CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
 (INSTALLABLES): Add $(CLIENTW).
 (LIBS_MOVE): Use $(LIB_WSOCK32).
 ($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
 (test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
 (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
 (emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
 Add $(NTLIB) to prerequisites.  Use $(EXEEXT).
 (pop.o): Add pop.h to prerequisites.
 (emacsclientw${EXEEXT}, ntlib.o): New targets.
 (emacsclient.res): New target.

 lisp/subr.el (reveal-filename): New function.
 lisp/loadup.el: Compute Emacs executable versions on MS-Windows,
 where executables have the .exe extension.  Add a hard link
 emacs-XX.YY.ZZ.exe on MS-Windows.
 lisp/Makefile.in (XARGS_LIMIT): New variable.
 (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): Use reveal-filename.
 (compile-main): Limit xargs according to $(XARGS_LIMIT).

 nt/msysconfig.sh: New file.
 nt/mingw-cfg.site: New file.
 nt/makefile.w32-in (LOCAL_FLAGS): Add -DOLD_PATHS=1.
 nt/inc/unistd.h: Include pwd.h and sys/types.h.
 nt/inc/sys/time.h (_TIMEVAL_DEFINED, timerisset, timercmp)
 (timerclear): Define.
 (gettimeofday): Adjust signature to be Posix compatible, by using
 the 'restrict' keyword.
 nt/inc/sys/stat.h (UTIME_NOW, UTIME_OMIT): Define.
 (struct _stat, struct _stati64): Define.
 nt/inc/sys/socket.h (timeval): Define only for MSVC.
 (FD_SET, FD_CLR, FD_ISSET, fd_set): Redefine only if
 EMACS_CONFIG_H is defined.
 (timeval): Undefine only for MSVC.
 nt/inc/ms-w32.h (HAVE___BUILTIN_UNWIND_INIT, restrict)
 (HAVE_WINDOW_SYSTEM, HAVE_MENUS, EMACS_CONFIGURATION)
 (EMACS_CONFIG_OPTIONS, HAVE_LONG_LONG_INT)
 (HAVE_UNSIGNED_LONG_LONG_INT): Define only if not already defined.
 (fileno): Move definition after including stdio.h.
 (sigset_t): Guard typedef by _W64.
 nt/gnulib.mk: New file.
 nt/epaths.nt: New file.
 nt/addpm.c [!OLD_PATHS]: Include src/epaths.h, instead of having a
 copy of the file names there.
 <env_vars> [!OLD_PATHS]: Use macros from epaths.h instead of
 literal strings.
 nt/Makefile.in: New file.
 nt/INSTALL.MSYS: New file.
 nt/INSTALL: Mention INSTALL.MSYS.

 src/w32.c: Include epaths.h.
 (init_environment): Use cmdproxy.exe without leading directories.
 Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that
 case.
 (gettimeofday): Adjust signature and return value to Posix
 expectations.
 src/unexw32.c (open_output_file): Delete the existing emacs.exe
 before creating it, to break the hard link to the versioned
 executable.
 src/Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK)
 (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK)
 (FIRSTFILE_OBJ): New variables.
 (W32_RES): Rename to EMACSRES.  All users changed.
 (base_obj): Use $(CM_OBJ).
 (ALLOBJS): Use $(FIRSTFILE_OBJ).
 (emacs$(EXEEXT)): Depend on $(ADDSECTION).
 (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move
 $(W32_RES_LINK) before $(LIBES).
 (emacs.res): Depend on $(EMACS_MANIFEST).  Put emacs.rc in nt.

11 years agoAnnounce the MSYS build in etc/NEWS.
Eli Zaretskii [Thu, 16 May 2013 11:23:39 +0000 (14:23 +0300)]
Announce the MSYS build in etc/NEWS.

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