bpt/emacs.git
11 years agoUse KSET for write access to Lisp_Object members of struct kboard.
Dmitry Antipov [Mon, 13 Aug 2012 03:44:27 +0000 (07:44 +0400)]
Use KSET for write access to Lisp_Object members of struct kboard.
* keyboard.h (KSET): New macro.
* callint.c, category.c, frame.c, keyboard.c, keyboard.h, macros.c:
* msdos.c, nsfns.m, nsterm.m, term.c, w32fns.c, w32term.c, xfns.c:
* xterm.c: Adjust users.

11 years agoUse BSET for write access to Lisp_Object members of struct buffer.
Dmitry Antipov [Mon, 13 Aug 2012 03:39:07 +0000 (07:39 +0400)]
Use BSET for write access to Lisp_Object members of struct buffer.
* buffer.h (BSET): New macro.
* buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c:
* fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c:
* minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c:
* window.c, xdisp.c, xfns.c: Adjust users.

11 years ago* lisp/subr.el (internal--before-with-seleted-window)
Stefan Monnier [Sun, 12 Aug 2012 22:52:33 +0000 (18:52 -0400)]
* lisp/subr.el (internal--before-with-seleted-window)
(internal--after-with-seleted-window): New functions.
(with-selected-window): Use them, to replace dependency on tty-top-frame.

