]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agoFix last change to allow compilation with low optimization levels.
Dmitry Antipov [Fri, 10 Aug 2012 13:24:20 +0000 (17:24 +0400)]
Fix last change to allow compilation with low optimization levels.
* intervals.c (INTERVALS_INLINE): Define to EXTERN_INLINE.
Reported by Jan Djärv <jan.h.d@swipnet.se>.

12 years ago* lisp/mouse.el (popup-menu-normalize-position): New function.
Masatake YAMATO [Fri, 10 Aug 2012 12:44:06 +0000 (08:44 -0400)]
* lisp/mouse.el (popup-menu-normalize-position): New function.
(popup-menu): Use `popup-menu-normalize-position' to normalize
the form for POSITION argument.
* lisp/term/x-win.el (x-menu-bar-open):
Use the value returend from (posn-at-point) as position
passed to `popup-menu'.

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

12 years agoUse common inline syntax in intervals.h.
Dmitry Antipov [Fri, 10 Aug 2012 09:37:43 +0000 (13:37 +0400)]
Use common inline syntax in intervals.h.
* intervals.h (INTERVALS_INLINE): New macro.
Change all users from LISP_INLINE.

12 years agoDefine Qnone once for all platforms.
Dmitry Antipov [Fri, 10 Aug 2012 09:24:03 +0000 (13:24 +0400)]
Define Qnone once for all platforms.
* frame.c (Qnone): Define here.
(syms_of_frame): DEFSYM it.
* lisp.h (Qnone): New declaration.
* nsfns.m, nsterm.h, nsterm.m, w32fns.c, w32font.c:
* xfns.c: Remove duplication.  Adjust users.

12 years agoRemove unused macros from intervals.h.
Dmitry Antipov [Fri, 10 Aug 2012 09:04:19 +0000 (13:04 +0400)]
Remove unused macros from intervals.h.
* intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
* intervals.c: Adjust comment.

12 years agoImprove commit in 2012-08-10T06:54:37Z!eliz@gnu.org.
Eli Zaretskii [Fri, 10 Aug 2012 07:16:58 +0000 (10:16 +0300)]
Improve commit in 2012-08-10T06:54:37Z!eliz@gnu.org.

 src/w32fns.c <w32_unicode_gui>: New static variable.
 (globals_of_w32fns): Initialize it according to os_subtype.
 (w32_init_class, w32_msg_pump, w32_wnd_proc): Use it instead of
 testing os_subtype.

12 years agoComments
Glenn Morris [Fri, 10 Aug 2012 07:07:07 +0000 (00:07 -0700)]
Comments

12 years agoChangeLog fixes
Glenn Morris [Fri, 10 Aug 2012 07:00:40 +0000 (00:00 -0700)]
ChangeLog fixes

12 years agoFix bug #10299 with Unicode characters sent on MS-Windows by MSKLC.
Eli Zaretskii [Fri, 10 Aug 2012 06:54:37 +0000 (09:54 +0300)]
Fix bug #10299 with Unicode characters sent on MS-Windows by MSKLC.

 src/w32fns.c (INIT_WINDOW_CLASS): New macro.
 (w32_init_class): Use it to initialize the Emacs class with either
 ANSI or Unicode API calls.
 (w32_msg_pump): Call GetMessageW and DispatchMessageW on NT and
 later.
 (w32_wnd_proc): If the character code sent by WM_CHAR or
 WM_SYSCHAR is above 255, post a WM_UNICHAR message, not the
 original message.  Call DefWindowProcW on NT and later.

12 years ago* src/Makefile.in (config_h): Fix conf_post.h out-of-tree build location.
Glenn Morris [Fri, 10 Aug 2012 00:47:21 +0000 (20:47 -0400)]
* src/Makefile.in (config_h): Fix conf_post.h out-of-tree build location.

12 years agoRemove some make-docfile.c undes that are no longer needed
Glenn Morris [Fri, 10 Aug 2012 00:16:33 +0000 (20:16 -0400)]
Remove some make-docfile.c undes that are no longer needed

* lib-src/make-docfile.c (main):
(fopen) [!WINDOWSNT]:
(chdir) [!DOS_NT]: No more need to undef.

12 years agoMove DIRECTORY_SEP from lisp.h to config.h
Glenn Morris [Fri, 10 Aug 2012 00:02:10 +0000 (20:02 -0400)]
Move DIRECTORY_SEP from lisp.h to config.h

* configure.ac (DIRECTORY_SEP): Move here from src/lisp.h.

* src/lisp.h (DIRECTORY_SEP): Let configure set it.

* nt/config.nt (DIRECTORY_SEP): Move here from src/lisp.h.

* lib-src/movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
Remove (they are in config.h now).

12 years agoComments
Glenn Morris [Thu, 9 Aug 2012 23:59:38 +0000 (19:59 -0400)]
Comments

12 years ago* lib-src/ebrowse.c (PATH_LIST_SEPARATOR): Remove
Glenn Morris [Thu, 9 Aug 2012 23:53:07 +0000 (19:53 -0400)]
* lib-src/ebrowse.c (PATH_LIST_SEPARATOR): Remove
Replace with SEPCHAR from config.h.

