bpt/emacs.git
10 years agoRearrange suspicious pointer logging
Daniel Colascione [Thu, 3 Apr 2014 09:44:41 +0000 (02:44 -0700)]
Rearrange suspicious pointer logging

10 years agoClean up array size calculations
Daniel Colascione [Thu, 3 Apr 2014 07:14:02 +0000 (00:14 -0700)]
Clean up array size calculations

10 years ago* make-dist: Further update AC_INIT regexp.
Glenn Morris [Thu, 3 Apr 2014 01:16:18 +0000 (21:16 -0400)]
* make-dist: Further update AC_INIT regexp.

10 years agoAdd missing src/ChangeLog text that somehow ended up in last commit message instead
Daniel Colascione [Thu, 3 Apr 2014 00:44:00 +0000 (17:44 -0700)]
Add missing src/ChangeLog text that somehow ended up in last commit message instead

10 years agoFix typo
Daniel Colascione [Thu, 3 Apr 2014 00:37:51 +0000 (17:37 -0700)]
Fix typo

* alloc.c: Include execinfo.h if available.
(SUSPICIOUS_OBJECT_CHECKING): New macro; define unconditionally.
(suspicious_free_record): New structure.
(suspicious_objects,suspicious_object_index)
(suspicious_free_history, suspicious_free_history_index): New
variables.
(find_suspicious_object_in_range,detect_suspicious_free,Fsuspicious_object):
New functions.
(cleanup_vector): Call find_suspicious_object_in_range.

10 years agoAdd GC bug investigation code
Daniel Colascione [Thu, 3 Apr 2014 00:18:08 +0000 (17:18 -0700)]
Add GC bug investigation code

10 years agoRevert subr.el workaround for GC bug.
Richard M. Stallman [Wed, 2 Apr 2014 17:21:34 +0000 (13:21 -0400)]
Revert subr.el workaround for GC bug.

* subr.el (set-transient-map): Comment out previous change.

10 years ago* xterm.c (x_term_init) [USE_LUCID]: Fix minor memory leak.
Dmitry Antipov [Wed, 2 Apr 2014 16:17:08 +0000 (20:17 +0400)]
* xterm.c (x_term_init) [USE_LUCID]: Fix minor memory leak.

10 years agoMerge from emacs-24; up to 2014-03-28T01:39:30Z!rgm@gnu.org
Juanma Barranquero [Wed, 2 Apr 2014 15:14:50 +0000 (17:14 +0200)]
Merge from emacs-24; up to 2014-03-28T01:39:30Z!rgm@gnu.org

10 years agoIn x_new_font don't calculate non-toolkit scrollbar width from font width (Bug#17163).
Martin Rudalics [Wed, 2 Apr 2014 14:33:33 +0000 (16:33 +0200)]
In x_new_font don't calculate non-toolkit scrollbar width from font width (Bug#17163).