11 years agoMerge from upstream ruby-mode.el
Nobuyoshi Nakada [Sun, 12 Aug 2012 22:06:56 +0000 (18:06 -0400)]
Merge from upstream ruby-mode.el
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary
binding for `newline'.
(ruby-move-to-block): When moving backward, stop at block opening,
not indentation.
* progmodes/ruby-mode.el (ruby-brace-to-do-end)
(ruby-do-end-to-brace, ruby-toggle-block): New functions.
* progmodes/ruby-mode.el (ruby-mode-map): Add binding for
`ruby-toggle-block'.
* test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening)
(ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.

11 years ago* lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
David Engster [Sun, 12 Aug 2012 17:35:15 +0000 (13:35 -0400)]
* lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
file-name-directory and file-name-nondirectory internally.

Fixes: debbugs:11981

11 years ago* lisp/ibuffer.el (ibuffer-do-toggle-read-only):
Stefan Monnier [Sun, 12 Aug 2012 17:29:53 +0000 (13:29 -0400)]
* lisp/ibuffer.el (ibuffer-do-toggle-read-only):
* lisp/dired.el (dired-toggle-read-only):
* lisp/buff-menu.el (Buffer-menu-toggle-read-only):
* lisp/bindings.el (mode-line-toggle-read-only):
* lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.

11 years ago* descr-text.el (describe-char): Put the overlays over the
Andreas Schwab [Sun, 12 Aug 2012 09:35:57 +0000 (11:35 +0200)]
* descr-text.el (describe-char): Put the overlays over the
"displayed as" character.

11 years agocalc/calc-units.el (math-default-units-table): Give it an
Jay Belanger [Sun, 12 Aug 2012 04:32:28 +0000 (23:32 -0500)]
calc/calc-units.el (math-default-units-table): Give it an
initial value.
(math-put-default-units): Add options to put composite units and unit
systems in default units table.
(calc-convert-units): Send composite units to `math-put-default-units'
when appropriate.

11 years agoCPP-DEFINES misc cleanup
Glenn Morris [Sun, 12 Aug 2012 03:13:37 +0000 (20:13 -0700)]
CPP-DEFINES misc cleanup

11 years agoRemove some defines that are no longer present
Glenn Morris [Sat, 11 Aug 2012 22:39:36 +0000 (15:39 -0700)]
Remove some defines that are no longer present

11 years ago* src/lread.c (syms_of_lread): Initialize Vlexical_binding.
BT Templeton [Sat, 11 Aug 2012 15:34:01 +0000 (11:34 -0400)]
* src/lread.c (syms_of_lread): Initialize Vlexical_binding.

11 years agoLast change fixes Bug#12069
Jason Rumney [Sat, 11 Aug 2012 14:50:28 +0000 (22:50 +0800)]
Last change fixes Bug#12069

11 years ago* lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
Jason Rumney [Sat, 11 Aug 2012 14:48:37 +0000 (22:48 +0800)]
* lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
look up proxy credentials.

11 years ago* nsterm.m (not_in_argv): New function.
Jan Djärv [Sat, 11 Aug 2012 09:10:08 +0000 (11:10 +0200)]
* nsterm.m (not_in_argv): New function.
(application:openFile, application:openTempFile:):
(application:openFileWithoutUI:, application:openFiles:): Open file
if not_in_argv returns non-zero.

Fixes: debbugs:12171

11 years agoUse GtkFontChooser on Gtk+ 3.2 and up.
Jan Djärv [Sat, 11 Aug 2012 08:54:35 +0000 (10:54 +0200)]
Use GtkFontChooser on Gtk+ 3.2 and up.

* src/gtkutil.c (gtk_font_chooser_dialog_new, GTK_FONT_CHOOSER)
(gtk_font_chooser_set_font, gtk_font_chooser_get_font): Define
for Gtk+ versions less than 3.2.
(xg_get_font_name): Use those functions/macros here.
Reported by Frans Oilinki <moilinki@gmail.com>.

11 years agoChangeLog date fixes
Glenn Morris [Sat, 11 Aug 2012 04:46:38 +0000 (21:46 -0700)]
ChangeLog date fixes

11 years agoMerge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.com
Chong Yidong [Sat, 11 Aug 2012 02:13:55 +0000 (10:13 +0800)]
Merge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.com

11 years ago* lib/makefile.w32-in (STAT_TIME_H): New macro.
Juanma Barranquero [Fri, 10 Aug 2012 21:29:38 +0000 (23:29 +0200)]
* lib/makefile.w32-in (STAT_TIME_H): New macro.
(FTOASTR_C, $(BLD)/stat-time.$(O), $(BLD)/timespec.$(O))
($(BLD)/u64.$(O)): Update dependencies.

11 years ago* lisp/gnus/gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
Stefan Monnier [Fri, 10 Aug 2012 21:20:24 +0000 (17:20 -0400)]
* lisp/gnus/gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
Use defsetf.

11 years ago* lisp/emacs-lisp/rx.el (rx-constituents): Don't define as constant.
Stefan Monnier [Fri, 10 Aug 2012 21:03:10 +0000 (17:03 -0400)]
* lisp/emacs-lisp/rx.el (rx-constituents): Don't define as constant.
(rx-form): Simplify.

11 years ago* test/automated/ruby-mode-tests.el (ruby-should-indent):
Dmitry Gutov [Fri, 10 Aug 2012 20:25:43 +0000 (16:25 -0400)]
* test/automated/ruby-mode-tests.el (ruby-should-indent):
Add docstring, check (current-indentation) instead of (current-column).
(ruby-should-indent-buffer): New function.
Add tests for `ruby-deep-indent-paren' behavior.
Port all tests from test/misc/test_ruby_mode.rb in Ruby repo.

Fixes: debbugs:12169

11 years agoMerge stuff from upsteam ruby-mode, part 1.
Dmitry Gutov [Fri, 10 Aug 2012 20:19:09 +0000 (16:19 -0400)]
Merge stuff from upsteam ruby-mode, part 1.
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove deprecated
binding (use `M-;' instead).
(ruby-expr-beg, ruby-parse-partial): ?, _, and : are symbol
constituents, ! is not (but kinda should be).
(ruby-singleton-class-p): New function.
(ruby-expr-beg, ruby-in-here-doc-p)
(ruby-syntax-propertize-heredoc): Use it.
(ruby-syntax-propertize-function): Adjust for changes in
`ruby-syntax-propertize-heredoc'.

* test/automated/ruby-mode-tests.el (ruby-should-indent)
(ruby-assert-state): New functions.
Add new tests.

Fixes: debbugs:12169

11 years ago* lisp/emacs-lisp/cl-macs.el (cl-loop): Improve debug spec.
Stefan Monnier [Fri, 10 Aug 2012 19:34:36 +0000 (15:34 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-loop): Improve debug spec.

11 years agoMove IF_LINT from lisp.h to conf_post.h
Glenn Morris [Fri, 10 Aug 2012 18:23:45 +0000 (14:23 -0400)]
Move IF_LINT from lisp.h to conf_post.h

* src/conf_post.h (IF_LINT, lint_assume): Move here from lisp.h.
* src/lisp.h (IF_LINT, lint_assume): Move to conf_post.h.

* lib-src/make-docfile.c (IF_LINT):
* lib-src/emacsclient.c (IF_LINT): Remove (in config.h now).

11 years agoRemove some unnecessary bindings of same-window-* variables.
Chong Yidong [Fri, 10 Aug 2012 16:46:07 +0000 (00:46 +0800)]
Remove some unnecessary bindings of same-window-* variables.

* lisp/progmodes/python.el (python-shell-get-process-name): Don't mess
with same-window-buffer-names.

* lisp/eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names): Make obsolete.
(eshell-buffer-name, eshell-unload-hook): Don't use them.
(eshell): Just use pop-to-buffer-same-window instead.

11 years agoBind M-= back to count-words-region, and let it accept a prefix arg.
Chong Yidong [Fri, 10 Aug 2012 16:02:48 +0000 (00:02 +0800)]
Bind M-= back to count-words-region, and let it accept a prefix arg.

* lisp/bindings.el: Bind M-= back to count-words-region.

* lisp/simple.el (count-words-region): Accept a prefix arg for acting
on the entire buffer.
(count-words--buffer-message): New helper function.

11 years ago* lisp/term/x-win.el (x-menu-bar-open): Always pass last-nonmenu-event.
Stefan Monnier [Fri, 10 Aug 2012 14:47:12 +0000 (10:47 -0400)]
* lisp/term/x-win.el (x-menu-bar-open): Always pass last-nonmenu-event.
* lisp/subr.el (eventp): `nil' is not an event, and eventp is not hot.
(event-start, event-end): Use posn-at-point to return a more
informative posn.
(posnp): New function.
* lisp/mouse.el (popup-menu-normalize-position): Use it.

11 years agolisp/gnus/auth-source.el: (auth-source-plstore-search, auth-source-secrets-search...
Daiki Ueno [Fri, 10 Aug 2012 14:38:37 +0000 (14:38 +0000)]
lisp/gnus/auth-source.el: (auth-source-plstore-search, auth-source-secrets-search): Ignore :require and :type in search spec

11 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>.

11 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'.

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

11 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.

11 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.

11 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.

11 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.

11 years ago* test/automated/files.el (files-test-disable-local-variables): New test.
Glenn Morris [Fri, 10 Aug 2012 07:13:06 +0000 (00:13 -0700)]
* test/automated/files.el (files-test-disable-local-variables): New test.

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

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

11 years ago* admin/bzrmerge.el (bzrmerge-resolve): Disable local eval:.
Glenn Morris [Fri, 10 Aug 2012 06:57:34 +0000 (23:57 -0700)]
* admin/bzrmerge.el (bzrmerge-resolve): Disable local eval:.

11 years ago* lisp/emacs-lisp/copyright.el (copyright-update-directory): Logic fix.
Glenn Morris [Fri, 10 Aug 2012 06:56:01 +0000 (23:56 -0700)]
* lisp/emacs-lisp/copyright.el (copyright-update-directory): Logic fix.

11 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.

11 years agoDisable local eval: in some places
Glenn Morris [Fri, 10 Aug 2012 06:53:52 +0000 (23:53 -0700)]
Disable local eval: in some places

* tutorial.el (help-with-tutorial):
* emacs-lisp/copyright.el (copyright-update-directory):
* emacs-lisp/autoload.el (autoload-find-generated-file)
(autoload-find-file): Disable local eval: (for insurance).

11 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.

11 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.

11 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).

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

11 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.

11 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.

11 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

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

11 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)".

11 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

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

11 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

11 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

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

11 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

11 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.

11 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

11 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.

11 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

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

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

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

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

11 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.

11 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)

11 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.

11 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.

11 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

11 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

11 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

11 years ago* test/automated/files.el: New file.
Glenn Morris [Wed, 8 Aug 2012 07:33:10 +0000 (00:33 -0700)]
* test/automated/files.el: New file.

11 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.

11 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.

11 years ago* unexmacosx.c (copy_data_segment): Copy initialized data in statically linked librar...
YAMAMOTO Mitsuharu [Wed, 8 Aug 2012 05:44:53 +0000 (14:44 +0900)]
* unexmacosx.c (copy_data_segment): Copy initialized data in statically linked libraries from input file rather than memory.

11 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.

11 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.

11 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.

11 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.

11 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.

11 years ago* test/automated/Makefile.in (all): Fix typo.
Glenn Morris [Tue, 7 Aug 2012 19:11:18 +0000 (15:11 -0400)]
* test/automated/Makefile.in (all): Fix typo.

11 years agohack-local-variables-filter fix for bug#12155
Glenn Morris [Tue, 7 Aug 2012 18:41:39 +0000 (14:41 -0400)]
hack-local-variables-filter fix for bug#12155

* lisp/files.el (hack-local-variables-filter): If an eval: form is not
known to be safe, and enable-local-variables is :safe, then ignore
the form totally, as is done for non-eval forms.

11 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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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.

11 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.

11 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