]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years ago* lisp/emacs-lisp/cl.el (cl-map-keymap-recursively, cl-map-intervals)
Stefan Monnier [Wed, 8 Aug 2012 18:56:01 +0000 (14:56 -0400)]
* lisp/emacs-lisp/cl.el (cl-map-keymap-recursively, cl-map-intervals)
(cl-map-extents): Add compatibility aliases.

Fixes: debbugs:12135
12 years agoFix and document recently introduced configuration options.
Dmitry Antipov [Wed, 8 Aug 2012 16:17:15 +0000 (20:17 +0400)]
Fix and document recently introduced configuration options.
* configure.ac (--disable-features): Rename to --without-all.
(OPTION_DEFAULT_ON): Change to use with_features.
* INSTALL: Fix description.
* etc/NEWS: Mention --without-all and --enable-link-time-optimization.

12 years agoRemove reference to src/s file
Glenn Morris [Wed, 8 Aug 2012 16:07:24 +0000 (09:07 -0700)]
Remove reference to src/s file

12 years agoRefill comment
Glenn Morris [Wed, 8 Aug 2012 16:03:04 +0000 (09:03 -0700)]
Refill comment

12 years agoComments
Glenn Morris [Wed, 8 Aug 2012 16:01:28 +0000 (09:01 -0700)]
Comments

12 years agoTiny comment updates
Glenn Morris [Wed, 8 Aug 2012 15:53:52 +0000 (08:53 -0700)]
Tiny comment updates

12 years agoChangeLog fix
Glenn Morris [Wed, 8 Aug 2012 15:47:21 +0000 (08:47 -0700)]
ChangeLog fix

12 years agoInline functions to examine and change buffer overlays.
Dmitry Antipov [Wed, 8 Aug 2012 14:47:11 +0000 (18:47 +0400)]
Inline functions to examine and change buffer overlays.
* buffer.c (unchain_both): New function.
* buffer.h (buffer_get_overlays, buffer_set_overlays):
(buffer_has_overlays): New function.
(enum overlay_type): New enum.
* alloc.c, buffer.c, editfns.c, fileio.c, indent.c:
* insdel.c, intervals.c, print.c, xdisp.c: Adjust users.

12 years ago* net/tramp-sh.el (tramp-find-file-exists-command): Protect the
Michael Albinus [Wed, 8 Aug 2012 13:40:45 +0000 (15:40 +0200)]
* net/tramp-sh.el (tramp-find-file-exists-command): Protect the
tests by `ignore-error'.
(tramp-find-shell): Open also a new shell, when cache is already
set.  Reported by Carsten Bormann <cabo@tzi.org>.  (Bug#12148)

12 years agoInline functions to examine and change buffer intervals.
Dmitry Antipov [Wed, 8 Aug 2012 12:12:40 +0000 (16:12 +0400)]
Inline functions to examine and change buffer intervals.
* alloc.c (mark_interval_tree): Remove.
(MARK_INTERVAL_TREE): Simplify.
(UNMARK_BALANCE_INTERVALS): Remove.  Adjust users.
* intervals.c (buffer_balance_intervals): New function.
(graft_intervals_into_buffer): Adjust indentation.
(set_intervals_multibyte): Simplify.
* buffer.h (BUF_INTERVALS): Remove.
(buffer_get_intervals, buffer_set_intervals): New function.
* alloc.c, buffer.c, editfns.c, fileio.c, indent.c, insdel.c:
* intervals.c, textprop.c: Adjust users.

12 years agoInline functions to examine and change string intervals.
Dmitry Antipov [Wed, 8 Aug 2012 10:23:04 +0000 (14:23 +0400)]
Inline functions to examine and change string intervals.
* lisp.h (STRING_INTERVALS, STRING_SET_INTERVALS): Remove.
(string_get_intervals, string_set_intervals): New function.
* alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c:
* lread.c, print.c, textprop.c: Adjust users.

12 years ago* lisp/bookmark.el: Add `defaults' property to the bookmark record.
Juri Linkov [Wed, 8 Aug 2012 08:48:57 +0000 (11:48 +0300)]
* lisp/bookmark.el: Add `defaults' property to the bookmark record.
(bookmark-current-buffer): Doc fix.
(bookmark-make-record): Add `defaults' property with default values
to the bookmark record.
(bookmark-minibuffer-read-name-map): Remove key binding "\C-u"
with `bookmark-insert-current-bookmark'.
(bookmark-set): Get `defaults' property from the bookmark record
and use it in `read-from-minibuffer'.
(bookmark-insert-current-bookmark): Remove function.

* lisp/info.el (Info-bookmark-make-record): Add `defaults' property
with values of canonical Info node name, the current Info file name
and the current Info node name.

