1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00
Commit graph

107223 commits

Author SHA1 Message Date
Dmitry Antipov
2b90362b19 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.
2012-08-06 20:55:46 +04:00
Eli Zaretskii
a08eadfecc 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".
2012-08-06 19:55:41 +03:00
Eli Zaretskii
5f50daf249 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.
2012-08-06 19:36:47 +03:00
Stefan Monnier
cbcc70072c * src/buffer.h (struct buffer): Revert `indirections' to a simple int;
that should be sufficient for everyone.
2012-08-06 12:22:43 -04:00
Jan Djärv
4d365fa4cc * keyboard.c (timer_check_2): Add break so timer_check returns next timeout. 2012-08-06 18:09:02 +02:00
Dmitry Antipov
dd86bd8258 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>.
2012-08-06 19:45:27 +04:00
Jan Djärv
054e16686c Use FSET.
* nsmenu.m (ns_update_menubar): Use FSET.

* nsterm.m (ns_frame_rehighlight): Use FSET.
2012-08-06 14:54:54 +02:00
Julien Danjou
16ac6eb63b gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Remove autoload 2012-08-06 11:56:36 +00:00
Dmitry Antipov
21238f1173 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.
2012-08-06 15:16:07 +04:00
Dmitry Antipov
077288cf3f 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.
2012-08-06 14:24:26 +04:00
Dmitry Antipov
71688bd7f9 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>.
2012-08-06 13:28:17 +04:00
Dmitry Antipov
f99bac932b 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>.
2012-08-06 12:32:49 +04:00
Glenn Morris
8c2a0f2dbf * src/lisp.mk (lisp): Add language/persian.elc. 2012-08-06 00:37:26 -07:00
Glenn Morris
9ce0496576 Add NEWS for language/persian.el. 2012-08-06 00:36:35 -07:00
Mohsen BANAN
89e5ffea45 * leim/quail/persian.el: Add some mappings.
(farsi-isiri-9147, farsi-transliterate-banan): Doc fixes.

Fixes: debbugs:11812
2012-08-06 00:34:35 -07:00
Mohsen BANAN
d5be7bd03b * lisp/language/persian.el: New file.
* lisp/loadup.el: Add language/persian.el.

Fixes: debbugs:11812
2012-08-06 00:31:31 -07:00
Glenn Morris
e296d94b33 * lisp/eshell/esh-ext.el (eshell/addpath): Use mapconcat. 2012-08-06 00:10:27 -07:00
Chong Yidong
90749b537a 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
2012-08-06 13:33:39 +08:00
Dmitry Antipov
edd74c3512 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.
2012-08-06 09:27:54 +04:00
Fabián Ezequiel Gallina
ba7b015436 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.
2012-08-06 00:27:43 -03:00
Glenn Morris
5eaeacb595 Tweak previous esh-ext.el change
* lisp/eshell/esh-ext.el (eshell/addpath): Use dolist.
Do less getting and setting of environment variables.
2012-08-05 18:23:37 -07:00
Julien Danjou
2483555870 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.
2012-08-06 02:15:34 +02:00
Julien Danjou
7d3d9073ba gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Add autoload 2012-08-05 22:02:24 +00:00
Andreas Schwab
9927964e69 Ignore stamp-h.in 2012-08-05 23:44:21 +02:00
Andreas Schwab
8671676ca1 * emacs.c (decode_env_path): Only use defaulted if WINDOWSNT. 2012-08-05 23:44:21 +02:00
Dmitry Antipov
663e2b3f88 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.
2012-08-05 19:47:28 +04:00
Chong Yidong
777fe95e05 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
2012-08-05 22:22:05 +08:00
Chong Yidong
b7ccbdc2e3 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
2012-08-05 22:14:54 +08:00
Lawrence Mitchell
d32e47aff6 * search.c (Freplace_match): Treat \? in the replacement text literally.
Fixes: debbugs:8161
2012-08-05 21:30:15 +08:00
Michael Albinus
68b0c113f6 * INSTALL: Explain, how to disable D-Bus at all. (Bug#12112) 2012-08-05 14:53:48 +02:00
Glenn Morris
685e57eaf3 Auto-commit of generated files. 2012-08-05 06:19:01 -04:00
Chong Yidong
35b6586e9d 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).
2012-08-05 17:24:55 +08:00
Chong Yidong
9e3b7800ff Mark last change as tiny. 2012-08-05 16:52:45 +08:00
Vegard Øye
d5c31f1ddd 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
2012-08-05 16:51:59 +08:00
Chong Yidong
f0422feb64 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
2012-08-05 16:41:12 +08:00
Chong Yidong
e5d9c0d111 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.
2012-08-05 15:45:12 +08:00
Glenn Morris
a4f2deaaeb * lisp/eshell/esh-ext.el (eshell/addpath): Also update eshell-path-env.
Fixes: debbugs:12013
2012-08-04 22:24:50 -07:00
Ulrich Müller
32d9ba9ac2 * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
Fixes: debbugs:11979
2012-08-04 22:00:52 -07:00
Glenn Morris
8d5dd3701c NEWS clarification
Fixes: debbugs:12104
2012-08-04 21:56:28 -07:00
Chong Yidong
615b0bf0b4 * wdired.el (wdired-mode, wdired-change-to-wdired-mode): Doc fixes. 2012-08-05 12:19:21 +08:00
Chong Yidong
d014c740b0 * 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
2012-08-05 11:52:02 +08:00
Chong Yidong
a9dd575408 * files.el (set-auto-mode): Fix invalid setq call. 2012-08-05 11:03:31 +08:00
Stefan Monnier
7c2dc8bd36 * 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.
2012-08-04 18:31:04 -04:00
Glenn Morris
ce555168d9 TODO trivia 2012-08-04 11:07:50 -07:00
Eli Zaretskii
8da0576b32 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>.
2012-08-04 17:36:36 +03:00
Chong Yidong
02676e5d3d 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.
2012-08-04 22:33:00 +08:00
Eli Zaretskii
76151e2ce7 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.
2012-08-04 17:17:10 +03:00
Glenn Morris
a09508f27e Auto-commit of generated files. 2012-08-04 06:17:29 -04:00
Eli Zaretskii
6b42bcfcfd Fix the MSDOS build as fallout of latest changes.
msdos/sedlibmk.inp (allocator.$(OBJEXT), careadlinkat.$(OBJEXT)): Fix
 editing out.
 msdos/sed2v2.inp (IS_DEVICE_SEP): Edit to match ':'.
 (IS_DIRECTORY_SEP, INTERNAL_TERMINAL): Fix Sed command syntax.
 (MSDOS): Define only if undefined, as MSDOS is a built-in macro,
 unless some std= switch to GCC is used.

 src/msdos.c (dos_set_window_size, IT_update_begin)
 (IT_frame_up_to_date, IT_set_frame_parameters): Use FVAR and WVAR
 instead of direct references.
2012-08-04 12:04:22 +03:00
Eli Zaretskii
97147da956 Fix Sed scripts and msdos.c as fallout of latest changes. 2012-08-04 11:58:33 +03:00