* xterm.c (x_new_font): Don't calculate non-toolkit scrollbar
width from font width (Bug#17163).

10 years ago* font.c (font_list_entities): Do not add empty vector to font cache.
Dmitry Antipov [Wed, 2 Apr 2014 13:24:19 +0000 (17:24 +0400)]
* font.c (font_list_entities): Do not add empty vector to font cache.
(font_matching_entity): Likewise.  If matching entity is found, insert
1-item vector with this entity instead of entity itself (Bug#17125).

10 years agoInhibit quote autopairing more frequently
João Távora [Wed, 2 Apr 2014 09:59:06 +0000 (10:59 +0100)]
Inhibit quote autopairing more frequently

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.

10 years agoSmall codes update for revert-buffer-function no longer being nil by default
Glenn Morris [Wed, 2 Apr 2014 07:07:11 +0000 (00:07 -0700)]
Small codes update for revert-buffer-function no longer being nil by default

* lisp/menu-bar.el (menu-bar-file-menu):
* lisp/vc/ediff.el (ediff-current-file):
Update for revert-buffer-function no longer being nil by default.

10 years agoNEWS small edits
Glenn Morris [Wed, 2 Apr 2014 07:01:07 +0000 (00:01 -0700)]
NEWS small edits

10 years ago* lisp/simple.el (command-execute): Respect nil disabled-command-function.
Glenn Morris [Wed, 2 Apr 2014 06:53:10 +0000 (23:53 -0700)]
* lisp/simple.el (command-execute): Respect nil disabled-command-function.

10 years agoFix for command-execute handling of disabled commands
Nicolas Richard [Wed, 2 Apr 2014 06:51:59 +0000 (23:51 -0700)]
Fix for command-execute handling of disabled commands

* lisp/simple.el (command-execute): Do not execute the command when it
is disabled; fixes thinko in 2013-02-20 conversion from C.

Fixes: debbugs:17151

10 years agoPrevent assertion failure when trying to complete the prompt
Daniel Colascione [Tue, 1 Apr 2014 20:48:02 +0000 (13:48 -0700)]
Prevent assertion failure when trying to complete the prompt

10 years ago* fns.c (validate_subarray): Rename from validate_substring,
Paul Eggert [Tue, 1 Apr 2014 20:18:12 +0000 (13:18 -0700)]
* fns.c (validate_subarray): Rename from validate_substring,

since it works for vectors too.  New arg ARRAY.  Optimize for the
non-nil case.  Instead of returning bool, throw an error if out of
range, so that the caller needn't do that.  All uses changed.
Report original values if out of range.
(Fsubstring, Fsubstring_no_properties, secure_hash):
Also optimize the case where FROM is 0 or TO is the size.

10 years agoBackport cedet/ede/emacs.el change from trunk
Glenn Morris [Tue, 1 Apr 2014 16:27:59 +0000 (09:27 -0700)]
Backport cedet/ede/emacs.el change from trunk
In case anyone uses 24.4 to edit trunk Emacs sources

* lisp/cedet/ede/emacs.el (ede-emacs-version): Update AC_INIT regexp.

Fixes: debbugs:17160

10 years agoconfigure.ac comment
Glenn Morris [Tue, 1 Apr 2014 16:17:19 +0000 (09:17 -0700)]
configure.ac comment

10 years ago* lisp/cedet/ede/emacs.el (ede-emacs-version): Update AC_INIT regexp.
Glenn Morris [Tue, 1 Apr 2014 16:01:00 +0000 (09:01 -0700)]
* lisp/cedet/ede/emacs.el (ede-emacs-version): Update AC_INIT regexp.

Fixes: debbugs:17160

10 years ago* NEWS: `url-handler-mode' passes operations to Tramp for some protocols.
Michael Albinus [Tue, 1 Apr 2014 13:20:20 +0000 (15:20 +0200)]
* NEWS: `url-handler-mode' passes operations to Tramp for some protocols.

10 years agoPass some protocols to Tramp, like ssh and friends.
Michael Albinus [Tue, 1 Apr 2014 12:41:56 +0000 (14:41 +0200)]
Pass some protocols to Tramp, like ssh and friends.

* url-tramp.el: New file.

* url-handlers.el (url-handler-regexp): Add ssh, scp, rsync and telnet.
Add :version.
(url-file-handler): Call `url-tramp-file-handler' if appropriate.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Apr 2014 11:22:00 +0000 (07:22 -0400)]
Auto-commit of loaddefs files.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Apr 2014 10:17:57 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

10 years agoFix up some Version: headers that might confuse package.el
Glenn Morris [Mon, 31 Mar 2014 19:01:59 +0000 (15:01 -0400)]
Fix up some Version: headers that might confuse package.el

10 years agoRename some cedet Version: headers that can confuse package.el
Glenn Morris [Mon, 31 Mar 2014 17:01:19 +0000 (13:01 -0400)]
Rename some cedet Version: headers that can confuse package.el

Fixes: debbugs:17137

10 years ago* configure.ac: Make the final "Does Emacs use Gsettings" message
Glenn Morris [Mon, 31 Mar 2014 16:22:32 +0000 (09:22 -0700)]
* configure.ac: Make the final "Does Emacs use Gsettings" message
consistent with src/config.h.

10 years ago* fns.c (Fsubstring, Fsubstring_no_properties, secure_hash):
Dmitry Antipov [Mon, 31 Mar 2014 12:06:34 +0000 (16:06 +0400)]
* fns.c (Fsubstring, Fsubstring_no_properties, secure_hash):
Move common substring range checking code to...
(validate_substring): ...this function.

10 years ago* search.c (Freplace_match): Use make_specified_string.
Dmitry Antipov [Mon, 31 Mar 2014 07:13:58 +0000 (11:13 +0400)]
* search.c (Freplace_match): Use make_specified_string.
* xterm.c, w32term.c (x_set_glyph_string_gc): Use emacs_abort
to catch bogus override face of glyph strings.

10 years ago* nsmenu.m (free_frame_tool_bar): Set wait_for_tool_bar = NO
Jan Djärv [Mon, 31 Mar 2014 06:20:04 +0000 (08:20 +0200)]
* nsmenu.m (free_frame_tool_bar): Set wait_for_tool_bar = NO

Fixes: debbugs:16976

10 years ago* configure.ac: Fix errors from previous checkin (GSettings check).
Jan Djärv [Mon, 31 Mar 2014 06:08:29 +0000 (08:08 +0200)]
* configure.ac: Fix errors from previous checkin (GSettings check).
Backport from trunk.

10 years ago* configure.ac: Fix errors from previous checkin (GSettings check).
Jan Djärv [Mon, 31 Mar 2014 05:02:08 +0000 (07:02 +0200)]
* configure.ac: Fix errors from previous checkin (GSettings check).

10 years agoDiscuss using lazy completion tables for inline completion.
Daniel Colascione [Mon, 31 Mar 2014 02:25:02 +0000 (19:25 -0700)]
Discuss using lazy completion tables for inline completion.

10 years ago* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor
Leo Liu [Mon, 31 Mar 2014 01:31:17 +0000 (09:31 +0800)]
* emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor
out eldoc-documentation-function-default.
(eldoc-documentation-function-default): New function.
(eldoc-documentation-function): Change value.

10 years agoSync some vhdl changes that seem to have been missed from some previous merge
Glenn Morris [Mon, 31 Mar 2014 00:49:05 +0000 (17:49 -0700)]
Sync some vhdl changes that seem to have been missed from some previous merge

* lisp/progmodes/vhdl-mode.el (vhdl-speedbar-select-mra)
(vhdl-compose-components-package, vhdl-compose-configuration):
Abbreviate default-directory.

10 years ago* lisp/simple.el (cycle-spacing--context, cycle-spacing): Doc tweaks.
Glenn Morris [Mon, 31 Mar 2014 00:35:12 +0000 (17:35 -0700)]
* lisp/simple.el (cycle-spacing--context, cycle-spacing): Doc tweaks.

Include restoring manual line-breaks to state before 2014-03-28T16:26:15Z!mina86@mina86.com.

10 years agoSync with upstream vhdl mode v3.35.2.
Reto Zimmermann [Mon, 31 Mar 2014 00:22:29 +0000 (17:22 -0700)]
Sync with upstream vhdl mode v3.35.2.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-03/msg01137.html

* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(top-level): No longer require assoc.
(vhdl-asort, vhdl-anot-head-p, vhdl-aput, vhdl-adelete, vhdl-aget):
New functions.  Use throughout to replace aget etc.
(vhdl-aput-delete-if-nil): Rename from vhdl-aput.
(vhdl-update-file-contents): Update for vhdl-aput-delete-if-nil rename.
(vhdl-template-replace-header-keywords): Fix bug for "<title string>".
(vhdl-compile-init): Do not initialize regexps for Emacs 22+.
(vhdl-error-regexp-emacs-alist): Remove regexps from all compilers
except `vhdl-compiler'.
(vhdl-error-regexp-add-emacs): Remove all other compilers,
when appropriate.

10 years agovhdl-mode.el small fixup
Glenn Morris [Mon, 31 Mar 2014 00:08:55 +0000 (17:08 -0700)]
vhdl-mode.el small fixup

* lisp/progmodes/vhdl-mode.el (vhdl-expand-abbrev, vhdl-expand-paren):
Revert 2014-03-26 merge goof; go back to using defalias.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-03/msg01104.html

10 years ago* configure.ac: Include GFILENOTIFY objects in glib check (backport from trunk)
Daniel Colascione [Sun, 30 Mar 2014 23:59:19 +0000 (16:59 -0700)]
* configure.ac: Include GFILENOTIFY objects in glib check (backport from trunk)

Fixes: debbugs:17069

10 years agocompletion-in-region-mode improvements
Daniel Colascione [Sun, 30 Mar 2014 19:12:57 +0000 (12:12 -0700)]
completion-in-region-mode improvements

10 years agont/INSTALL: Minor fixes.
Eli Zaretskii [Sun, 30 Mar 2014 18:55:19 +0000 (21:55 +0300)]
nt/INSTALL: Minor fixes.

10 years agoAvoid flickering on frame creation with tool bar on OSX.
Jan Djärv [Sun, 30 Mar 2014 17:21:20 +0000 (19:21 +0200)]
Avoid flickering on frame creation with tool bar on OSX.

* nsmenu.m (update_frame_tool_bar): Return early if view or toolbar
is nil.  If waiting for toolbar to complete, force a redraw.

* nsterm.h (EmacsView): Add wait_for_tool_bar.

* nsterm.m (updateFrameSize:): If waiting for the tool bar and tool
bar is zero height, just return.
(initFrameFromEmacs:): Initialize wait_for_tool_bar.

Fixes: debbugs:16976

10 years agoIn x_set_window_size postpone calculation of default frame sizes (Bug#17142).
Martin Rudalics [Sun, 30 Mar 2014 13:31:45 +0000 (15:31 +0200)]
In x_set_window_size postpone calculation of default frame sizes (Bug#17142).

* frame.c (x_set_frame_parameters): Calculate default values of
new frame sizes only after all other frame parameters have been
processed (Bug#17142).

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 30 Mar 2014 11:24:54 +0000 (07:24 -0400)]
Auto-commit of loaddefs files.

10 years ago* configure.ac: Add check that GSettings is in libgio. Backport from trunk.
Jan Djärv [Sun, 30 Mar 2014 10:44:33 +0000 (12:44 +0200)]
* configure.ac: Add check that GSettings is in libgio. Backport from trunk.

Fixes: debbugs:17118

10 years ago* lisp/dired-aux.el (dired-compress-file): Don't use string-match-p
Juri Linkov [Sat, 29 Mar 2014 17:59:36 +0000 (19:59 +0200)]
* lisp/dired-aux.el (dired-compress-file): Don't use string-match-p
because its match data is used afterwards.

10 years ago* configure.ac: Add check that GSettings is in libgio.
Jan Djärv [Sat, 29 Mar 2014 12:08:47 +0000 (13:08 +0100)]
* configure.ac: Add check that GSettings is in libgio.

Fixes: debbugs:17118

10 years agoede autoload tweak
Glenn Morris [Sat, 29 Mar 2014 02:59:51 +0000 (19:59 -0700)]
ede autoload tweak

* lisp/cedet/ede/dired.el (ede-dired-minor-mode): Add autoload cookie.
(generated-autoload-file, generated-autoload-load-name):
Set file-local values.

* lisp/cedet/ede.el: Load ede/loaddefs at compile time too.
(ede-dired-minor-mode): Remove hand-written autoload.

10 years ago* lisp/speedbar.el: Remove some old commentary.
Glenn Morris [Sat, 29 Mar 2014 01:53:35 +0000 (21:53 -0400)]
* lisp/speedbar.el: Remove some old commentary.

10 years agoSet Maintainer to emacs-devel in some lisp/url files.
Glenn Morris [Sat, 29 Mar 2014 00:55:44 +0000 (20:55 -0400)]
Set Maintainer to emacs-devel in some lisp/url files.

10 years agoManage reftex's internal autoloads automatically
Glenn Morris [Sat, 29 Mar 2014 00:53:32 +0000 (20:53 -0400)]
Manage reftex's internal autoloads automatically

* lisp/textmodes/reftex.el: Manage most autoloads automatically.

* lisp/textmodes/reftex-auc.el, lisp/textmodes/reftex-cite.el:
* lisp/textmodes/reftex-dcr.el, lisp/textmodes/reftex-global.el:
* lisp/textmodes/reftex-index.el, lisp/textmodes/reftex-parse.el:
* lisp/textmodes/reftex-ref.el, lisp/textmodes/reftex-sel.el:
* lisp/textmodes/reftex-toc.el: Set generated-autoload-file,
and add autoload cookies for reftex.el.

* lisp/Makefile.in (AUTOGEN_VCS): Add textmodes/reftex.el.

10 years ago* (make-dist): Update AC_INIT regexp.
Glenn Morris [Sat, 29 Mar 2014 00:14:16 +0000 (20:14 -0400)]
* (make-dist): Update AC_INIT regexp.

10 years agoImprove usage of AC_INIT
Glenn Morris [Fri, 28 Mar 2014 23:11:39 +0000 (19:11 -0400)]
Improve usage of AC_INIT

* configure.ac (AC_INIT): Add "GNU" in package, add bug address.
(PACKAGE_BUGREPORT): Use it.

* src/emacs.c (emacs_version): Use PACKAGE_VERSION rather than VERSION.
(emacs_bugreport): New variable.
(usage_message): Use PACKAGE_BUGREPORT.
(syms_of_emacs) <report-emacs-bug-address>: New variable.

* lisp/cus-start.el (report-emacs-bug-address): Set custom properties.

* lisp/mail/emacsbug.el (report-emacs-bug-address):
Variable is now defined in emacs.c.

10 years ago* lisp/url/url-vars.el (url-bug-address): Make into an obsolete alias.
Glenn Morris [Fri, 28 Mar 2014 23:02:02 +0000 (19:02 -0400)]
* lisp/url/url-vars.el (url-bug-address): Make into an obsolete alias.

* lisp/urlurl-http.el (url-http-handle-authentication):
* lisp/url/url-news.el (url-news-fetch-message-id):
Use M-x report-emacs-bug in help messages.

10 years ago* lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version of
Stefan Monnier [Fri, 28 Mar 2014 22:47:46 +0000 (18:47 -0400)]
* lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version of
0 like nil.

10 years agoAdd system-configuration-features, summarising some configure results
Glenn Morris [Fri, 28 Mar 2014 22:03:42 +0000 (18:03 -0400)]
Add system-configuration-features, summarising some configure results

* configure.ac (ACL_SUMMARY): Rename from acl_summary, for consistency.
(EMACS_CONFIG_FEATURES): New define.

* src/emacs.c (syms_of_emacs) <system-configuration-features>: New var.

* lisp/mail/emacsbug.el (report-emacs-bug):
Include system-configuration-features.

* etc/NEWS: Mention this.

10 years ago* etc/CONTRIBUTE: Avoid being specific about countries.
Glenn Morris [Fri, 28 Mar 2014 19:44:37 +0000 (15:44 -0400)]
* etc/CONTRIBUTE: Avoid being specific about countries.
It's just liable to get outdated.

10 years ago* etc/CONTRIBUTE: Small updates
Glenn Morris [Fri, 28 Mar 2014 19:20:48 +0000 (15:20 -0400)]
* etc/CONTRIBUTE: Small updates

10 years ago* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Set to 10000. (Bug#17112)
Ken Brown [Fri, 28 Mar 2014 16:32:54 +0000 (12:32 -0400)]
* src/conf_post.h (SYSTEM_PURESIZE_EXTRA) [CYGWIN]: Set to 10000.  (Bug#17112)

10 years agoMake `cycle-spacing' behave more like `just-one-space' if colled once.
Michal Nazarewicz [Fri, 28 Mar 2014 16:26:15 +0000 (17:26 +0100)]
Make `cycle-spacing' behave more like `just-one-space' if colled once.

* simple.el (cycle-spacing): Never delete spaces on first run by
default, but do so in a new 'fast mode and if there are already
N spaces (the previous behaviour).

Compare N with its value in previous invocation so that changing
prefix argument restarts `cycle-spacing' sequence.

The idea is that with this change, binding M-SPC to
`cycle-spacing' should not introduce any changes in behaviour of
the binding so long as users do not type M-SPC twice in a raw with
the same prefix argument or lack thereof.

10 years agoAdd gnus-group-* faces.
Tassilo Horn [Fri, 28 Mar 2014 08:59:06 +0000 (09:59 +0100)]
Add gnus-group-* faces.

* etc/themes/tsdh-light-theme.el (tsdh-light): Add gnus-group-* faces.

10 years agoTweak earlier tty-run-terminal-initialization change
Glenn Morris [Fri, 28 Mar 2014 07:16:42 +0000 (00:16 -0700)]
Tweak earlier tty-run-terminal-initialization change

* lisp/faces.el (tty-run-terminal-initialization):
Use tty-find-type so that aliases are matched with the
hyphen and underscore stripping behavior.

10 years agoBackport NEWS tweak from trunk
Glenn Morris [Fri, 28 Mar 2014 01:43:01 +0000 (21:43 -0400)]
Backport NEWS tweak from trunk

10 years agoMake term-file-aliases into a defcustom; tweaks previous change
Glenn Morris [Fri, 28 Mar 2014 01:39:30 +0000 (21:39 -0400)]
Make term-file-aliases into a defcustom; tweaks previous change

10 years agoIntroduce `term-file-aliases', replacing some small lisp/term files
Glenn Morris [Fri, 28 Mar 2014 01:29:54 +0000 (21:29 -0400)]
Introduce `term-file-aliases', replacing some small lisp/term files

* lisp/faces.el (term-file-aliases): New variable.
(tty-run-terminal-initialization): Respect term-file-aliases.

* lisp/term/apollo.el, lisp/term/vt102.el, lisp/term/vt125.el:
* lisp/term/vt201.el, lisp/term/vt220.el, lisp/term/vt240.el:
* lisp/term/vt300.el, lisp/term/vt320.el, lisp/term/vt400.el:
* lisp/term/vt420.el: Remove files, replaced by aliases.

* lisp/term/README: Mention term-file-aliases.

* lisp/term/AT386.el, lisp/term/news.el, lisp/term/tvi970.el:
* lisp/term/vt100.el, lisp/term/wyse50.el: Remove obsolete comment.

* doc/emacs/custom.texi (Terminal Init): Mention term-file-aliases.

* doc/lispref/os.texi (Terminal-Specific): Mention term-file-aliases.

* etc/NEWS: Mention this.

10 years agoAdjust image background width on X11 accordingly when its x position is adjusted...
YAMAMOTO Mitsuharu [Fri, 28 Mar 2014 00:50:53 +0000 (09:50 +0900)]
Adjust image background width on X11 accordingly when its x position is adjusted. (Bug#17115)

10 years agoPort recent signal-related changes to FreeBSD.
Paul Eggert [Thu, 27 Mar 2014 22:52:14 +0000 (15:52 -0700)]
Port recent signal-related changes to FreeBSD.

Problem reported by Herbert J. Skuhra.
* lisp.h (block_tty_out_signal, unblock_tty_out_signal):
Move decls from here ...
* syssignal.h: ... to here, so that lisp.h doesn't depend on signal.h.

10 years ago* configure.ac: Suggest './configure MAKE=gmake' in diagnostic.
Paul Eggert [Thu, 27 Mar 2014 21:29:32 +0000 (14:29 -0700)]
* configure.ac: Suggest './configure MAKE=gmake' in diagnostic.

This tends to work better than 'MAKE=gmake ./configure' if later
builds run config.status etc.

10 years agoSimplify treatment of some startup hooks
Glenn Morris [Thu, 27 Mar 2014 20:57:23 +0000 (16:57 -0400)]
Simplify treatment of some startup hooks

* lisp/startup.el (inhibit-startup-hooks): Doc tweak.
(normal-top-level): Simplify running of hooks.
For window-setup-hook, respect inhibit-startup-hooks.
(command-line-1): Don't set window-setup-hook to nil.

10 years agoRequire GNU make to build Emacs
Glenn Morris [Thu, 27 Mar 2014 19:41:57 +0000 (15:41 -0400)]
Require GNU make to build Emacs

Ref: http://debbugs.gnu.org/16717#45
If no-one objects, we can then start getting rid of some of the
convoluted Makefile hacks that exist to support non-GNU makes.

* configure.ac: Require GNU make.
(HAVE_GNU_MAKE): Remove.

* INSTALL, etc/NEWS, etc/PROBLEMS: Update for this change.

* Makefile.in: Comment.

10 years agoAllow selective autoloading from lisp/obsolete directory
Glenn Morris [Thu, 27 Mar 2014 19:00:49 +0000 (15:00 -0400)]
Allow selective autoloading from lisp/obsolete directory

* lisp/Makefile.in (obsolete-autoloads): New rule.
(autoloads): Run obsolete-autoloads.

* lisp/obsolete/iswitchb.el (iswitchb-mode): Use obsolete-autoload.

* lisp/simple.el (iswitchb-mode): Remove hand-written autoloads.

10 years agoAdd vhdl-mode.info build rules
Glenn Morris [Thu, 27 Mar 2014 18:22:27 +0000 (14:22 -0400)]
Add vhdl-mode.info build rules

* doc/misc/Makefile.in (INFO_COMMON): Add vhdl-mode.
(vhdl_mode_deps, vhdl-mode, $(buildinfodir)/vhdl-mode$(INFO_EXT))
(vhdl-mode.dvi, vhdl-mode.pdf, vhdl-mode.html): New rules/variables.

10 years agovhdl-mode.texi clean-up
Glenn Morris [Thu, 27 Mar 2014 18:20:08 +0000 (14:20 -0400)]
vhdl-mode.texi clean-up

* doc/misc/vhdl-mode.texi: General clean-up.
Set copyright to FSF (years based on vhdl-mode releases), add license.
Remove hand-written node pointers.  Remove info re old Emacs versions.
Markup fixes.
(Getting Connected): Remove irrelevant info.
(Indentation Commands, Requirements): Remove empty/irrelevant nodes.
(Frequently Asked Questions): Electric indent is now enabled.

10 years ago* doc/misc/vhdl-mode.texi: New file, imported from upstream vhdl-mode.
Rod Whitby [Thu, 27 Mar 2014 18:18:15 +0000 (14:18 -0400)]
* doc/misc/vhdl-mode.texi: New file, imported from upstream vhdl-mode.

10 years agoMerge from emacs-24; up to 2014-03-24T03:06:35Z!dancol@dancol.org
Juanma Barranquero [Thu, 27 Mar 2014 17:34:22 +0000 (18:34 +0100)]
Merge from emacs-24; up to 2014-03-24T03:06:35Z!dancol@dancol.org

10 years agoFix bug #17115 with displaying on w32 images that have 'box' face.
YAMAMOTO Mitsuharu [Thu, 27 Mar 2014 16:25:17 +0000 (18:25 +0200)]
Fix bug #17115 with displaying on w32 images that have 'box' face.

 src/w32term.c (x_draw_image_glyph_string): Fix computation of height
 and width of image background when it is displayed with a 'box'
 face.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
Dmitry Gutov [Thu, 27 Mar 2014 08:21:15 +0000 (10:21 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
special globals with font-lock-builtin-face.

Fixes: debbugs:17057

10 years agoFix bug#17097
Dmitry Gutov [Thu, 27 Mar 2014 06:53:13 +0000 (08:53 +0200)]
Fix bug#17097

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Don't propertize `?' or `!' as symbol constituent when after
colon.

10 years agosrc/image.c: Avoid partial load of SVG libraries.
Juanma Barranquero [Thu, 27 Mar 2014 01:17:54 +0000 (02:17 +0100)]
src/image.c: Avoid partial load of SVG libraries.

(init_svg_functions): When loading SVG-related libraries,
free already loaded libraries if the initialization fails.
(rsvg_handle_set_size_callback): Remove declaration, unused.

10 years agolisp/frameset.el: Fix bug#17046.
Juanma Barranquero [Thu, 27 Mar 2014 01:01:36 +0000 (02:01 +0100)]
lisp/frameset.el: Fix bug#17046.

(frameset--restore-frame): Remove workaround for bug#14795
which is no longer needed and causes trouble in GTK builds.

10 years agolisp/emacs-lisp/package-x.el: Follow-up to change in package.el.
Juanma Barranquero [Thu, 27 Mar 2014 00:20:50 +0000 (01:20 +0100)]
lisp/emacs-lisp/package-x.el: Follow-up to change in package.el.

(package--archive-contents-from-url): Use url-insert-file-contents;
package-handle-response no longer exists.

10 years agoProvide command for deleting processes from list-processes buffer
Daniel Colascione [Wed, 26 Mar 2014 21:01:47 +0000 (14:01 -0700)]
Provide command for deleting processes from list-processes buffer

10 years agoMore backward-compatible fix to char-equal core dump.
Paul Eggert [Wed, 26 Mar 2014 17:55:31 +0000 (10:55 -0700)]
More backward-compatible fix to char-equal core dump.

* editfns.c (Fchar_equal): In unibyte buffers, assume values in
range 128-255 are raw bytes.  Suggested by Eli Zaretskii.

Fixes: debbugs:17011

10 years agoMerge from emacs-24; up to 2014-03-23T23:14:52Z!yamaoka@jpl.org
Juanma Barranquero [Wed, 26 Mar 2014 15:57:13 +0000 (16:57 +0100)]
Merge from emacs-24; up to 2014-03-23T23:14:52Z!yamaoka@jpl.org

10 years ago* lisp/emacs-lisp/package.el: Fix bug#16733 (again).
Juanma Barranquero [Wed, 26 Mar 2014 15:21:17 +0000 (16:21 +0100)]
* lisp/emacs-lisp/package.el: Fix bug#16733 (again).
  (url-http-parse-response, url-http-end-of-headers, url-recreate-url)
  (url-http-target-url): Remove unused declarations.
  (package-handle-response): Remove.
  (package--with-work-buffer): Use url-insert-file-contents and simplify.
  (package--download-one-archive): Use current-buffer instead of
  dynamic binding of `buffer'.
  (describe-package-1): Do not decode readme-string.

* lisp/url/url-handlers.el (url-http-parse-response): Add autoload.
  (url-insert-file-contents): Signal file-error in case of HTTP error.

10 years agoFix wrong timestamp.
Michael Albinus [Wed, 26 Mar 2014 13:02:16 +0000 (14:02 +0100)]
Fix wrong timestamp.

10 years agosrc/*.c: Silence a few warnings about unused vars and functions.
Juanma Barranquero [Wed, 26 Mar 2014 10:21:55 +0000 (11:21 +0100)]
src/*.c: Silence a few warnings about unused vars and functions.

* src/image.c (x_bitmap_height, x_bitmap_width) [HAVE_X_WINDOWS]:
* src/sysdep.c (reset_sigio) [!DOS_NT]: Declare conditionally.

* src/keyboard.c (read_decoded_event_from_main_queue): #ifdef out
  variables on Windows.

* src/w32.c (unsetenv): Remove unused var `retval'.
  (emacs_gnutls_pull): Remove unused vars `fdset' and `timeout'.

* src/w32fns.c (Ffile_system_info): Use parenthesis in and/or expression.

* src/w32notify.c (watch_worker): Remove unnecesary var sleep_result.
  (start_watching): Remove unused var `thr'.

* src/w32proc.c (sys_spawnve): Comment out unused vars `first', `last'.
  (find_child_console): Remove unnecesary var `thread_id'.

* src/w32term.c (w32_read_socket): Comment out unused vars `row', `columns'.
  (x_focus_frame): #ifdef 0 unused variable `dpyinfo'.

10 years agoFix core dump in char-equal.
Paul Eggert [Wed, 26 Mar 2014 05:35:38 +0000 (22:35 -0700)]
Fix core dump in char-equal.

* editfns.c (Fchar_equal): Do not use MAKE_CHAR_MULTIBYTE in
unibyte buffers, as we can't tell whether the characters are
actually unibyte.

Fixes: debbugs:17011

10 years agoMerge from gnulib.
Paul Eggert [Wed, 26 Mar 2014 04:16:13 +0000 (21:16 -0700)]
Merge from gnulib.

This incorporates:
2014-03-26 strftime: wrap macros in "do {...} while(0)"
* lib/strftime.c, doc/misc/texinfo.tex: Update from gnulib.

10 years ago* insdel.c (adjust_markers_for_delete): Remove unused local.
Paul Eggert [Wed, 26 Mar 2014 04:07:25 +0000 (21:07 -0700)]
* insdel.c (adjust_markers_for_delete): Remove unused local.

10 years agoFix previous ChangeLog entry
Glenn Morris [Wed, 26 Mar 2014 04:02:27 +0000 (21:02 -0700)]
Fix previous ChangeLog entry

10 years agoSync with upstream vhdl mode v3.35.1
Reto Zimmermann [Wed, 26 Mar 2014 03:58:25 +0000 (20:58 -0700)]
Sync with upstream vhdl mode v3.35.1

* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(vhdl-compiler-alist): Doc fix.
(vhdl-goto-line): Remove.
(vhdl-mode-abbrev-table-init): Add XEmacs compat.
(vhdl-mode) <paragraph-start>: Fix value.
(vhdl-fix-statement-region): Not `for' in wait-statement.
(vhdl-beautify-region): Also (un)tabify.
(vhdl-get-visible-signals):
Scan declarative part of generate statements.
(vhdl-template-record): Fix indentation for record type declaration.
(vhdl-expand-abbrev, vhdl-expand-paren): FIXME.
(vhdl-scan-directory-contents): Tweak.
(vhdl-speedbar-find-file, vhdl-speedbar-port-copy)
(vhdl-compose-components-package):
Replace vhdl-goto-line with forward-line.
(top-level): Tweak speedbar frame selection.
(vhdl-generate-makefile-1): Support for compilers with no
unit-to-file name mapping (create directory with dummy files).

10 years agoSync with upstream verilog-mode revision 702457d
Wilson Snyder [Wed, 26 Mar 2014 03:18:47 +0000 (20:18 -0700)]
Sync with upstream verilog-mode revision 702457d

* lisp/progmodes/verilog-mode.el (verilog-mode-version): Update.
(create-lockfiles): Declare.
(verilog-read-decls): Fix module header imports, bug709.
Reported by Victor Lau.
Fix parsing 'var' in AUTOs, msg1294.  Reported by Dominique Chen.
(verilog-auto-inout-module): Fix AUTOINOUTMODULE not inserting
interface-only modules, bug721.  Reported by Dean Hoyt.

10 years agoMake gulp.el obsolete
Glenn Morris [Wed, 26 Mar 2014 01:41:13 +0000 (21:41 -0400)]
Make gulp.el obsolete

* lisp/obsolete/gulp.el: Move here from emacs-lisp/.

* doc/emacs/ack.texi (Acknowledgments): Remove reference to obsolete file.

10 years agoDoc tweaks related to file locking
Glenn Morris [Wed, 26 Mar 2014 01:24:01 +0000 (21:24 -0400)]
Doc tweaks related to file locking

* doc/lispref/files.texi (File Locks): All systems support locking.

* src/filelock.c (Flock_buffer): Doc tweak.

10 years agoRemove the build-time option CLASH_DETECTION
Glenn Morris [Wed, 26 Mar 2014 01:14:44 +0000 (21:14 -0400)]
Remove the build-time option CLASH_DETECTION

Every platform supports it, and the runtime option `create-lockfiles'
replaces it.

* configure.ac (CLASH_DETECTION): Remove option.

* lisp/files.el (lock-buffer, unlock-buffer, file-locked-p):
Remove fallback aliases, since they are always defined now.

* src/buffer.c (Frestore_buffer_modified_p, Fkill_buffer):
* src/emacs.c (shut_down_emacs):
* src/fileio.c (Finsert_file_contents, write_region):
* src/filelock.c (top-level, syms_of_filelock):
* src/insdel.c (prepare_to_modify_buffer_1):
CLASH_DETECTION is always defined now.

* admin/CPP-DEFINES: Remove CLASH_DETECTION.

10 years agoAddendum to: Undo in region after markers in undo history relocated
Barry O'Reilly [Tue, 25 Mar 2014 23:30:08 +0000 (19:30 -0400)]
Addendum to: Undo in region after markers in undo history relocated

* simple.el (primitive-undo): Correction to 2014-03-24 change.

Fixes: debbugs:16818

10 years agoImprove doc of file-symlink-p per bug #17073.
Eli Zaretskii [Tue, 25 Mar 2014 16:08:45 +0000 (18:08 +0200)]
Improve doc of file-symlink-p per bug #17073.

 doc/lispref/files.texi (Kinds of Files): Improve documentation of
 file-symlink-p.  Add cross-references.

10 years agoSpeed up thread startup on MS-Windows.
Eli Zaretskii [Tue, 25 Mar 2014 16:00:37 +0000 (18:00 +0200)]
Speed up thread startup on MS-Windows.

 src/w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the
 DLL handle, to speed up thread startup.