Fixes: debbugs:12107
12 years ago* lisp/files.el (basic-save-buffer): Use `buffer-name' as the default
Juri Linkov [Wed, 8 Aug 2012 08:17:13 +0000 (11:17 +0300)]
* lisp/files.el (basic-save-buffer): Use `buffer-name' as the default
of `read-file-name' when buffer is not visiting a file.

Fixes: debbugs:12128
12 years ago* lisp/info.el (Info-isearch-search): Doc fix.
Juri Linkov [Wed, 8 Aug 2012 08:05:58 +0000 (11:05 +0300)]
* lisp/info.el (Info-isearch-search): Doc fix.
(Info-search): Change search-failed message from "initial node" to
"end of node".
(Info-isearch-search): Change `isearch-string-state' to
`isearch--state-string'.

Fixes: debbugs:12078
12 years agoMerge language/persian.el into language/misc-lang.el
Glenn Morris [Wed, 8 Aug 2012 07:19:58 +0000 (00:19 -0700)]
Merge language/persian.el into language/misc-lang.el

* lisp/language/persian.el: Remove file.
* lisp/language/misc-lang.el: Move non-unique part of persian.el here.
* lisp/loadup.el: Remove language/persian.

* src/lisp.mk (lisp): Remove language/persian.elc.

* etc/NEWS: Improve entry.

12 years agoCleanup intervals.
Dmitry Antipov [Wed, 8 Aug 2012 06:11:29 +0000 (10:11 +0400)]
Cleanup intervals.
* intervals.h (NULL_INTERVAL, DEFAULT_INTERVAL): Remove.
(NULL_INTERVAL_P): Likewise.  Adjust users.
(FRONT_STICKY_P, END_NONSTICKY_P, FRONT_NONSTICKY_P): Adjust
comment.  Move under #if 0.
* alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c:
* print.c, syntax.c, textprop.c, xdisp.c: Adjust users.

12 years agoCheck total length of intervals with eassert.
Dmitry Antipov [Wed, 8 Aug 2012 05:23:02 +0000 (09:23 +0400)]
Check total length of intervals with eassert.
* intervals.h (CHECK_TOTAL_LENGTH): Remove.
* intervals.c: Change all users to eassert.

12 years ago* vc/diff-mode.el (diff-remove-trailing-whitespace): New function.
Oscar Fuentes [Wed, 8 Aug 2012 04:41:35 +0000 (00:41 -0400)]
* vc/diff-mode.el (diff-remove-trailing-whitespace): New function.

12 years ago* progmodes/python.el Fixed defsubst warning.
Fabián Ezequiel Gallina [Wed, 8 Aug 2012 02:30:08 +0000 (23:30 -0300)]
* progmodes/python.el Fixed defsubst warning.
(python-syntax-context) Rename from python-info-ppss-context.
(python-syntax-context-type): Rename from
python-info-ppss-context-type.
(python-syntax-comment-or-string-p): Rename from
python-info-ppss-comment-or-string-p.

12 years agocalc-misc.el (calc-record-why): Don't record a message twice.
Jay Belanger [Wed, 8 Aug 2012 01:30:58 +0000 (20:30 -0500)]
calc-misc.el (calc-record-why):  Don't record a message twice.

12 years ago* emacs-lisp/lisp-mode.el (eval-defun-1): Handle standard value of
Andreas Schwab [Tue, 7 Aug 2012 21:52:54 +0000 (23:52 +0200)]
* emacs-lisp/lisp-mode.el (eval-defun-1): Handle standard value of
a defcustom that is quoted with backquote.

12 years agoDefer to configure.ac for required automake version
Glenn Morris [Tue, 7 Aug 2012 17:02:30 +0000 (13:02 -0400)]
Defer to configure.ac for required automake version

12 years agoFix .gdbinit to match changes with INTERNAL_FIELD.
Eli Zaretskii [Tue, 7 Aug 2012 16:53:38 +0000 (19:53 +0300)]
Fix .gdbinit to match changes with INTERNAL_FIELD.

 src/.gdbinit (xframe, xwindow, nextcons, xcar, xcdr, xlist): Rename
 fields to match removal of FGET and WGET and disuse of
 INTERNAL_FIELD in Lisp_Cons.

12 years ago* calc/calc-prog.el (math-do-defmath): Use backquote forms. Fix
Andreas Schwab [Tue, 7 Aug 2012 16:12:20 +0000 (18:12 +0200)]
* calc/calc-prog.el (math-do-defmath): Use backquote forms.  Fix
handling of interactive spec when the body uses return.
(math-do-arg-check, math-define-function-body): Use backquote forms.
* calc/calc-ext.el (math-defcache): Likewise.
* calc/calc-rewr.el (math-rwfail, math-rweval): Likewise.
* allout.el (allout-new-exposure): Likewise.
* calc/calcalg2.el (math-tracing-integral): Likewise.
* info.el (Info-last-menu-item): Likewise.
* emulation/vip.el (vip-loop): Likewise.
* textmodes/artist.el (artist-funcall): Likewise.
* menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle):
Construct menu-item directly.

* cedet/ede/base.el (ede-with-projectfile): Use backquote forms.

12 years agoRevert and cleanup Lisp_Cons, Lisp_Misc and Lisp_Symbol things.
Dmitry Antipov [Tue, 7 Aug 2012 13:37:21 +0000 (17:37 +0400)]
Revert and cleanup Lisp_Cons, Lisp_Misc and Lisp_Symbol things.
* src/lisp.h (struct Lisp_Symbol): Change xname to meaningful
name since all xname users are fixed long time ago.  Do not use
INTERNAL_FIELD.
(set_symbol_name, set_symbol_function, set_symbol_plist):
(set_symbol_next, set_overlay_plist): New function.
(struct Lisp_Cons): Do not use INTERNAL_FIELD.
(struct Lisp_Overlay): Likewise.
(CVAR, MVAR, SVAR): Remove.
* src/alloc.c, src/buffer.c, src/buffer.h, src/bytecode.c:
* src/cmds.c, src/data.c, src/doc.c, src/eval.c, src/fns.c:
* src/keyboard.c, src/lread.c, src/nsselect.m, src/xterm.c:
Adjust users.
* src/.gdbinit: Change to use name field of struct Lisp_Symbol
where appropriate.
* admin/coccinelle/overlay.cocci, admin/coccinelle/symbol.cocci:
Remove.

12 years agoBasic functions to set Lisp_Object and pointer slots of intervals.
Dmitry Antipov [Tue, 7 Aug 2012 11:28:41 +0000 (15:28 +0400)]
Basic functions to set Lisp_Object and pointer slots of intervals.
* intervals.h (interval_set_parent, interval_set_object):
(interval_set_left, interval_set_right, interval_set_plist):
(interval_copy_parent): New function.
(SET_INTERVAL_OBJECT, SET_INTERVAL_PARENT, INTERVAL_PTR_SIZE): Remove.
(RESET_INTERVAL, COPY_INTERVAL_CACHE, MERGE_INTERVAL_CACHE): Adjust
indentation.
(INTERVAL_SIZE): Remove.  Adjust users.
* alloc.c, intervals.c, lread.c, textprop.c: Use new functions.

12 years ago* progmodes/autoconf.el (font-lock-syntactic-keywords): Don't
Andreas Schwab [Tue, 7 Aug 2012 11:13:23 +0000 (13:13 +0200)]
* progmodes/autoconf.el (font-lock-syntactic-keywords): Don't
declare.

12 years ago* nt/config.nt: Sync with autogen/config.nt.
Juanma Barranquero [Tue, 7 Aug 2012 11:03:48 +0000 (13:03 +0200)]
* nt/config.nt: Sync with autogen/config.nt.
(BROKEN_GETWD, DISPNEW_NEEDS_STDIO_EXT): New macros.
(PENDING_OUTPUT_COUNT): Move definition to inc/ms-w32.h.

* nt/inc/ms-w32.h (PENDING_OUTPUT_COUNT): Define.

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 7 Aug 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoDrop PGET and revert read access to Lisp_Objects slots of Lisp_Process.
Dmitry Antipov [Tue, 7 Aug 2012 07:42:34 +0000 (11:42 +0400)]
Drop PGET and revert read access to Lisp_Objects slots of Lisp_Process.
* process.h (PGET): Remove.
(struct Lisp_Process): Do not use INTERNAL_FIELD.
* gnutls.c, print.c, process.c, sysdep.c, w32.c, xdisp.c: Adjust users.

12 years agoDrop WGET and revert read access to Lisp_Objects slots of struct window.
Dmitry Antipov [Tue, 7 Aug 2012 07:33:18 +0000 (11:33 +0400)]
Drop WGET and revert read access to Lisp_Objects slots of struct window.
* window.h (WGET): Remove.
(struct window): Do not use INTERNAL_FIELD.
* alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c:
* fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c:
* insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m:
* nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c:
* w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
Adjust users.

12 years agoCheck for live frames explicitly in window.c functions which need it.
Chong Yidong [Tue, 7 Aug 2012 07:02:04 +0000 (15:02 +0800)]
Check for live frames explicitly in window.c functions which need it.

* window.c (Fwindow_edges, Fwindow_pixel_edges)
(Fwindow_absolute_pixel_edges, Fdelete_other_windows_internal)
(Fdelete_window_internal): Signal an error if the window is not on
a live frame.

Fixes: debbugs:12025
12 years agoGrammar fixes
Glenn Morris [Tue, 7 Aug 2012 06:56:08 +0000 (23:56 -0700)]
Grammar fixes

12 years agoDrop FGET and revert read access to Lisp_Objects slots of struct frame.
Dmitry Antipov [Tue, 7 Aug 2012 05:29:25 +0000 (09:29 +0400)]
Drop FGET and revert read access to Lisp_Objects slots of struct frame.
* frame.h (FGET): Remove.
(struct frame): Do not use INTERNAL_FIELD.
* buffer.c, data.c, dispnew.c, dosfns.c, eval.c, fontset.c, frame.c:
* fringe.c, gtkutil.c, minibuf.c, msdos.c, nsfns.m, nsmenu.m, nsterm.m:
* print.c, term.c, w32fns.c, w32menu.c, w32term.c, window.c, window.h:
* xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Adjust users.

12 years agoPreserve text properties when saving primary selection.
Chong Yidong [Tue, 7 Aug 2012 04:52:15 +0000 (12:52 +0800)]
Preserve text properties when saving primary selection.

* lisp/simple.el (deactivate-mark): Preserve text properties when
saving the primary selection.

Fixes: debbugs:8384
12 years agoUpdate cl-loaddefs.el.
Chong Yidong [Tue, 7 Aug 2012 04:50:55 +0000 (12:50 +0800)]
Update cl-loaddefs.el.

12 years ago* configure.ac: New option --disable-features.
Dmitry Antipov [Tue, 7 Aug 2012 04:16:47 +0000 (08:16 +0400)]
* configure.ac: New option --disable-features.
(OPTION_DEFAULT_ON): Change to use enable_features.
* INSTALL: Explain --disable-features.

12 years agoFix two woman bugs.
Kevin Ryde [Tue, 7 Aug 2012 03:57:05 +0000 (11:57 +0800)]
Fix two woman bugs.

* lisp/woman.el (woman0-if): Quietly treat ".if v" as false.
(woman-parse-numeric-value): On a bad .IP line, issue a warning
and continue processing.

Fixes: debbugs:12110 debbugs:12109
12 years agoMerge from emacs-24; up to 2012-05-02T07:12:52Z!rgm@gnu.org.
Chong Yidong [Tue, 7 Aug 2012 03:33:37 +0000 (11:33 +0800)]
Merge from emacs-24; up to 2012-05-02T07:12:52Z!rgm@gnu.org.

12 years agoBackport 2012-06-23T12:54:59Z!cyd@gnu.org from trunk
Chong Yidong [Tue, 7 Aug 2012 03:24:52 +0000 (11:24 +0800)]
Backport 2012-06-23T12:54:59Z!cyd@gnu.org from trunk

12 years agoBackport 2012-06-23T12:48:24Z!cyd@gnu.org from trunk
Chong Yidong [Tue, 7 Aug 2012 03:24:35 +0000 (11:24 +0800)]
Backport 2012-06-23T12:48:24Z!cyd@gnu.org from trunk

12 years agoSet a minimum automake version
Glenn Morris [Tue, 7 Aug 2012 01:03:44 +0000 (21:03 -0400)]
Set a minimum automake version

* configure.ac: Require automake 1.11 (fairly arbitrarily).
* autogen.sh (automake_min): Get it from configure.ac.

12 years agosrc/w32.c: Silence compiler warnings.
Juanma Barranquero [Mon, 6 Aug 2012 22:07:01 +0000 (00:07 +0200)]
src/w32.c: Silence compiler warnings.
(map_w32_filename): Remove unused variable `is_fat'.
(chase_symlinks): Add parentheses around expression.