12 years agocalccomp.el (math-compose-expr): Add extra argument indicating that
Jay Belanger [Thu, 9 Aug 2012 14:46:03 +0000 (09:46 -0500)]
calccomp.el (math-compose-expr): Add extra argument indicating that
parentheses should be put around products in denominators.  Give
multiplication precedence over division during composition.

12 years agoConvert several man.el defvars to defcustoms.
Chong Yidong [Thu, 9 Aug 2012 13:37:31 +0000 (21:37 +0800)]
Convert several man.el defvars to defcustoms.

* man.el (Man-switches, Man-sed-command, Man-awk-command)
(Man-mode-hook, Man-cooked-hook, Man-untabify-command-args)
(Man-untabify-command, manual-program): Convert to defcustom.

Fixes: debbugs:10429
12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 9 Aug 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* lisp/vc/add-log.el (change-log-mode): Bind comment-start to nil.
Chong Yidong [Thu, 9 Aug 2012 08:16:13 +0000 (16:16 +0800)]
* lisp/vc/add-log.el (change-log-mode): Bind comment-start to nil.

This fixes M-q for Change Log entries which contain "(Bug#123)".

12 years ago* descr-text.el (describe-char): Don't insert extra newlines.
Chong Yidong [Thu, 9 Aug 2012 08:10:32 +0000 (16:10 +0800)]
* descr-text.el (describe-char): Don't insert extra newlines.

Fixes: debbugs:10127
12 years agoUpdate docstrings for last change.
Chong Yidong [Thu, 9 Aug 2012 07:50:49 +0000 (15:50 +0800)]
Update docstrings for last change.

12 years ago* lisp/vc/log-view.el (log-view-diff): Use use-region-p.
Chong Yidong [Thu, 9 Aug 2012 07:45:23 +0000 (15:45 +0800)]
* lisp/vc/log-view.el (log-view-diff): Use use-region-p.
(log-view-diff-changeset, log-view-minor-wrap): Likewise.

Fixes: debbugs:10133
12 years ago* align.el (align-region): Delete temporary markers.
Chong Yidong [Thu, 9 Aug 2012 07:34:53 +0000 (15:34 +0800)]
* align.el (align-region): Delete temporary markers.
Plus some code cleanups.

Fixes: debbugs:10047
12 years agoChangeLog merge date fixes
Glenn Morris [Thu, 9 Aug 2012 07:15:04 +0000 (00:15 -0700)]
ChangeLog merge date fixes

12 years ago* etc/images/splash.svg, etc/images/splash.png: Tweak SVG paths
Chong Yidong [Thu, 9 Aug 2012 05:25:21 +0000 (13:25 +0800)]
* etc/images/splash.svg, etc/images/splash.png: Tweak SVG paths
to improve legibility.

12 years agoUse TSET for write access to Lisp_Object slots of struct terminal.
Dmitry Antipov [Thu, 9 Aug 2012 05:14:23 +0000 (09:14 +0400)]
Use TSET for write access to Lisp_Object slots of struct terminal.
* termhooks.h (TSET): New macro.
* coding.c, terminal.c, xselect.c: Adjust users.

12 years ago* progmodes/python.el (python-pdbtrack-tracked-buffer)
Fabián Ezequiel Gallina [Thu, 9 Aug 2012 04:08:29 +0000 (01:08 -0300)]
* progmodes/python.el (python-pdbtrack-tracked-buffer)
(python-pdbtrack-buffers-to-kill, python-shell-internal-buffer)
(python-shell-internal-last-output): Use make-local-variable
instead of make-variable-buffer-local.

12 years ago* progmodes/python.el: Enhancements to forward-sexp.
Fabián Ezequiel Gallina [Thu, 9 Aug 2012 03:30:37 +0000 (00:30 -0300)]
* progmodes/python.el: Enhancements to forward-sexp.
(python-nav-forward-sexp): Rename from
python-nav-forward-sexp-function.
(python-nav--forward-sexp, python-nav--backward-sexp): New
functions.

12 years agocalc/calc-menu.el (calc-modes-menu): Fix menu item.
Jay Belanger [Thu, 9 Aug 2012 03:19:34 +0000 (22:19 -0500)]
calc/calc-menu.el (calc-modes-menu): Fix menu item.

12 years agocalc-menu.el (calc-modes-menu): Add entries for matrix modes
Jay Belanger [Thu, 9 Aug 2012 02:51:58 +0000 (21:51 -0500)]
calc-menu.el (calc-modes-menu): Add entries for matrix modes
and simplification modes.

12 years ago* lisp/delsel.el (delete-selection-pre-hook): Don't propagate the
Stefan Monnier [Thu, 9 Aug 2012 02:18:50 +0000 (22:18 -0400)]
* lisp/delsel.el (delete-selection-pre-hook): Don't propagate the
file-supersession signals.

Fixes: debbugs:12161
12 years ago* src/xdisp.c (safe_eval_handler): Remove prototype. Receive args describing
Stefan Monnier [Wed, 8 Aug 2012 19:53:44 +0000 (15:53 -0400)]
* src/xdisp.c (safe_eval_handler): Remove prototype.  Receive args describing
the failing expression, include them in the error message.
* src/eval.c (internal_condition_case_n): Pass nargs and args to hfun.
* src/lisp.h (internal_condition_case_n): Update declaration.

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