bpt/emacs.git
10 years ago* lisp/subr.el (version<, version<=, version=):
Bozhidar Batsov [Mon, 4 Nov 2013 14:09:36 +0000 (16:09 +0200)]
* lisp/subr.el (version<, version<=, version=):
Update docstrings with information for snapshot versions.

10 years ago* lisp/helpers.el: New library for misc helper functions.
Bozhidar Batsov [Mon, 4 Nov 2013 13:10:49 +0000 (15:10 +0200)]
* lisp/helpers.el: New library for misc helper functions.
(hash-table-keys): New function returning a list of hash keys.
(hash-table-values): New function returning a list of hash values.

10 years ago* test/indent/ruby.rb: Move a now-successful example.
Dmitry Gutov [Mon, 4 Nov 2013 11:04:50 +0000 (13:04 +0200)]
* test/indent/ruby.rb: Move a now-successful example.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
Dmitry Gutov [Mon, 4 Nov 2013 10:50:47 +0000 (12:50 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize heredocs as semicolons.

* test/automated/ruby-mode-tests.el: Remove outdated comment.

* test/indent/ruby.rb: Add a statement on the line after heredoc.

10 years agoPort to stricter C99 platforms.
Paul Eggert [Mon, 4 Nov 2013 06:09:03 +0000 (22:09 -0800)]
Port to stricter C99 platforms.

Especially, C99 prohibits nesting a struct X inside struct Y if
struct X has a flexible array member.
Also, merge from gnulib, incorporating:
2013-11-03 intprops: port to Oracle Studio c99
* lib/intprops.h: Update from gnulib.
* src/alloc.c (struct sdata): New type.
(sdata): Implement in terms of struct sdata.
Remove u member; all uses replaced by next_vector, set_next_vector.
(SDATA_SELECTOR, SDATA_DATA, SDATA_DATA_OFFSET): Adjust to sdata change.
(SDATA_DATA_OFFSET): Now a constant, not a macro.
(struct sblock): Rename first_data member to data, which is now
a flexible array member.  All uses changed.
(next_vector, set_next_vector, large_vector_vec): New functions.
(vector_alignment): New constant.
(roundup_size): Make it a multiple of ALIGNOF_STRUCT_LISP_VECTOR, too.
(struct large-vector): Now merely a NEXT member, since the old approach
ran afoul of stricter C99.  All uses changed to use
large_vector_vec or large_vector_offset.
(large_vector_offset): New constant.
* src/dispnew.c: Include tparam.h, for tgetent.
Do not include term.h; no longer needed.
* src/gnutls.c (Fgnutls_boot): Don't continue after calling a _Noreturn.
* src/lisp.h (ENUM_BF) [__SUNPRO_C && __STDC__]: Use unsigned int.
(struct Lisp_Vector): Use a flexible array member for contents,
instead of a union with a member that is an array of size 1.
All uses changed.
(ALIGNOF_STRUCT_LISP_VECTOR): New constant, to make up for the
fact that the struct no longer contains a union.
(struct Lisp_Misc_Any, struct Lisp_Marker, struct Lisp_Overlay)
(struct Lisp_Save_Value, struct Lisp_Free):
Use unsigned, not int, for spacers, to avoid c99 warning.
(union specbinding): Use unsigned, not bool, for bitfield, as
bool is not portable to pre-C99 hosts.

10 years ago* lisp/textmodes/fill.el (fill-single-char-nobreak-p): New function
Michal Nazarewicz [Mon, 4 Nov 2013 04:29:59 +0000 (23:29 -0500)]
* lisp/textmodes/fill.el (fill-single-char-nobreak-p): New function
checking whether point is after a 1-letter word.

10 years ago* lisp/progmodes/cperl-mode.el (cperl-font-lock-fontify-region-function):
Nathan Trapuzzano [Mon, 4 Nov 2013 03:44:23 +0000 (22:44 -0500)]
* lisp/progmodes/cperl-mode.el (cperl-font-lock-fontify-region-function):
Don't infloop when expanding region over `multiline' syntax-type that
begins a line.

Fixes: debbugs:15778

10 years ago* lisp/rect.el (rectangle-mark-mode): Rename from rectangle-mark.
Stefan Monnier [Mon, 4 Nov 2013 03:06:54 +0000 (22:06 -0500)]
* lisp/rect.el (rectangle-mark-mode): Rename from rectangle-mark.
Make it into a proper minor mode.
(rectangle--region): (implicitly) rename to rectangle-mark-mode.
(rectangle-mark-mode-map): New keymap.
(rectangle--highlight-for-redisplay): Fix some corner cases.

Fixes: debbugs:15796

10 years ago* test/automated/Makefile.in (abs_srcdir): Remove.
Glenn Morris [Mon, 4 Nov 2013 01:48:08 +0000 (17:48 -0800)]
* test/automated/Makefile.in (abs_srcdir): Remove.
(emacs): Unset EMACSLOADPATH.
(.el.elc, check): Use -L to append srcdir to load-path.

10 years ago* src/emacs.c (usage_message): Mention that `-L :...' appends.
Glenn Morris [Mon, 4 Nov 2013 01:38:16 +0000 (17:38 -0800)]
* src/emacs.c (usage_message): Mention that `-L :...' appends.

10 years ago* lisp/startup.el (command-line-1): Allow `-L :...' to append to load-path.
Glenn Morris [Mon, 4 Nov 2013 01:36:14 +0000 (17:36 -0800)]
* lisp/startup.el (command-line-1): Allow `-L :...' to append to load-path.

* doc/emacs/cmdargs.texi (Action Arguments): Mention that `-L :...' appends.

* etc/NEWS: Mention this.

10 years ago* lisp/emacs-lisp/smie.el (smie-rule-parent): Always call
Stefan Monnier [Sun, 3 Nov 2013 22:56:03 +0000 (17:56 -0500)]
* lisp/emacs-lisp/smie.el (smie-rule-parent): Always call
smie-indent-virtual rather than only for hanging tokens.
(smie--next-indent-change): New helper command.
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): Remove.
(ruby-smie-rules): Use smie-rule-parent instead.

10 years ago* cedet/semantic/lex.el (semantic-lex-start-block)
Johan Bockgård [Sun, 3 Nov 2013 21:51:25 +0000 (22:51 +0100)]
* cedet/semantic/lex.el (semantic-lex-start-block)
(semantic-lex-end-block): Move after definition of
semantic-lex-token macro.

10 years agoUnset EMACSLOADPATH in some Makefiles rather than setting it to the default
Glenn Morris [Sun, 3 Nov 2013 19:25:29 +0000 (11:25 -0800)]
Unset EMACSLOADPATH in some Makefiles rather than setting it to the default

* leim/Makefile.in (abs_srcdir): Remove.
(RUN_EMACS): Unset EMACSLOADPATH.

* lisp/Makefile.in (abs_srcdir): Remove.
(emacs): Unset EMACSLOADPATH.

10 years ago* src/Makefile.in (bootstrap_exe): Use relative filename.
Glenn Morris [Sat, 2 Nov 2013 23:49:54 +0000 (16:49 -0700)]
* src/Makefile.in (bootstrap_exe): Use relative filename.
(abs_builddir): Remove.

10 years ago* lisp/Makefile.in (abs_top_builddir): Remove
Glenn Morris [Sat, 2 Nov 2013 23:39:49 +0000 (16:39 -0700)]
* lisp/Makefile.in (abs_top_builddir): Remove

10 years agoComment markup fix
Glenn Morris [Sat, 2 Nov 2013 23:37:59 +0000 (16:37 -0700)]
Comment markup fix

10 years ago* doc/emacs/cmdargs.texi (Action Arguments): Clarify `-L' a bit.
Glenn Morris [Sat, 2 Nov 2013 23:36:32 +0000 (16:36 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify `-L' a bit.

10 years ago* doc/emacs/cmdargs.texi (Action Arguments): Clarify that `-L' prepends
Glenn Morris [Sat, 2 Nov 2013 23:29:01 +0000 (16:29 -0700)]
* doc/emacs/cmdargs.texi (Action Arguments): Clarify that `-L' prepends

10 years agotest/automated: Use relative filename for emacs executable
Glenn Morris [Sat, 2 Nov 2013 20:54:08 +0000 (13:54 -0700)]
test/automated: Use relative filename for emacs executable

* Makefile.in (check): Depend on all.

* test/automated/Makefile.in (abs_top_builddir): Remove variable.
(EMACS): Use a relative file name.
(lisp-compile): Remove (assume it's up-to-date).
(compile-main): Do not run lisp-compile.
(check): Use --chdir.

10 years agotest/automated/Makefile.in remove stuff unnecessarily copied from lisp
Glenn Morris [Sat, 2 Nov 2013 20:32:22 +0000 (13:32 -0700)]
test/automated/Makefile.in remove stuff unnecessarily copied from lisp

* test/automated/Makefile.in (abs_top_srcdir): Remove variable.
(emacs): Use abs_srcdir rather than abs_top_srcdir.
(doit, compile, compile-always): Remove stuff copied from lisp/.
(all, check, bootstrap-clean, distclean, maintainer-clean): Declare PHONY.

Remove comments copied from lisp/.

10 years ago* leim/Makefile.in (buildlisppath): Remove.
Glenn Morris [Sat, 2 Nov 2013 20:30:13 +0000 (13:30 -0700)]
* leim/Makefile.in (buildlisppath): Remove.
(RUN_EMACS): Use abs_srcdir directly.

10 years agoFix commentary in lisp/Makefile.in.
Eli Zaretskii [Sat, 2 Nov 2013 20:12:59 +0000 (22:12 +0200)]
Fix commentary in lisp/Makefile.in.

10 years ago* test/automated/Makefile.in (abs_srcdir): New, set by configure.
Glenn Morris [Sat, 2 Nov 2013 20:12:12 +0000 (13:12 -0700)]
* test/automated/Makefile.in (abs_srcdir): New, set by configure.

10 years ago* lisp/Makefile.in (EMACS): Use a relative filename.
Glenn Morris [Sat, 2 Nov 2013 20:05:15 +0000 (13:05 -0700)]
* lisp/Makefile.in (EMACS): Use a relative filename.
(custom-deps, finder-data, autoloads): Use --chdir.

10 years ago* automated/Makefile.in (test): Remove variable.
Glenn Morris [Sat, 2 Nov 2013 19:56:54 +0000 (12:56 -0700)]
* automated/Makefile.in (test): Remove variable.
(compile-main, compile-clean, compile-always, bootstrap-clean)
(check): Use srcdir rather than $test.  Check cd return value.
(compile-always): Depend on bootstrap-clean.

10 years agoMinor simplifications for test/automated/Makefile
Glenn Morris [Sat, 2 Nov 2013 19:50:41 +0000 (12:50 -0700)]
Minor simplifications for test/automated/Makefile

* test/automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp):
Remove variables.
(emacs): Use abs_top_srcdir, abs_srcdir rather than abs_lispsrc, abs_test.
(lisp-compile): Use ../../lisp rather than $lisp.

10 years ago* lisp/Makefile.in (abs_lisp): Remove, replace by abs_srcdir
Glenn Morris [Sat, 2 Nov 2013 19:43:11 +0000 (12:43 -0700)]
* lisp/Makefile.in (abs_lisp): Remove, replace by abs_srcdir

10 years agoUse relative filenames in TAGS files.
Glenn Morris [Sat, 2 Nov 2013 19:41:33 +0000 (12:41 -0700)]
Use relative filenames in TAGS files.

* src/Makefile.in (abs_srcdir): Remove it again.
(.PHONY): Remove frc.
(maintainer-clean): No more TAGS-LISP file.
(TAGS): Pass relative file names to etags.
(../lisp/TAGS): Rename from TAGS-LISP.  Work in ../lisp.

* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4, TAGS): Use relative file names.
(TAGS-LISP): Remove.
(maintainer-clean): No more TAGS-LISP file.

* lwlib/Makefile.in (abs_srcdir): Remove it again.
(ctagsfiles, TAGS): Use relative filenames.

* .bzrignore: Remove TAGS-LISP.

10 years ago* src/Makefile.in (lispdir): Remove.
Glenn Morris [Sat, 2 Nov 2013 19:23:45 +0000 (12:23 -0700)]
* src/Makefile.in (lispdir): Remove.
(TAGS-LISP): Replace lispdir with its expansion.

10 years agoSmall Makefile cleanup mainly related to tags file generation
Glenn Morris [Sat, 2 Nov 2013 19:18:50 +0000 (12:18 -0700)]
Small Makefile cleanup mainly related to tags file generation

* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo.  That should be in the
top-level Makefile, if anywhere.  Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.

* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first.  Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.

* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles.  Use absolute filenames again.

10 years ago* lisp/ChangeLog: Fix a typo.
Bozhidar Batsov [Sat, 2 Nov 2013 14:58:38 +0000 (16:58 +0200)]
* lisp/ChangeLog: Fix a typo.

10 years ago* xfaces.c (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg.
Jan Djärv [Sat, 2 Nov 2013 13:14:55 +0000 (14:14 +0100)]
* xfaces.c (realize_default_face): Set DISTANT_FOREGROUND to unspecified_fg.

10 years agoNEWS tweak
Xue Fuqiao [Sat, 2 Nov 2013 11:37:14 +0000 (19:37 +0800)]
NEWS tweak

10 years ago* lisp/emacs-lisp/package.el (package-version-join): Recognize snapshot versions.
Bozhidar Batsov [Sat, 2 Nov 2013 10:55:22 +0000 (12:55 +0200)]
* lisp/emacs-lisp/package.el (package-version-join): Recognize snapshot versions.

10 years ago* subr.el (version-regexp-alist): Add support for snapshot versions.
Bozhidar Batsov [Sat, 2 Nov 2013 09:48:11 +0000 (11:48 +0200)]
* subr.el (version-regexp-alist): Add support for snapshot versions.

10 years ago* xfaces.c (check_lface_attrs, realize_default_face): Add
Jan Djärv [Sat, 2 Nov 2013 07:58:54 +0000 (08:58 +0100)]
* xfaces.c (check_lface_attrs, realize_default_face): Add
LFACE_DISTANT_FOREGROUND_INDEX.

Fixes: debbugs:15788

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
Dmitry Gutov [Sat, 2 Nov 2013 05:18:11 +0000 (09:18 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New
function, replacement for `smie-rule-parent' for when we want to
skip over our direct parent if it's an assignment token..
(ruby-smie-rules): Use it.

10 years ago* emacs.c (original_pwd): Remove global var by making it local.
Paul Eggert [Sat, 2 Nov 2013 02:11:37 +0000 (19:11 -0700)]
* emacs.c (original_pwd): Remove global var by making it local.

(init_cmdargs): New arg ORIGINAL_PWD; caller changed.

10 years ago* lisp/progmodes/ruby-mode.el Use `syntax-propertize-function'
Dmitry Gutov [Sat, 2 Nov 2013 01:10:10 +0000 (05:10 +0400)]
* lisp/progmodes/ruby-mode.el Use `syntax-propertize-function'
unconditionally.  Remove now unnecessary forward declarations.
Remove XEmacs-specific setup.
(ruby-here-doc-end-re, ruby-here-doc-beg-match)
(ruby-font-lock-syntactic-keywords)
(ruby-comment-beg-syntax, ruby-in-here-doc-p)
(ruby-here-doc-find-end, ruby-here-doc-beg-syntax)
(ruby-here-doc-end-syntax): Remove.
(ruby-mode): Don't check whether `syntax-propertize-rules' is
defined as function.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-variables, ruby-mode): Use `setq-local'.
Bozhidar Batsov [Sat, 2 Nov 2013 00:17:54 +0000 (04:17 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-variables, ruby-mode): Use `setq-local'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't set syntax
Bozhidar Batsov [Fri, 1 Nov 2013 23:55:15 +0000 (03:55 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-variables): Don't set syntax
table and abbrev table, `define-derived-mode' does that for us
anyway.

10 years ago* lisp/Makefile.in: Remove manual mh-e dependencies
Glenn Morris [Fri, 1 Nov 2013 17:26:29 +0000 (13:26 -0400)]
* lisp/Makefile.in: Remove manual mh-e dependencies
(writing .elc files is atomic for some time,
so no parallel compilation issues)

10 years agoAdd :distant-foreground to faces.
Jan Djärv [Fri, 1 Nov 2013 15:47:10 +0000 (16:47 +0100)]
Add :distant-foreground to faces.

* doc/lispref/display.texi (Face Attributes): Document :distant-foreground.

* etc/NEWS: Mention :distant-foreground.

* lisp/faces.el (face-x-resources): Add :distant-foreground.
(region): Use :distant-foreground for gtk and ns.

* src/dispextern.h (lface_attribute_index): Add
LFACE_DISTANT_FOREGROUND_INDEX.

* src/xfaces.c: Declare color_distance.
(QCdistant_foreground): New variable.
(NEAR_SAME_COLOR_THRESHOLD): New define.
(load_color2): New function.
(load_color): Call load_color2.
(load_face_colors): Call load_color2 and if distant-color is specified
calculate distant and use distant-color if colors are near.
(LFACE_DISTANT_FOREGROUND): New define.
(merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_get_lisp_face_attribute)
(x_supports_face_attributes_p): Handle distant-foreground similar to
foreground.
(syms_of_xfaces): DEFSYM QCdistant_foreground.

10 years agoAllow multiple bibliographies when BibLaTeX is used rathen than
Tassilo Horn [Fri, 1 Nov 2013 10:27:21 +0000 (11:27 +0100)]
Allow multiple bibliographies when BibLaTeX is used rathen than
BibTeX.
* textmodes/reftex-parse.el (reftex-using-biblatex-p): New function.
(reftex-locate-bibliography-files): Us it.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Nov 2013 10:21:34 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

10 years agoAuto-commit of generated files.
Glenn Morris [Fri, 1 Nov 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoFix whitespace in src/casefiddle.c.
Eli Zaretskii [Fri, 1 Nov 2013 10:00:47 +0000 (12:00 +0200)]
Fix whitespace in src/casefiddle.c.

10 years agoFix ChangeLog entry of last commit.
Claudio Bley [Fri, 1 Nov 2013 09:18:39 +0000 (11:18 +0200)]
Fix ChangeLog entry of last commit.

10 years agoFix handling of comments in NetPBM image files.
Claudio Bley [Fri, 1 Nov 2013 09:10:13 +0000 (11:10 +0200)]
Fix handling of comments in NetPBM image files.

 src/image.c (pbm_next_char): New function.
 (pbm_scan_number): Use it.

 lisp/image.el (image-type-header-regexps): Fix the 'pbm' part to
 allow comments in pbm files.

10 years agolisp/term/w32-win.el (dynamic-library-alist): Support libtiff v4.x on w32.
Claudio Bley [Fri, 1 Nov 2013 09:04:16 +0000 (11:04 +0200)]
lisp/term/w32-win.el (dynamic-library-alist): Support libtiff v4.x on w32.

10 years agoSupport libpng DLLs of versions beyond 1.4.x on MS-Windows.
Claudio Bley [Fri, 1 Nov 2013 08:57:55 +0000 (10:57 +0200)]
Support libpng DLLs of versions beyond 1.4.x on MS-Windows.

 lisp/term/w32-win.el (dynamic-library-alist): Support versions of
 libpng beyond 1.4.x.

10 years agoSupport newer versions of libjpeg on MS-Windows.
Claudio Bley [Fri, 1 Nov 2013 08:52:22 +0000 (10:52 +0200)]
Support newer versions of libjpeg on MS-Windows.

 src/image.c (Qlibjpeg_version): New variable.
 (syms_of_image): DEFSYM and initialize it.

 lisp/term/w32-win.el (dynamic-library-alist): Support newer versions
 of libjpeg starting with v7: look only for the DLL from the
 version against which Emacs was built.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-indent-tabs-mode)
Bozhidar Batsov [Fri, 1 Nov 2013 03:35:35 +0000 (07:35 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-indent-tabs-mode)
(ruby-indent-level, ruby-comment-column, ruby-deep-arglist):
Add property :safe.
(ruby-deep-arglist): Add property :type.

10 years ago* configure.ac: Use [!...] rather than [^...], for ksh. (Bug#15769)
Glenn Morris [Thu, 31 Oct 2013 21:39:10 +0000 (17:39 -0400)]
* configure.ac: Use [!...] rather than [^...], for ksh.  (Bug#15769)

10 years ago* automated/ert-tests.el (ert-test-stats-set-test-and-result):
Michael Albinus [Thu, 31 Oct 2013 13:31:22 +0000 (14:31 +0100)]
* automated/ert-tests.el (ert-test-stats-set-test-and-result):
Add a skipping test.

10 years ago* emacs.c (main): Skip -psn args on OSX even if ! isatty (0).
Jan Djärv [Thu, 31 Oct 2013 08:32:42 +0000 (09:32 +0100)]
* emacs.c (main): Skip -psn args on OSX even if ! isatty (0).

10 years ago* lisp/Makefile.in (custom-deps, finder-data): No need to setq the target
Glenn Morris [Thu, 31 Oct 2013 07:27:35 +0000 (00:27 -0700)]
* lisp/Makefile.in (custom-deps, finder-data): No need to setq the target
variables, we are in the right directory and the defaults work fine.

10 years agoFix setting of invocation-directory with --chdir and relative argv[0]
Glenn Morris [Thu, 31 Oct 2013 07:18:42 +0000 (00:18 -0700)]
Fix setting of invocation-directory with --chdir and relative argv[0]

* src/emacs.c (original_pwd): New char.
(main): If using --chdir, store original_pwd.
(init_cmdargs): When setting Vinvocation_directory based on a
relative argv[0], use original_pwd if set.

Fixes: debbugs:15768

10 years ago* semantic/idle.el (semantic-idle-symbol-highlight)
Barry O'Reilly [Thu, 31 Oct 2013 01:50:24 +0000 (21:50 -0400)]
* semantic/idle.el (semantic-idle-symbol-highlight)
(semantic-idle-symbol-highlight-face): Define face with defface
and obsolete the replaced one defined with defvar.  (Bug#15745)
* pulse.el (pulse-momentary-highlight-overlay)
(pulse-momentary-highlight-region): Fix typo in doc

10 years ago* lisp/Makefile.in (autoloads): Fix thinko in previous
Glenn Morris [Thu, 31 Oct 2013 00:40:46 +0000 (20:40 -0400)]
* lisp/Makefile.in (autoloads): Fix thinko in previous

10 years ago* lisp/Makefile.in (autoloads): Do not use abs_lisp.
Glenn Morris [Wed, 30 Oct 2013 20:27:35 +0000 (16:27 -0400)]
* lisp/Makefile.in (autoloads): Do not use abs_lisp.

This should stop recent weirdness, eg:
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00381.html

* lisp/emacs-lisp/autoload.el: Comment.

10 years ago* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
Glenn Morris [Wed, 30 Oct 2013 20:03:07 +0000 (16:03 -0400)]
* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads):
`newline' does not respect `standard-output', so use `princ'.

Otherwise you can get \n inserted in the wrong buffer, eg
http://lists.gnu.org/archive/html/emacs-diffs/2013-10/msg00379.html

10 years agohtmlfontify.el: remove duplicate Version: header
Glenn Morris [Wed, 30 Oct 2013 19:35:14 +0000 (15:35 -0400)]
htmlfontify.el: remove duplicate Version: header

10 years agoEnsure unmarking in buffer menu clears 'S' marks. (Bug#15761)
Alp Aker [Wed, 30 Oct 2013 18:35:19 +0000 (14:35 -0400)]
Ensure unmarking in buffer menu clears 'S' marks.  (Bug#15761)
* buff-menu.el (Buffer-menu--unmark): New function.
  (Buffer-menu-unmark, Buffer-menu-backup-unmark): Use it.

10 years agohfy-cmap.el: Remove duplicate Package: header
Glenn Morris [Wed, 30 Oct 2013 17:34:17 +0000 (13:34 -0400)]
hfy-cmap.el: Remove duplicate Package: header

10 years ago* lisp/Makefile.in (AUTOGENEL): Add org/org-loaddefs.el.
Glenn Morris [Wed, 30 Oct 2013 17:17:12 +0000 (13:17 -0400)]
* lisp/Makefile.in (AUTOGENEL): Add org/org-loaddefs.el.

10 years agoFix up previous admin/unidata clean rules
Glenn Morris [Wed, 30 Oct 2013 16:45:51 +0000 (09:45 -0700)]
Fix up previous admin/unidata clean rules

10 years agoRevert auto-commit loaddefs weirdness
Glenn Morris [Wed, 30 Oct 2013 16:29:36 +0000 (09:29 -0700)]
Revert auto-commit loaddefs weirdness

10 years agoFix weirdness caused by autoload generation...
Glenn Morris [Wed, 30 Oct 2013 16:21:41 +0000 (09:21 -0700)]
Fix weirdness caused by autoload generation...

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 30 Oct 2013 10:23:16 +0000 (06:23 -0400)]
Auto-commit of loaddefs files.

10 years ago* doc/lispref/display.texi (Abstract Display): Improve indexing.
Xue Fuqiao [Wed, 30 Oct 2013 10:08:11 +0000 (18:08 +0800)]
* doc/lispref/display.texi (Abstract Display): Improve indexing.

10 years agoSimplify admin/unidata Makefile rules
Glenn Morris [Wed, 30 Oct 2013 07:15:23 +0000 (00:15 -0700)]
Simplify admin/unidata Makefile rules

* admin/unidata/unidata-gen.el (unidata-gen-files): Use pop.
Also take the output directory as an argument.

* admin/unidata/Makefile.in: Simplify now that unidata-gen-files takes
the output directory as an argument (no need to cd, etc).
(abs_srcdir, abs_builddir): Remove.
(abs_top_builddir): Replace by top_builddir.
(${DSTDIR}/charprop.el): No need to cd.  Pass dest as argument.
(${DSTDIR}/charprop.el, charprop.el):
No need to pass unidata.txt as argument.

10 years ago* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Glenn Morris [Wed, 30 Oct 2013 06:40:15 +0000 (23:40 -0700)]
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Also clean admin/unidata, if present.

* admin/unidata/Makefile.in (bootstrap-clean): New rule.

10 years ago* lisp/gnus/gnus-int.el (gnus-start-news-server): Silence compiler
Glenn Morris [Wed, 30 Oct 2013 06:35:26 +0000 (23:35 -0700)]
* lisp/gnus/gnus-int.el (gnus-start-news-server): Silence compiler
obsolescence warning.

10 years ago* lisp/gnus/gnus-group.el (gnus-group-browse-foreign-server): Silence compiler
Glenn Morris [Wed, 30 Oct 2013 06:34:26 +0000 (23:34 -0700)]
* lisp/gnus/gnus-group.el (gnus-group-browse-foreign-server): Silence compiler
obsolescence warning.

10 years ago* lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-2)
Glenn Morris [Wed, 30 Oct 2013 06:31:15 +0000 (23:31 -0700)]
* lisp/cedet/semantic/grammar.el (semantic-grammar-mode-keywords-2)
(semantic-grammar-mode-keywords-3): Handle renamed font-lock vars.

10 years ago* lisp/emacs-lisp/package.el (lm-homepage): Declare.
Glenn Morris [Wed, 30 Oct 2013 06:29:51 +0000 (23:29 -0700)]
* lisp/emacs-lisp/package.el (lm-homepage): Declare.

10 years ago* lisp/eshell/em-ls.el (eshell-ls-directory, eshell-ls-symlink): Fix doc typos.
Glenn Morris [Wed, 30 Oct 2013 06:29:22 +0000 (23:29 -0700)]
* lisp/eshell/em-ls.el (eshell-ls-directory, eshell-ls-symlink): Fix doc typos.

10 years ago* lisp/vc/pcvs.el (cvs-status-cvstrees): Autoload to silence compiler.
Glenn Morris [Wed, 30 Oct 2013 06:28:15 +0000 (23:28 -0700)]
* lisp/vc/pcvs.el (cvs-status-cvstrees): Autoload to silence compiler.

10 years agoetc/TODO small updates
Glenn Morris [Wed, 30 Oct 2013 06:27:20 +0000 (23:27 -0700)]
etc/TODO small updates

10 years ago* admin/unidata/unidata-gen.el (unidata--ensure-compiled): New function.
Glenn Morris [Wed, 30 Oct 2013 06:25:44 +0000 (23:25 -0700)]
* admin/unidata/unidata-gen.el (unidata--ensure-compiled): New function.
(unidata-gen-table-name, unidata-gen-table-decomposition)
(unidata-gen-files): Use unidata--ensure-compiled.

Add FSF copyright years based on when this file first appeared in
Emacs trunk.

10 years ago* admin/unidata/Makefile.in (abs_srcdir): New, set by configure.
Glenn Morris [Wed, 30 Oct 2013 06:24:16 +0000 (23:24 -0700)]
* admin/unidata/Makefile.in (abs_srcdir): New, set by configure.
(${DSTDIR}/charprop.el, charprop.el): Update for srcdir not absolute.
(clean): Delete all .elc files.

10 years agolisp/Makefile.in trivia
Glenn Morris [Wed, 30 Oct 2013 06:21:46 +0000 (23:21 -0700)]
lisp/Makefile.in trivia

* lisp/Makefile.in (finder-data, autoloads, update-subdirs)
(compile-main, compile-clean, compile-always, bootstrap-clean):
Check return value of cd.
(compile-calc): Remove.

10 years agoCleanup namespace of dos-w32.el.
Stefan Monnier [Wed, 30 Oct 2013 02:45:53 +0000 (22:45 -0400)]
Cleanup namespace of dos-w32.el.
* lisp/dos-w32.el (minibuffer-history-case-insensitive-variables)
(path-separator, null-device, buffer-file-coding-system)
(lpr-headers-switches): Check system-type before modifying them.
(find-buffer-file-type-coding-system): Mark obsolete.
(w32-find-file-not-found-set-buffer-file-coding-system): Rename from
find-file-not-found-set-buffer-file-coding-system.
(w32-untranslated-filesystem-list, w32-untranslated-canonical-name):
(w32-add-untranslated-filesystem, w32-remove-untranslated-filesystem)
(w32-direct-print-region-use-command-dot-com, w32-untranslated-file-p):
(w32-direct-print-region-helper, w32-direct-print-region-function)
(w32-direct-ps-print-region-function): Rename by adding a "w32-" prefix.
* lisp/startup.el (normal-top-level-add-subdirs-to-load-path):
* lisp/ps-print.el (ps-print-region-function):
* lisp/lpr.el (print-region-function): Use new name.

* lisp/simple.el (copy-region-as-kill): Fix call to region-extract-function.

* lisp/emacs-lisp/bytecomp.el (byte-defop-compiler): Add new `2-and' handler.
(byte-compile-and-folded): New function.
(=, <, >, <=, >=): Use it.

10 years ago* lisp/subr.el (custom-declare-variable-early): Remove function.
Stefan Monnier [Wed, 30 Oct 2013 02:14:16 +0000 (22:14 -0400)]
* lisp/subr.el (custom-declare-variable-early): Remove function.
(custom-declare-variable-list): Remove var.
(error, user-error): Remove `while' loop.
(read-quoted-char-radix, read-quoted-char): Move to simple.el.
(user-emacs-directory-warning, locate-user-emacs-file):
Move to files.el.
* lisp/simple.el (read-quoted-char-radix, read-quoted-char):
* lisp/files.el (user-emacs-directory-warning, locate-user-emacs-file):
Move from subr.el.
* lisp/custom.el (custom-declare-variable-list): Don't process
custom-declare-variable-list.

10 years ago* lisp/progmodes/python.el (python-shell-get-buffer): New function.
Stefan Monnier [Wed, 30 Oct 2013 01:28:36 +0000 (21:28 -0400)]
* lisp/progmodes/python.el (python-shell-get-buffer): New function.
(python-shell-get-process): Use it.
(python-shell-send-string): Always use utf-8 and add a cookie to tell
Python which encoding was used.  Don't split-string since we only care
about the first line.  Return the temp-file, if applicable.
(python-shell-send-region): Tell compile.el how to turn locations in
the temp-file into locations in the source buffer.

10 years ago* src/keyboard.c (command_loop_1): If command is nil, call `undefined'.
Stefan Monnier [Tue, 29 Oct 2013 21:05:35 +0000 (17:05 -0400)]
* src/keyboard.c (command_loop_1): If command is nil, call `undefined'.
* lisp/subr.el (undefined): Add missing behavior from the C code for
unbound keys.

10 years ago* insdel.c: Fix minor problems found by static checking.
Paul Eggert [Tue, 29 Oct 2013 18:40:54 +0000 (11:40 -0700)]
* insdel.c: Fix minor problems found by static checking.

(Qregion_extract_function): Now static.
(prepare_to_modify_buffer_1): Remove unused locals.

10 years agoAdd pre-redisplay-function and rectangular region
Stefan Monnier [Tue, 29 Oct 2013 16:11:50 +0000 (12:11 -0400)]
Add pre-redisplay-function and rectangular region
* lisp/rect.el: Use lexical-binding.  Add new rectangular region support.
(rectangle-mark): New command.
(rectangle--region): New var.
(deactivate-mark-hook): Reset rectangle--region.
(rectangle--extract-region, rectangle--insert-for-yank)
(rectangle--highlight-for-redisplay)
(rectangle--unhighlight-for-redisplay): New functions.
(region-extract-function, redisplay-unhighlight-region-function)
(redisplay-highlight-region-function): Use them to handle
rectangular region.
* lisp/simple.el (region-extract-function): New var.
(delete-backward-char, delete-forward-char, deactivate-mark): Use it.
(kill-new, kill-append): Remove obsolete `yank-handler' argument.
(kill-region): Replace obsolete `yank-handler' arg with `region'.
(copy-region-as-kill, kill-ring-save): Add `region' argument.
(redisplay-unhighlight-region-function)
(redisplay-highlight-region-function): New vars.
(redisplay--update-region-highlight): New function.
(pre-redisplay-function): Use it.
(exchange-point-and-mark): Don't deactivate the mark before
reactivate-it anyway.
* lisp/comint.el (comint-kill-region): Remove yank-handler argument.
* lisp/delsel.el (delete-backward-char, backward-delete-char-untabify)
(delete-char): Remove property, since it's now part of their
default behavior.
(self-insert-iso): Remove property since this command doesn't exist.

* src/xdisp.c (prepare_menu_bars): Call Vpre_redisplay_function.
(syms_of_xdisp): Declare pre-redisplay-function.
(markpos_of_region): Remove function.
(init_iterator, compute_stop_pos, handle_face_prop)
(face_before_or_after_it_pos, reseat_to_string)
(get_next_display_element, window_buffer_changed)
(redisplay_internal, try_cursor_movement, redisplay_window)
(try_window_reusing_current_matrix, try_window_id, display_line)
(note_mode_line_or_margin_highlight, note_mouse_highlight)
(display_string, mouse_face_from_buffer_pos): Remove region handling.
* src/window.h (struct window): Remove field `region_showing'.
* src/dispextern.h (struct it): Remove region_beg/end_charpos.
(face_at_buffer_position, face_for_overlay_string)
(face_at_string_position): Update prototypes.
* src/xfaces.c (face_at_buffer_position, face_for_overlay_string)
(face_at_string_position): Remove `region_beg' and `region_end' args.
* src/fontset.c (Finternal_char_font):
* src/font.c (font_at, font_range): Adjust calls accordingly.
* src/insdel.c (Qregion_extract_function): New var.
(syms_of_insdel): Initialize it.
(prepare_to_modify_buffer_1): Use it.

10 years agoPrefer 'unsigned long' to 'long unsigned int' and 'unsigned long int'.
Dmitry Antipov [Tue, 29 Oct 2013 16:08:08 +0000 (20:08 +0400)]
Prefer 'unsigned long' to 'long unsigned int' and 'unsigned long int'.
* ftxfont.c (ftxfont_get_gcs):
* gtkutil.c (xg_set_widget_bg, xg_set_background_color):
* xfaces.c (x_free_colors, x_free_dpy_colors)
(x_create_gc, unload_color):
* xselect.c (x_property_data_to_lisp):
* xsettings.c (parse_settings):
* xterm.c (x_copy_color, x_alloc_lighter_color, x_setup_relief_color)
(get_bits_and_offset): Adjust definition.
* frame.c (XParseGeometry): Adjust locals.
* lisp.h (toplevel): Adjust EMACS_UINT type definition.
* regex.h (toplevel): Likewise for reg_syntax_t.

10 years ago* doc/lispref/display.texi (Selective Display): Discourage the use of explicit
Stefan Monnier [Tue, 29 Oct 2013 14:49:10 +0000 (10:49 -0400)]
* doc/lispref/display.texi (Selective Display): Discourage the use of explicit
selective display.

10 years ago* lisp/emacs-lisp/package.el (package--download-one-archive)
Stefan Monnier [Tue, 29 Oct 2013 14:48:08 +0000 (10:48 -0400)]
* lisp/emacs-lisp/package.el (package--download-one-archive)
(describe-package-1): Don't query the user about final newline.

10 years ago* src/eval.c (run_hook_with_args): Use FUNCTIONP.
Stefan Monnier [Tue, 29 Oct 2013 14:46:23 +0000 (10:46 -0400)]
* src/eval.c (run_hook_with_args): Use FUNCTIONP.
* test/indent/css-mode.css (.x2): Test alignement inside braces.
* test/indent/prolog.prolog: Test alignment of ->; with operator at bol.

10 years ago* doc/lispref/display.texi (Abstract Display): Explain the meaning of Ewoc.
Xue Fuqiao [Tue, 29 Oct 2013 14:36:01 +0000 (22:36 +0800)]
* doc/lispref/display.texi (Abstract Display): Explain the meaning of Ewoc.

10 years agoFix a typo.
Xue Fuqiao [Tue, 29 Oct 2013 14:23:07 +0000 (22:23 +0800)]
Fix a typo.

10 years agoUse @code instead of @var for a normal variable.
Xue Fuqiao [Tue, 29 Oct 2013 14:15:52 +0000 (22:15 +0800)]
Use @code instead of @var for a normal variable.

* doc/lispref/display.texi (Button Buffer Commands): Use @code instead
  of @var for a normal variable.

10 years agolisp/gnus/nnimap.el: Search the netrc entries for the logical server name, then the...
Ted Zlatanov [Tue, 29 Oct 2013 13:54:16 +0000 (13:54 +0000)]
lisp/gnus/nnimap.el: Search the netrc entries for the logical server name, then the actual

10 years ago* doc/lispref/display.texi (Multi-Frame Images): Improve indexing.
Xue Fuqiao [Tue, 29 Oct 2013 11:58:50 +0000 (19:58 +0800)]
* doc/lispref/display.texi (Multi-Frame Images): Improve indexing.

10 years agoAdd an index for multi-frame images.
Xue Fuqiao [Tue, 29 Oct 2013 11:20:24 +0000 (19:20 +0800)]
Add an index for multi-frame images.

* doc/lispref/display.texi (Multi-Frame Images): Add an index for multi-frame images.