Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 19:27:27 +0000 (21:27 +0200)]
Only bind `coding-system-for-*' around the process open call to avoid auth-source side effects.
Chong Yidong [Sun, 21 Aug 2011 17:56:19 +0000 (13:56 -0400)]
* lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845).
Chong Yidong [Sun, 21 Aug 2011 17:43:31 +0000 (13:43 -0400)]
Improve Edebug error for attempting to instrument built-in functions.
* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use it to
signal an error for built-in functions.
* lisp/emacs-lisp/find-func.el (find-function-noselect): New arg
lisp-only.
Fixes: debbugs:6664
Gnus developers [Sun, 21 Aug 2011 09:39:07 +0000 (09:39 +0000)]
Merge changes made in Gnus trunk.
nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source instead.
pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
gnus-util.el (gnus-process-live-p): Copy over compat function.
pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop processing.
nntp.el (nntp-kill-buffer): Kill the process before killing the buffer to avoid warnings.
gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision.
Lars Magne Ingebrigtsen [Sun, 21 Aug 2011 04:11:59 +0000 (06:11 +0200)]
Introduce a new variable to allow controlling the SMTP user name
* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.
Chong Yidong [Sun, 21 Aug 2011 03:02:39 +0000 (23:02 -0400)]
Minor fix to last change.
Chong Yidong [Sun, 21 Aug 2011 03:00:52 +0000 (23:00 -0400)]
Add some docstrings to font-lock.el.
* font-lock.el (font-lock-fontify-region)
(font-lock-unfontify-region, font-lock-default-fontify-buffer)
(font-lock-default-unfontify-buffer)
(font-lock-default-fontify-region)
(font-lock-default-unfontify-region): Add docstrings (Bug#8624).
Chong Yidong [Sun, 21 Aug 2011 02:24:07 +0000 (22:24 -0400)]
Fix to `ant' compile regexp.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Fix 2011-05-09 change to `ant' regexp.
Chong Yidong [Sun, 21 Aug 2011 02:07:00 +0000 (22:07 -0400)]
Fix error in compilation-error-properties.
* lisp/progmodes/compile.el (compilation-error-properties): Fix
confusion between file struct and message struct (Bug#9319).
Chong Yidong [Sun, 21 Aug 2011 01:01:12 +0000 (21:01 -0400)]
Fix for browse-url-firefox on Windows.
* lisp/net/browse-url.el (browse-url-firefox): Don't call
browse-url-firefox-sentinel unless using -remote.
Fixes: debbugs:9328
Glenn Morris [Sat, 20 Aug 2011 22:53:00 +0000 (15:53 -0700)]
* lisp/tutorial.el (help-with-tutorial): Avoid an error on short screens.
Glenn Morris [Sat, 20 Aug 2011 22:41:41 +0000 (15:41 -0700)]
Update some tutorial key bindings; ref bug#8739.
* lisp/tutorial.el (tutorial--default-keys): Update some default bindings.
* etc/NEWS: delete-forward-char is not bound to C-d.
* lisp/bindings.el, lisp/windows.el: Comments.
Glenn Morris [Sat, 20 Aug 2011 22:26:52 +0000 (15:26 -0700)]
* lisp/files.el (hack-local-variables): Fully ignore case for "mode:".
Glenn Morris [Sat, 20 Aug 2011 22:19:53 +0000 (15:19 -0700)]
Add missing file to leim/Makefile.
* leim/Makefile.in (OTHERS):
* leim/makefile.w32-in (MISC): Add ipa-praat.elc.
Alan Mackenzie [Sat, 20 Aug 2011 22:02:25 +0000 (22:02 +0000)]
Resolve invalid use of a regexp in regexp-opt.
cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
java annotation.
cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
java annotation.
cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
java.
(c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".
Chong Yidong [Sat, 20 Aug 2011 21:22:46 +0000 (17:22 -0400)]
* eval.c (Fcondition_case): Document `debug' symbol in error handler.
Chong Yidong [Sat, 20 Aug 2011 21:17:06 +0000 (17:17 -0400)]
* src/eval.c (Fsignal): Handle `debug' symbol in error handler.
Fixes: debbugs:9329
Chong Yidong [Sat, 20 Aug 2011 19:30:53 +0000 (15:30 -0400)]
* startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix (Bug#9274).
Alan Mackenzie [Sat, 20 Aug 2011 14:54:21 +0000 (14:54 +0000)]
Fontify CPP expressions correctly when starting in the middle of such a
construct. Mainly for when jit-lock etc. starts a chunk here.
cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare): Test for being in a CPP form which
takes an expression.
cc-langs.el (c-cpp-expr-intro-re): New lang-variable.
Alan Mackenzie [Sat, 20 Aug 2011 14:43:33 +0000 (14:43 +0000)]
Fontify CPP expressions correctly when starting in the middle of such a
construct. Mainly for when jit-lock etc. starts a chunk here.
cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare): Test for being in a CPP form which
takes an expression.
cc-langs.el (c-cpp-expr-intro-re): New lang-variable.
Martin Rudalics [Sat, 20 Aug 2011 10:10:05 +0000 (12:10 +0200)]
Remove some commented-out obsoletion declarations from window.el.
Martin Rudalics [Sat, 20 Aug 2011 10:02:04 +0000 (12:02 +0200)]
When displaying a buffer don't use or split a side window unless explicitly requested.
* window.el (display-buffer-reuse-window)
(display-buffer-pop-up-window): Don't reuse or split a side
window.
Katsumi Yamaoka [Sat, 20 Aug 2011 00:27:04 +0000 (00:27 +0000)]
lisp/gnus/ChangeLog: Fix last change.
Gnus developers [Sat, 20 Aug 2011 00:20:39 +0000 (00:20 +0000)]
Merge changes made in Gnus trunk.
nnimap.el (nnimap-transform-headers): Protect against (NIL ...) bodystructures (bug#9314).
starttls.el (starttls-any-program-available): Define as obsolete function.
gnus-util.el (gnus-y-or-n-p): Reinstate the message-clearing y-or-n-p versions which Gnus use when appropriate.
gnus-group.el (gnus-group-clear-data): Add a y-or-n query, since it's a pretty destructive command.
nnmail.el (nnmail-extra-headers): Clarify slightly (bug#9302).
message.el (message-fix-before-sending): Make a different warning about NUL characters (bug#9270).
gnus-sum.el (gnus-auto-select-subject): Allow specifying a function from custom (bug#9260).
Glenn Morris [Fri, 19 Aug 2011 18:23:09 +0000 (14:23 -0400)]
files.el fix for bug#9331
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
Downcase "Mode:".
Eli Zaretskii [Fri, 19 Aug 2011 11:30:29 +0000 (14:30 +0300)]
Avoid a crash in mouse-highlight of Speedbar frames.
src/xfaces.c (face_at_buffer_position): Avoid repeated evaluation of
face ID by FACE_FROM_ID, and avoid a crash when mouse is moved
from an Org mode buffer to a Speedbar frame.
Eli Zaretskii [Fri, 19 Aug 2011 10:18:40 +0000 (13:18 +0300)]
Fix bidi cursor motion when a line begins with a composed character.
src/xdisp.c (RECORD_MAX_MIN_POS): If the display element comes from
a composition, take its buffer position from IT->cmp_it.charpos.
Katsumi Yamaoka [Fri, 19 Aug 2011 08:52:18 +0000 (08:52 +0000)]
gnus-art.el (gnus-insert-mime-button, gnus-mime-display-alternative): Make button keymap non-sticky after buttons.
Chong Yidong [Fri, 19 Aug 2011 00:12:45 +0000 (20:12 -0400)]
Adapt themes to new error/warning/success faces.
* etc/themes/dichromacy-theme.el:
* etc/themes/wheatgrass-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tango-dark-theme.el: Add error, warning, and success faces.
Gnus developers [Thu, 18 Aug 2011 22:12:47 +0000 (22:12 +0000)]
Merge changes made in Gnus trunk.
nnmairix.el (nnmairix-request-set-mark, nnmairix-goto-original-article): Remove adding of article to registry, since `gnus-registry-add-group' isn't available anymore.
(nnmairix-determine-original-group-from-registry): Use `gnus-registry-get-id-key' since `gnus-registry-fetch-groups' isn't available anymore.
gnus-spec.el (gnus-lrm-string): Use 8206 instead of ?\x200e to make things work in Emacs 22 and XEmacs, too.
gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): LRM-ify the default From.
gnus-spec.el (gnus-lrm-string-p): New macro.
(gnus-lrm-string): New constant.
(gnus-summary-line-format-spec): LRM-ify the from.
(gnus-tilde-max-form): LRM-ify string chopping.
gnus-ems.el (gnus-string-mark-left-to-right): New function.
Glenn Morris [Thu, 18 Aug 2011 20:57:10 +0000 (16:57 -0400)]
Standardize/fix some Org header comments.
* org-freemind.el: Remove duplicate, incorrect license notice.
* ob-lisp.el: Convert consecutive copyright years to ranges.
* ob-js.el, ob-scheme.el: Standardize license text.
* ob-R.el, ob-clojure.el, ob-exp.el, ob-lisp.el, ob-lob.el, ob-perl.el:
* ob-python.el, ob-ref.el, ob.el:
Put multiple authors on separate lines.
Glenn Morris [Thu, 18 Aug 2011 20:41:06 +0000 (16:41 -0400)]
Restore clobbered changes to Org copyright years.
Eli Zaretskii [Thu, 18 Aug 2011 18:46:02 +0000 (21:46 +0300)]
Protect the bidi iterator against zero bidi properties.
src/bidi.c (bidi_get_type): If bidi_type_table reports zero as the
character bidirectional type, use STRONG_L instead. Fixes crashes
in a buffer produced by `describe-categories'.
Eli Zaretskii [Thu, 18 Aug 2011 16:27:59 +0000 (19:27 +0300)]
Rename string-mark-left-to-right to bidi-string-mark-left-to-right in the manual.
Eli Zaretskii [Thu, 18 Aug 2011 16:09:40 +0000 (19:09 +0300)]
Fix bidi reordering around TAB characters covered by display properties.
src/dispextern.h (struct bidi_it): Move disp_pos and disp_prop_p
members before the level stack, so they would be saved and
restored when copying iterator state. Fixes incorrect reordering
around TABs covered by display properties.
Chong Yidong [Thu, 18 Aug 2011 15:53:29 +0000 (11:53 -0400)]
Add L and R categories to standard category table, and use them.
* lisp/international/characters.el: Add L and R categories.
* lisp/subr.el (bidi-string-mark-left-to-right): Rename from
string-mark-left-to-right. Use category search.
* lisp/buff-menu.el (Buffer-menu-buffer+size): Callers changed.
Andreas Schwab [Thu, 18 Aug 2011 15:33:22 +0000 (17:33 +0200)]
* src/process.c (Fnetwork_interface_list): Correctly determine buffer
size.
Juri Linkov [Thu, 18 Aug 2011 11:36:19 +0000 (14:36 +0300)]
* lisp/faces.el (error, warning, success): New faces with definitions
copied from old default values of `font-lock-warning-face',
`compilation-warning', `compilation-info'.
* lisp/font-lock.el (font-lock-warning-face): Inherit from `error'.
* lisp/progmodes/compile.el (compilation-error): Inherit from `error'.
(compilation-warning): Inherit from `warning'.
(compilation-info): Inherit from `success'.
* lisp/dired.el (dired-marked): Inherit from `warning'.
(dired-flagged): Inherit from `error'.
Fixes: debbugs:6117
Eli Zaretskii [Thu, 18 Aug 2011 10:53:55 +0000 (13:53 +0300)]
Improve documentation of bidi in ELisp manual.
doc/lispref/nonascii.texi (Character Properties): Document use of
`bidi-class' and `mirroring' properties as part of reordering.
Provide cross-references to "Bidirectional Display".
doc/lispref/display.texi (Bidirectional Display): Document the pitfalls of
concatenating strings with bidirectional content, with possible
solutions. Document string-mark-left-to-right. Mention paragraph
direction in modes that inherit from prog-mode. Document use of
`bidi-class' and `mirroring' properties as part of reordering.
etc/NEWS: Mark string-mark-left-to-right as documented.
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 22:09:19 +0000 (22:09 +0000)]
Merge changes made in Gnus trunk.
message.el (message-is-yours-p): Allow disabling canlock checking (bug#9295).
(message-shoot-gnksa-feet): Add `canlock-verify'.
(message-auto-save-directory): Use ~/ as the auto-save directory if the message directory isn't writable (bug#9304).
auth-source.el (auth-source-netrc-saver): Make the .authinfo file non-world-readable.
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 22:02:49 +0000 (00:02 +0200)]
(auth-source): Require to avoid problems with binding variables.
Also clean up some unused autoloads.
Fixes: debbugs:9298
Chong Yidong [Wed, 17 Aug 2011 21:40:13 +0000 (17:40 -0400)]
Remove aborts from internal_condition_case*.
* src/eval.c (internal_condition_case, internal_condition_case_1)
(internal_condition_case_2, internal_condition_case_n): Remove
unnecessary aborts.
Fixes: debbugs:9081
Lars Magne Ingebrigtsen [Wed, 17 Aug 2011 20:50:33 +0000 (22:50 +0200)]
(network-stream-open-starttls): Support using starttls.el without using gnutls-cli.
Juri Linkov [Wed, 17 Aug 2011 17:11:49 +0000 (20:11 +0300)]
* lisp/progmodes/grep.el (rgrep): Handle the case when `grep-find-command'
is a cons cell.
Fixes: debbugs:9278
Eli Zaretskii [Wed, 17 Aug 2011 08:50:08 +0000 (11:50 +0300)]
Fix bug #9311 with loading on MS-Windows .elc files in root directories.
src/lread.c (Fload) [DOS_NT]: If `openp' returns -2, but the file
has no `load' handler, try opening the file locally.
Martin Rudalics [Wed, 17 Aug 2011 06:50:31 +0000 (08:50 +0200)]
In display-buffer-pop-up-frame make frame with buffer to display current.
* window.el (display-buffer-pop-up-frame): Run frame creation
function with BUFFER current (as special-display-popup-frame
does). Reported by Drew Adams.
Daiki Ueno [Wed, 17 Aug 2011 01:31:05 +0000 (10:31 +0900)]
Simplify GnuPG group expansion using epg-expand-group.
* epa-mail.el: Simplify GnuPG group expansion using
epg-expand-group.
(epa-mail-group-alist, epa-mail-group-modtime)
(epa-mail-gnupg-conf-file, epa-mail-parse-groups)
(epa-mail-sync-groups, epa-mail-expand-recipient-1)
(epa-mail-expand-recipients-2, epa-mail-expand-recipients):
Remove.
Katsumi Yamaoka [Wed, 17 Aug 2011 00:10:46 +0000 (00:10 +0000)]
nndraft.el (nndraft-update-unread-articles): Don't send delayed articles.
Feng Li [Tue, 16 Aug 2011 22:33:57 +0000 (17:33 -0500)]
* calc/calc-ext.el (math-defintegral-2): Remove nested backquote.
Ken Brown [Tue, 16 Aug 2011 20:31:32 +0000 (16:31 -0400)]
* src/gmalloc.c: Expand comment.
Alan Mackenzie [Tue, 16 Aug 2011 20:10:40 +0000 (20:10 +0000)]
progmodes/cc-engine.el (c-state-cache-non-literal-place): Correct to
avoid the insides of macros.
Eli Zaretskii [Tue, 16 Aug 2011 14:28:19 +0000 (17:28 +0300)]
Fix cursor positioning at end of buffer under bidi display.
src/xdisp.c (set_cursor_from_row): Don't accept a previous candidate
if it fails the cursor_row_p test. Fixes cursor positioning at ZV.
Ken Brown [Tue, 16 Aug 2011 13:27:12 +0000 (09:27 -0400)]
Fix memory allocation problems in Cygwin build (Bug#9273).
* src/gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo): New
variables.
(malloc_initialize_1) [CYGWIN]: Prepare for reinitializing the
dumped emacs.
(_free_internal_nolock) [CYGWIN]: Ignore requests to free storage
in the static heap.
[CYGWIN] (special_realloc): New function.
(_realloc_internal_nolock) [CYGWIN]: Use the new function on
requests to realloc storage in the static heap.
* src/unexcw.c ( __malloc_initialized): Declare external variable.
(fixup_executable): Force the dumped emacs to reinitialize malloc.
Eli Zaretskii [Tue, 16 Aug 2011 08:40:31 +0000 (11:40 +0300)]
Improve documentation of `special' modes.
doc/lispref/modes.texi (Major Mode Conventions): Improve the documentation
of `mode-class' `special' modes.
Eli Zaretskii [Tue, 16 Aug 2011 08:26:46 +0000 (11:26 +0300)]
Document the new "mirroring" Unicode character property.
src/nonascii.texi (Character Properties): Document the `mirroring'
property. Add index entries.
Eli Zaretskii [Tue, 16 Aug 2011 07:53:33 +0000 (10:53 +0300)]
Improve documentation of regexp search for categories.
doc/lispref/searching.texi (Regexp Backslash): Document how to display
existing categories. Mention the possibility of adding
categories, and add an xref to where this is described. Add an
index entry.
doc/lispref/syntax.texi (Categories): Add an example of defining a new
category and category table.
Bastien Guerry [Tue, 16 Aug 2011 07:13:02 +0000 (09:13 +0200)]
Fix Org ChangeLog entries and remove arch-tag.
Richard M. Stallman [Tue, 16 Aug 2011 04:04:27 +0000 (00:04 -0400)]
epa-mail.el handles GnuPG groups.
Richard M. Stallman [Tue, 16 Aug 2011 02:29:15 +0000 (22:29 -0400)]
Add rmail-epa-decrypt command.
Richard M. Stallman [Tue, 16 Aug 2011 02:18:10 +0000 (22:18 -0400)]
Fix previous change.
Richard M. Stallman [Tue, 16 Aug 2011 02:06:32 +0000 (22:06 -0400)]
Fix previous change.
Richard M. Stallman [Tue, 16 Aug 2011 01:40:26 +0000 (21:40 -0400)]
Bug fix for finding coding system. New COPY-FUNCTION feature
for epa-decrypt-region.
Paul Eggert [Mon, 15 Aug 2011 18:54:18 +0000 (11:54 -0700)]
* bidi.c (bidi_initialize): Remove unused local.
Eli Zaretskii [Mon, 15 Aug 2011 17:47:25 +0000 (20:47 +0300)]
Use uniprop tables instead of biditype.h and bidimirror.h.
src/bidi.c (bidi_initialize): Use uniprop_table instead of including
biditype.h and bidimirror.h.
src/biditype.h: File removed.
src/bidimirror.h: File removed.
src/deps.mk (bidi.o): Remove biditype.h and
bidimirror.h.
src/makefile.w32-in ($(BLD)/bidi.$(O)): Remove biditype.h and
bidimirror.h.
src/dispextern.h: Fix a typo in the comment to bidi_type_t.
src/chartab.c: Improve commentary for the uniprop_table API.
admin/unidata/bidimirror.awk: File removed.
admin/unidata/biditype.awk: File removed.
admin/unidata/makefile.w32-in (all): Remove src/biditype.h and
src/bidimirror.h.
(../../src/biditype.h, ../../src/bidimirror.h): Deleted.
admin/unidata/Makefile.in (all): Remove src/biditype.h and
src/bidimirror.h.
(../../src/biditype.h, ../../src/bidimirror.h): Deleted.
Stefan Monnier [Mon, 15 Aug 2011 16:10:39 +0000 (12:10 -0400)]
* lisp/minibuffer.el (completion-pcm--merge-completions): Don't merge "a1b"
and "a2b" to "ab" for `prefix'.
Bastien Guerry [Mon, 15 Aug 2011 15:00:34 +0000 (17:00 +0200)]
Add org.texi and orgcard.tex for Org version 7.7.
Bastien Guerry [Mon, 15 Aug 2011 14:56:47 +0000 (16:56 +0200)]
Fix misformatted ChangeLog entries for Org.
Bastien Guerry [Mon, 15 Aug 2011 14:34:17 +0000 (16:34 +0200)]
lisp/org/ChangeLog: Fix the ChangeLog entry of Ethan Ligon.
Bastien Guerry [Mon, 15 Aug 2011 14:32:07 +0000 (16:32 +0200)]
lisp/org/ChangeLog: add "(tiny change)" where required.
Thanks to Glenn Morris for pointing out possible problems.
Glenn Morris [Mon, 15 Aug 2011 10:21:47 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.
Eli Zaretskii [Mon, 15 Aug 2011 08:16:09 +0000 (11:16 +0300)]
Support RLE/RLO/LRE/LRO for determining paragraph direction.
src/bidi.c (bidi_paragraph_init): Support zero value of
bidi_ignore_explicit_marks_for_paragraph_level.
Eli Zaretskii [Mon, 15 Aug 2011 06:44:48 +0000 (09:44 +0300)]
Another part of fixing bug #9296 with vertical cursor motion.
src/xdisp.c (move_it_in_display_line_to): Don't reset pixel
coordinates of the iterator when restoring from ppos_it.
Chong Yidong [Sun, 14 Aug 2011 18:13:35 +0000 (14:13 -0400)]
Minor fix to last change.
Chong Yidong [Sun, 14 Aug 2011 18:08:20 +0000 (14:08 -0400)]
Avoid deleting ibuffer named filters by default.
* lisp/ibuf-ext.el (ibuffer-filter-disable): New arg for deleting
filter groups.
(ibuffer-included-in-filter-p-1): Use it. Suggested by Noam
Postavsky.
Fixes: debbugs:8804
Kenichi Handa [Sun, 14 Aug 2011 17:51:08 +0000 (13:51 -0400)]
Avoid crash with invalid default-process-coding-system.
* src/process.c (create_process): Call setup_process_coding_systems
after the pid of the process is set to -1.
Eli Zaretskii [Sun, 14 Aug 2011 11:10:19 +0000 (14:10 +0300)]
Fix bug #9296 with vertical cursor motion on images.
src/xdisp.c (move_it_in_display_line_to): Don't invoke
IT_RESET_X_ASCENT_DESCENT when iterator position was restored from
ppos_it. Fixes vertical cursor motion when line beginning is
covered by an image.
Jan Djärv [Sun, 14 Aug 2011 10:39:38 +0000 (12:39 +0200)]
Fix that executing applescript may hang emacs uninterruptedly.
* nsfns.m (as_script, as_result, as_status): New static variables.
(ns_run_ascript): New function.
(Fns_do_applescript): Set variables as_*. Make an NSApplicationDefined
event with data2 set to NSAPP_DATA2_RUNASSCRIPT, post it and then start
the event loop. Get status from as_status.
* nsterm.h (ns_run_ascript): Declare.
(NSAPP_DATA2_RUNASSCRIPT): Define.
* nsterm.m (sendEvent): If event is NSApplicationDefined and
data2 is NSAPP_DATA2_RUNASSCRIPT, call ns_run_ascript and then exit
the event loop (Bug#7276).
Glenn Morris [Sun, 14 Aug 2011 10:19:49 +0000 (06:19 -0400)]
Auto-commit of generated files.
Andreas Schwab [Sun, 14 Aug 2011 09:08:02 +0000 (11:08 +0200)]
Follow variable naming convention
* src/gnutls.c (QCgnutls_bootprop_priority)
(QCgnutls_bootprop_trustfiles, QCgnutls_bootprop_keylist)
(QCgnutls_bootprop_crlfiles, QCgnutls_bootprop_callbacks)
(QCgnutls_bootprop_loglevel, QCgnutls_bootprop_hostname)
(QCgnutls_bootprop_min_prime_bits, QCgnutls_bootprop_verify_flags)
(QCgnutls_bootprop_verify_hostname_error)
(QCgnutls_bootprop_callbacks_verify): Rename from
Qgnutls_bootprop_..., all uses changed.
* src/xfaces.c (QCignore_defface): Rename from Qignore_defface, all
uses changed.
Andreas Schwab [Sun, 14 Aug 2011 09:08:01 +0000 (11:08 +0200)]
Whitespace cleanup
Paul Eggert [Sun, 14 Aug 2011 06:04:44 +0000 (23:04 -0700)]
* src/xdisp.c (compute_display_string_pos): Fix bzr merge glitch.
Paul Eggert [Sun, 14 Aug 2011 05:28:42 +0000 (22:28 -0700)]
* xfaces.c (Qframe_set_background_mode): Now static.
* dispextern.h (Qframe_set_background_mode): Remove decl.
Paul Eggert [Sun, 14 Aug 2011 05:23:51 +0000 (22:23 -0700)]
* process.c (Fnetwork_interface_info): Declare local only if needed.
Paul Eggert [Sun, 14 Aug 2011 05:11:36 +0000 (22:11 -0700)]
Merge from trunk.
Jan Djärv [Sat, 13 Aug 2011 10:48:03 +0000 (12:48 +0200)]
Fix network-interface-list|info on newer BSD derived OS:es.
* configure.in: Add header check: sys/socket.h,
ifaddrs.h, net/if_dl.h. Check for getifaddrs and freeifaddrs.
Check for sa_len in struct ifreq.ifr_addr (Bug#8477).
* src/process.c: Include ifaddrs.h and net/if_dl.h if available (Bug#8477).
(Fnetwork_interface_list): Allocate in increments of bytes instead
of sizeof (struct ifreq). Iterate over ifconf.ifc_req by counting
bytes (Bug#8477). Count bytes correctly when ifr_addr is a struct
sockaddr.
(struct ifflag_def): notrailers is smart on OSX.
(Fnetwork_interface_info): Handle case when ifr_flags is negative.
Get hardware address with getifaddrs if available.
Andreas Schwab [Sat, 13 Aug 2011 08:55:53 +0000 (10:55 +0200)]
* lisp/gnus/gnus-score.el (gnus-all-score-files): Use copy-sequence instead of
copy-list.
Juanma Barranquero [Fri, 12 Aug 2011 20:45:45 +0000 (22:45 +0200)]
lisp/startup.el (argi): Declare as global variable (bug#9275).
Sam Steingold [Fri, 12 Aug 2011 18:52:40 +0000 (14:52 -0400)]
* lisp/gnus/gnus-score.el (gnus-score-find-alist): Keep the score files already
in the reverse order to avoid modifying the cache with `nreverse'.
(gnus-all-score-files): Do not modify the value returned by
`gnus-score-find-alist' because it lives in a cache variable.
(gnus-current-home-score-file): No need to `nreverse' the return value
of `gnus-score-find-alist', it is already in the correct order.
Chong Yidong [Fri, 12 Aug 2011 16:33:28 +0000 (12:33 -0400)]
Move etc/grammars to admin/grammars.
Chong Yidong [Fri, 12 Aug 2011 16:24:44 +0000 (12:24 -0400)]
admin/make-dist: Add admin/ to source tarballs.
admin/charsets/mapfiles/*.gz: Delete. Add gunzipped versions.
See emacs-devel thread at
http://lists.gnu.org/archive/html/emacs-devel/2011-08/msg00347.html
Chong Yidong [Fri, 12 Aug 2011 15:43:30 +0000 (11:43 -0400)]
Fix behavior of string-mark-left-to-right.
* lisp/subr.el (string-mark-left-to-right): Search the entire string
for RTL script, not just the terminating character. Doc fix.
Stefan Monnier [Fri, 12 Aug 2011 15:32:39 +0000 (11:32 -0400)]
* lisp/progmodes/js.el (js-syntax-propertize, js-syntax-propertize-regexp):
New function.
(js--regexp-literal, js-syntax-propertize-function): Remove.
(js-mode): Use js-syntax-propertize to handle multilines.
(js-mode-map): Don't rebind electric keys.
(js-insert-and-indent): Remove.
(js-mode): Setup electric-layout and electric-indent instead.
Fixes: debbugs:9183
Stefan Monnier [Fri, 12 Aug 2011 13:49:45 +0000 (09:49 -0400)]
* lisp/epa-file.el (epa-file-select-keys): Revert to nil default.
Fixes: debbugs:9280
Eli Zaretskii [Fri, 12 Aug 2011 11:19:44 +0000 (14:19 +0300)]
Fix bug #9284 with line/wrap-prefix property on display strings.
src/xdisp.c (iterate_out_of_display_property): xassert that
IT->position is set to within IT->object's boundaries. Break from
the loop as soon as EOB is reached; avoids infloops in redisplay
when IT->position is set up wrongly due to some bug. Set
IT->current to match the bidi iterator unconditionally.
(push_display_prop): Allow GET_FROM_STRING as IT->method on
entry; avoids crashes when line/wrap-prefix is set on a display
string. Force push_it to save on the stack the current
buffer/string position, to be restored by pop_it. Fix flags in
the iterator structure wrt the object coming from a display
property, as `line-prefix' and `wrap-prefix' are not ``replacing''
properties.
Daiki Ueno [Fri, 12 Aug 2011 03:30:18 +0000 (12:30 +0900)]
Make epa-file progress message user-friendly.
* epa.el (epa-progress-callback-function): Fix the logic of
displaying progress.
* epa-file.el (epa-file-insert-file-contents): Make progress
display more user-friendly.
(epa-file-write-region): Ditto.
Andrew Cohen [Thu, 11 Aug 2011 22:36:54 +0000 (22:36 +0000)]
nnimap.el (nnimap-transform-headers): BODYSTRUCTURE for messages of type MESSAGE and subtype RFC822 is slightly different from those of type TEXT.
Chong Yidong [Wed, 10 Aug 2011 19:03:56 +0000 (15:03 -0400)]
New function `string-mark-left-to-right' for handling LRMs.
* lisp/subr.el (string-mark-left-to-right): New function.
* lisp/buff-menu.el (Buffer-menu-buffer+size): Remove LRM argument.
Use string-mark-left-to-right.
(list-buffers-noselect): Caller changed.
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Use
string-mark-left-to-right.
(tabulated-list-print): Recenter after moving point.
Juri Linkov [Wed, 10 Aug 2011 18:29:31 +0000 (21:29 +0300)]
* lisp/progmodes/grep.el (rgrep): Don't bind `process-connection-type'.
This finishes incomplete reversion of 2011-06-30T01:09:13Z!larsi@gnus.org (2011-06-30)
intended by 2011-07-06T15:49:19Z!larsi@gnus.org (2011-07-06).
Chong Yidong [Tue, 9 Aug 2011 22:13:11 +0000 (18:13 -0400)]
Merge from emacs-23 branch
Chong Yidong [Tue, 9 Aug 2011 21:55:34 +0000 (17:55 -0400)]
* hi-lock.el (hi-lock-unface-buffer): Fix interactive spec (Bug#7554).