12 years ago* doc/misc/url.texi (Parsed URLs): Adjust to the code's use of defstruct.
Aurélien Aptel [Mon, 6 Aug 2012 21:50:25 +0000 (17:50 -0400)]
* doc/misc/url.texi (Parsed URLs): Adjust to the code's use of defstruct.

Fixes: debbugs:12096
12 years agoRevert typo in previous
Glenn Morris [Mon, 6 Aug 2012 21:33:21 +0000 (17:33 -0400)]
Revert typo in previous

12 years ago* lisp/help-fns.el (help-fns--key-bindings, help-fns--signature)
Stefan Monnier [Mon, 6 Aug 2012 21:05:48 +0000 (17:05 -0400)]
* lisp/help-fns.el (help-fns--key-bindings, help-fns--signature)
(help-fns--parent-mode, help-fns--obsolete): New funs, extracted from
describe-function-1.
(describe-function-1): Use them.  Move compiler macro after sig.
(help-fns--compiler-macro): Use function-get.  Assume we're already in
standard-output.  Adjust layout to new call order.

12 years agoGrammar fixes
Glenn Morris [Mon, 6 Aug 2012 21:05:25 +0000 (17:05 -0400)]
Grammar fixes

12 years agoRemove non-standard comment from license section of commentary
Glenn Morris [Mon, 6 Aug 2012 20:53:28 +0000 (16:53 -0400)]
Remove non-standard comment from license section of commentary

12 years agoGuard against potential configure bug wrt HAVE_GETWD
Glenn Morris [Mon, 6 Aug 2012 20:29:45 +0000 (16:29 -0400)]
Guard against potential configure bug wrt HAVE_GETWD

* configure.ac (BROKEN_GETWD) [unixware]: New define.

* src/sysdep.c: Respect BROKEN_GETWD.

12 years agoRemove GNU_LIBRARY_PENDING_OUTPUT_COUNT
Glenn Morris [Mon, 6 Aug 2012 20:22:22 +0000 (16:22 -0400)]
Remove GNU_LIBRARY_PENDING_OUTPUT_COUNT

* configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
(PENDING_OUTPUT_COUNT): Absorb GNU_LIBRARY_PENDING_OUTPUT_COUNT.
(DISPNEW_NEEDS_STDIO_EXT): New define.

* src/dispnew.c (GNU_LIBRARY_PENDING_OUTPUT_COUNT, PENDING_OUTPUT_COUNT):
Let configure handle it.
(stdio_ext.h) [DISPNEW_NEEDS_STDIO_EXT]: Include it.

* nt/config.nt (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.
(PENDING_OUTPUT_COUNT): Define it as dispnew.c used to.

* admin/CPP-DEFINES (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Remove.

12 years ago* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Fix handling of
Stefan Monnier [Mon, 6 Aug 2012 19:53:45 +0000 (15:53 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Fix handling of
re-binding a symbol that has a symbol-macro.

Fixes: debbugs:12119
12 years ago* lisp/progmodes/cperl-mode.el (cperl-mode): Yet another fix for
Stefan Monnier [Mon, 6 Aug 2012 17:41:32 +0000 (13:41 -0400)]
* lisp/progmodes/cperl-mode.el (cperl-mode): Yet another fix for
syntax-propertize-function.

Fixes: debbugs:10095
12 years agoUse GCALIGNMENT where appropriate.
Dmitry Antipov [Mon, 6 Aug 2012 16:55:46 +0000 (20:55 +0400)]
Use GCALIGNMENT where appropriate.
* alloc.c (XMALLOC_HEADER_ALIGNMENT, roundup_size):
(union aligned_Lisp_Symbol, union aligned_Lisp_Misc):
(mark_maybe_pointer, pure_alloc): Change to use GCALIGNMENT.

12 years agoFix bug #12138 with indexing "closures".
Eli Zaretskii [Mon, 6 Aug 2012 16:55:41 +0000 (19:55 +0300)]
Fix bug #12138 with indexing "closures".

 doc/lispref/functions.texi (Closures): Put the main index entry for
 "closures" here.
 doc/lispref/variables.texi (Lexical Binding): Disambiguate the index entry
 for "closures".

12 years agoFix usage of FRAME_MENU_BAR_ITEMS in w32menu.c.
Eli Zaretskii [Mon, 6 Aug 2012 16:36:47 +0000 (19:36 +0300)]
Fix usage of FRAME_MENU_BAR_ITEMS in w32menu.c.

 src/w32menu.c (set_frame_menubar, initialize_frame_menubar): Don't
 use FRAME_MENU_BAR_ITEMS as an lvalue.

12 years ago* src/buffer.h (struct buffer): Revert `indirections' to a simple int;
Stefan Monnier [Mon, 6 Aug 2012 16:22:43 +0000 (12:22 -0400)]
* src/buffer.h (struct buffer): Revert `indirections' to a simple int;
that should be sufficient for everyone.

12 years ago* keyboard.c (timer_check_2): Add break so timer_check returns next timeout.
Jan Djärv [Mon, 6 Aug 2012 16:09:02 +0000 (18:09 +0200)]
* keyboard.c (timer_check_2): Add break so timer_check returns next timeout.

12 years agoFix Windows build errors introduced after converting to WGET and WSET.
Dmitry Antipov [Mon, 6 Aug 2012 15:45:27 +0000 (19:45 +0400)]
Fix Windows build errors introduced after converting to WGET and WSET.
* w32term.c (w32_set_vertical_scroll_bar): Change to use WSET.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.

12 years agoUse FSET.
Jan Djärv [Mon, 6 Aug 2012 12:54:54 +0000 (14:54 +0200)]
Use FSET.

* nsmenu.m (ns_update_menubar): Use FSET.

* nsterm.m (ns_frame_rehighlight): Use FSET.

12 years agognus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Remove autoload
Julien Danjou [Mon, 6 Aug 2012 11:56:36 +0000 (11:56 +0000)]
gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Remove autoload

12 years agoSeparate read and write access to Lisp_Object slots of Lisp_Process.
Dmitry Antipov [Mon, 6 Aug 2012 11:16:07 +0000 (15:16 +0400)]
Separate read and write access to Lisp_Object slots of Lisp_Process.
* process.h (PGET, PSET): New macros similar to AREF and ASET.
* gnutls.c, print.c, process.c, sysdep.c, w32.c, xdisp.c: Adjust users.

12 years agoSeparate read and write access to Lisp_Object slots of struct window.
Dmitry Antipov [Mon, 6 Aug 2012 10:24:26 +0000 (14:24 +0400)]
Separate read and write access to Lisp_Object slots of struct window.
* window.h (WGET, WSET): New macros similar to AREF and ASET.
* alloc.c, buffer.c, composite.c, dispextern.h, dispnew.c, editfns.c:
* fileio.c, font.c, fontset.c, frame.c, frame.h, fringe.c, indent.c:
* insdel.c, keyboard.c, keymap.c, lisp.h, minibuf.c, msdos.c, nsfns.m:
* nsmenu.m, nsterm.m, print.c, textprop.c, w32fns.c, w32menu.c:
* w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
Adjust users.

12 years agoFix Windows build errors introduced after converting to FGET and FSET.
Dmitry Antipov [Mon, 6 Aug 2012 09:28:17 +0000 (13:28 +0400)]
Fix Windows build errors introduced after converting to FGET and FSET.
* w32term.c (x_frame_rehighlight, x_scroll_bar_create):
(w32_condemn_scroll_bars, w32_redeem_scroll_bar):
(w32_judge_scroll_bars): Change to use FSET.
Reported by Andy Moreton <andrewjmoreton@gmail.com>.

12 years agoFix replacement typo.
Dmitry Antipov [Mon, 6 Aug 2012 08:32:49 +0000 (12:32 +0400)]
Fix replacement typo.
* window.c (replace_window): Set root_window instead of
selected_window.  This fixes a total window subsystem
malfunction reported by Bastien Guerry <bzg@gnu.org>.

12 years ago* src/lisp.mk (lisp): Add language/persian.elc.
Glenn Morris [Mon, 6 Aug 2012 07:37:26 +0000 (00:37 -0700)]
* src/lisp.mk (lisp): Add language/persian.elc.

12 years agoAdd NEWS for language/persian.el.
Glenn Morris [Mon, 6 Aug 2012 07:36:35 +0000 (00:36 -0700)]
Add NEWS for language/persian.el.

12 years ago* leim/quail/persian.el: Add some mappings.
Mohsen BANAN [Mon, 6 Aug 2012 07:34:35 +0000 (00:34 -0700)]
* leim/quail/persian.el: Add some mappings.
(farsi-isiri-9147, farsi-transliterate-banan): Doc fixes.

Fixes: debbugs:11812
12 years ago* lisp/language/persian.el: New file.
Mohsen BANAN [Mon, 6 Aug 2012 07:31:31 +0000 (00:31 -0700)]
* lisp/language/persian.el: New file.
* lisp/loadup.el: Add language/persian.el.

Fixes: debbugs:11812
12 years ago* lisp/eshell/esh-ext.el (eshell/addpath): Use mapconcat.
Glenn Morris [Mon, 6 Aug 2012 07:10:27 +0000 (00:10 -0700)]
* lisp/eshell/esh-ext.el (eshell/addpath): Use mapconcat.

12 years agoAdd inhibit-switch-frame parameter for display-buffer, and use it in occur-edit.
Chong Yidong [Mon, 6 Aug 2012 05:33:39 +0000 (13:33 +0800)]
Add inhibit-switch-frame parameter for display-buffer, and use it in occur-edit.

* replace.el (occur-after-change-function): Avoid losing focus by
using the inhibit-switch-frame display action option.

* window.el (window--maybe-raise-frame): New function.
(window--display-buffer): Split off from here.
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window, display-buffer-use-some-window):
Obey an inhibit-switch-frame action alist entry.
(display-buffer): Update doc.

Fixes: debbugs:12139
12 years agoSeparate read and write access to Lisp_Object slots of struct frame.
Dmitry Antipov [Mon, 6 Aug 2012 05:27:54 +0000 (09:27 +0400)]
Separate read and write access to Lisp_Object slots of struct frame.
* frame.h (FGET, FSET): New macros similar to AREF and ASET.
* buffer.c, data.c, dispnew.c, dosfns.c, eval.c, fontset.c, frame.c:
* fringe.c, gtkutil.c, minibuf.c, msdos.c, nsfns.m, nsmenu.m, nsterm.m:
* print.c, term.c, w32fns.c, w32menu.c, w32term.c, window.c, window.h:
* xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Adjust users.

12 years agoMake internal shell process buffer names start with space.
Fabián Ezequiel Gallina [Mon, 6 Aug 2012 03:27:43 +0000 (00:27 -0300)]
Make internal shell process buffer names start with space.
* progmodes/python.el (python-shell-make-comint): Add optional
argument INTERNAL.
(run-python-internal): Use it.
(python-shell-internal-get-or-create-process): Check for new
internal buffer names.

12 years agoTweak previous esh-ext.el change
Glenn Morris [Mon, 6 Aug 2012 01:23:37 +0000 (18:23 -0700)]
Tweak previous esh-ext.el change

* lisp/eshell/esh-ext.el (eshell/addpath): Use dolist.
Do less getting and setting of environment variables.

12 years agoerc-match: add option to exclude server buffer
Julien Danjou [Mon, 6 Aug 2012 00:15:34 +0000 (02:15 +0200)]
erc-match: add option to exclude server buffer

* erc-match.el (erc-match-exclude-server-buffer)
(erc-match-message): Add new option to exclude server buffer from
matching.

12 years agognus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Add autoload
Julien Danjou [Sun, 5 Aug 2012 22:02:24 +0000 (22:02 +0000)]
gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Add autoload

12 years agoIgnore stamp-h.in
Andreas Schwab [Sun, 5 Aug 2012 21:44:21 +0000 (23:44 +0200)]
Ignore stamp-h.in

12 years ago* emacs.c (decode_env_path): Only use defaulted if WINDOWSNT.
Andreas Schwab [Sun, 5 Aug 2012 21:44:21 +0000 (23:44 +0200)]
* emacs.c (decode_env_path): Only use defaulted if WINDOWSNT.

12 years agoGeneralize common compile-time constants.
Dmitry Antipov [Sun, 5 Aug 2012 15:47:28 +0000 (19:47 +0400)]
Generalize common compile-time constants.
* lisp.h (header_size, bool_header_size, word_size): Now here.
(struct Lisp_Vector): Add comment.
(struct Lisp_Bool_Vector): Move up to define handy constants.
(VECSIZE, PSEUDOVECSIZE): Simplify.
(SAFE_ALLOCA_LISP): Use new constant.  Adjust indentation.
* buffer.c, buffer.h, bytecode.c, callint.c, eval.c, fns.c:
* font.c, fontset.c, keyboard.c, keymap.c, macros.c, menu.c:
* msdos.c, w32menu.c, w32term.h, window.c, xdisp.c, xfaces.c:
* xfont.c, xmenu.c: Use word_size where appropriate.

12 years agoTweak proced docstring to trigger autoloading.
Chong Yidong [Sun, 5 Aug 2012 14:22:05 +0000 (22:22 +0800)]
Tweak proced docstring to trigger autoloading.

* lisp/proced.el (proced): Add substitution string to docstring to
trigger autoloading of the proced library on C-h f.

Fixes: debbugs:1768
12 years agoIn Imenu, don't show defvars with no second argument.
Chong Yidong [Sun, 5 Aug 2012 14:14:54 +0000 (22:14 +0800)]
In Imenu, don't show defvars with no second argument.

* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Don't
show defvars which have no second argument.

* lisp/imenu.el (imenu-generic-expression): Move documentation here
from imenu--generic-function.
(imenu--generic-function): Refer to imenu-generic-expression.

Fixes: debbugs:8638
12 years ago* search.c (Freplace_match): Treat \? in the replacement text literally.
Lawrence Mitchell [Sun, 5 Aug 2012 13:30:15 +0000 (21:30 +0800)]
* search.c (Freplace_match): Treat \? in the replacement text literally.

Fixes: debbugs:8161
12 years ago* INSTALL: Explain, how to disable D-Bus at all. (Bug#12112)
Michael Albinus [Sun, 5 Aug 2012 12:53:48 +0000 (14:53 +0200)]
* INSTALL: Explain, how to disable D-Bus at all.  (Bug#12112)

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 5 Aug 2012 10:19:01 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years agoManual fixes for frame-background-mode.
Chong Yidong [Sun, 5 Aug 2012 09:24:55 +0000 (17:24 +0800)]
Manual fixes for frame-background-mode.

* doc/custom.texi (Face Customization): Move discussion of face
inheritance here, from Faces section.

* doc/display.texi (Faces): Document frame-background-mode.

* doc/lispref/display.texi (Defining Faces): Move documentation of
frame-background-mode to the Emacs manual (Bug#7774).

12 years agoMark last change as tiny.
Chong Yidong [Sun, 5 Aug 2012 08:52:45 +0000 (16:52 +0800)]
Mark last change as tiny.

12 years agoAdd declares for viper-deflocalvar and viper-loop.
Vegard Øye [Sun, 5 Aug 2012 08:51:59 +0000 (16:51 +0800)]
Add declares for viper-deflocalvar and viper-loop.

* lisp/emulation/viper-init.el (viper-deflocalvar): Add docstring and
indentation declaration.
(viper-loop): Add indentation declaration.

Fixes: debbugs:7025
12 years agoImprovements to local-variable reporting in `describe-variable'.
Chong Yidong [Sun, 5 Aug 2012 08:41:12 +0000 (16:41 +0800)]
Improvements to local-variable reporting in `describe-variable'.

* lisp/help-fns.el (describe-variable): Add hyperlink for
directory-local variables files.  Improve buffer-local and
permanent-local reporting; suggested by MON KEY.

* lisp/help-mode.el (help-dir-local-var-def): New button type.

Fixes: debbugs:6644
12 years agoDocfix for kill-buffer-hook and others.
Chong Yidong [Sun, 5 Aug 2012 07:45:12 +0000 (15:45 +0800)]
Docfix for kill-buffer-hook and others.

* lisp/files.el (kill-buffer-hook): Provide a defvar.

* src/term.c (Vsuspend_tty_functions, Vresume_tty_functions):
* src/frame.c (Vdelete_frame_functions):
* src/emacs.c (Vkill_emacs_hook): Doc fix.

12 years ago* lisp/eshell/esh-ext.el (eshell/addpath): Also update eshell-path-env.
Glenn Morris [Sun, 5 Aug 2012 05:24:50 +0000 (22:24 -0700)]
* lisp/eshell/esh-ext.el (eshell/addpath): Also update eshell-path-env.

Fixes: debbugs:12013
12 years ago* configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
Ulrich Müller [Sun, 5 Aug 2012 05:00:52 +0000 (22:00 -0700)]
* configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.

Fixes: debbugs:11979
12 years agoNEWS clarification
Glenn Morris [Sun, 5 Aug 2012 04:56:28 +0000 (21:56 -0700)]
NEWS clarification

Fixes: debbugs:12104
12 years ago* wdired.el (wdired-mode, wdired-change-to-wdired-mode): Doc fixes.
Chong Yidong [Sun, 5 Aug 2012 04:19:21 +0000 (12:19 +0800)]
* wdired.el (wdired-mode, wdired-change-to-wdired-mode): Doc fixes.

12 years ago* fringe.el: Docstring and minor code improvements.
Chong Yidong [Sun, 5 Aug 2012 03:52:02 +0000 (11:52 +0800)]
* fringe.el: Docstring and minor code improvements.
(fringe-styles): Add docstring.
(fringe--check-style): New function.
(set-fringe-mode, set-fringe-style): Use it.
(fringe-mode, set-fringe-style): Doc fixes.

Fixes: debbugs:6480
12 years ago* files.el (set-auto-mode): Fix invalid setq call.
Chong Yidong [Sun, 5 Aug 2012 03:03:31 +0000 (11:03 +0800)]
* files.el (set-auto-mode): Fix invalid setq call.

12 years ago* lisp/isearch.el: Misc simplification; use defstruct.
Stefan Monnier [Sat, 4 Aug 2012 22:31:04 +0000 (18:31 -0400)]
* lisp/isearch.el: Misc simplification; use defstruct.
(isearch-mode-map): Dense maps now work like sparse ones.
(isearch--state): New defstruct.
(isearch-string-state, isearch-message-state, isearch-point-state)
(isearch-success-state, isearch-forward-state)
(isearch-other-end-state, isearch-word-state, isearch-error-state)
(isearch-wrapped-state, isearch-barrier-state)
(isearch-case-fold-search-state, isearch-pop-fun-state): Remove,
replaced by defstruct's accessors.
(isearch--set-state): Rename from isearch-top-state and change
calling convention.
(isearch-push-state): Use new isearch--get-state.
(isearch-toggle-word): Disable regexp when enabling word.
(isearch-message-prefix): Remove unused arg _c-q-hack.
(isearch-message-suffix): Remove unused arg _ellipsis.

12 years agoTODO trivia
Glenn Morris [Sat, 4 Aug 2012 18:07:50 +0000 (11:07 -0700)]
TODO trivia

12 years agoFix compilation --with-x-toolkit=no.
Eli Zaretskii [Sat, 4 Aug 2012 14:36:36 +0000 (17:36 +0300)]
Fix compilation --with-x-toolkit=no.

 stc/xfns.c (x_set_menu_bar_lines): Fix compilation error in
 --with-x-toolkit=no builds by using FVAR.
 Reported by Carsten Mattner <carstenmattner@gmail.com>.

12 years agoDoc fixes and improvements for syntax tables.
Chong Yidong [Sat, 4 Aug 2012 14:33:00 +0000 (22:33 +0800)]
Doc fixes and improvements for syntax tables.

* src/syntax.c (Fmodify_syntax_entry): Doc fix.

* doc/lispref/syntax.texi (Syntax Basics): Rearrange the text for clarity.
Fix description of syntax table inheritance.
(Syntax Table Functions): Don't refer to internal contents of
syntax table, since that is not explained yet.  Copyedits.
(Standard Syntax Tables): Node deleted.
(Syntax Table Internals): Misc clarifications.  Improve table
formatting.

* doc/lispref/keymaps.texi (Inheritance and Keymaps):
* doc/lispref/text.texi (Sticky Properties): Tweak index entry.

12 years agoFix bug #11959 with startup warnings on MS-Windows about ../site-lisp.
Eli Zaretskii [Sat, 4 Aug 2012 14:17:10 +0000 (17:17 +0300)]
Fix bug #11959 with startup warnings on MS-Windows about ../site-lisp.

 src/w32.c (init_environment): Change the default values of many
 environment variables in dflt_envvars[] to NULL, to avoid pushing
 them into environment when they were not already defined.  Remove
 the code that deletes site-lisp subdirectories from the default
 value of EMACSLOADPATH, as it is no longer needed.
 (check_windows_init_file): Now external, not static.  Use
 Vload_path as is, without adding anything, as this function is now
 called when Vload_path is already set up.
 src/w32.h (check_windows_init_file): Add prototype.
 src/emacs.c (init_cmdargs) [WINDOWSNT]: When running from the build
 directory, ignore the /*/i386/ tail in Vinvocation_directory, for
 compatibility with Posix platforms.
 (main): Move the call to check_windows_init_file to here from
 w32.c.
 (decode_env_path) [WINDOWSNT]: Expand the %emacs_dir%/ prefix, if
 any, in the DEFALT argument into the root of the Emacs build or
 installation tree, as appropriate.
 src/callproc.c (init_callproc_1): Call decode_env_path instead of
 doing its equivalent by hand.
 (init_callproc): Replace DOS_NT condition with MSDOS, thus letting
 the code that sets Vexec_path run on MS-Windows.
 src/lread.c (init_lread): Add comments to #ifdef's.

 nt/paths.h (PATH_LOADSEARCH, PATH_SITELOADSEARCH, PATH_EXEC)
 (PATH_DATA, PATH_DOC): Replace dummy directory names with
 directories relative to %emacs_dir%.
 (PATH_EXEC): Add lib-src/oo-spd/i386 and lib-src/oo/i386, to cater
 to the use case of running un-installed Emacs.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 4 Aug 2012 10:17:29 +0000 (06:17 -0400)]
Auto-commit of generated files.