1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
Commit graph

102246 commits

Author SHA1 Message Date
Paul Eggert
d31850da41 * doc.c (get_doc_string): Rework so that
get_doc_string_buffer_size is the actual buffer size, rather than
being 1 less than the actual buffer size; this makes xpalloc more
convenient.
2011-08-18 01:37:41 -07:00
Paul Eggert
bc81e2c4e8 Merge from trunk. 2011-08-16 11:48:49 -07:00
Paul Eggert
a69fbedbd6 Simplify previous changes.
* image.c (x_allocate_bitmap_record, cache_image):
* xselect.c (Fx_register_dnd_atom):
Simplify previous changes by using xpalloc.
2011-08-16 11:44:32 -07:00
Eli Zaretskii
b215eee57d 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.
2011-08-16 17:28:19 +03:00
Ken Brown
a4579d332d 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.
2011-08-16 09:27:12 -04:00
Eli Zaretskii
9adfcd0bf5 Improve documentation of `special' modes.
doc/lispref/modes.texi (Major Mode Conventions): Improve the documentation
 of `mode-class' `special' modes.
2011-08-16 11:40:31 +03:00
Eli Zaretskii
1086287381 Document the new "mirroring" Unicode character property.
src/nonascii.texi (Character Properties): Document the `mirroring'
 property.  Add index entries.
2011-08-16 11:26:46 +03:00
Eli Zaretskii
1ea897d542 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.
2011-08-16 10:53:33 +03:00
Bastien Guerry
5b409b390c Fix Org ChangeLog entries and remove arch-tag. 2011-08-16 09:13:02 +02:00
Paul Eggert
3f74064eda Merge from trunk. 2011-08-15 22:58:30 -07:00
Richard M. Stallman
04963aa8ff epa-mail.el handles GnuPG groups. 2011-08-16 00:04:27 -04:00
Richard M. Stallman
177549d04c Add rmail-epa-decrypt command. 2011-08-15 22:29:15 -04:00
Richard M. Stallman
44fede4d8e Fix previous change. 2011-08-15 22:18:10 -04:00
Richard M. Stallman
fe38beefad Fix previous change. 2011-08-15 22:06:32 -04:00
Richard M. Stallman
3a99bf64df Bug fix for finding coding system. New COPY-FUNCTION feature
for epa-decrypt-region.
2011-08-15 21:40:26 -04:00
Paul Eggert
fe5c5d3780 * buffer.c (overlay_str_len): Now ptrdiff_t, not EMACS_INT,
since either will do and ptrdiff_t is convenient with xpalloc.
2011-08-15 12:23:11 -07:00
Paul Eggert
b24809631a Merge from trunk. 2011-08-15 12:19:54 -07:00
Paul Eggert
3ebec5517e * bidi.c (bidi_initialize): Remove unused local. 2011-08-15 11:54:18 -07:00
Eli Zaretskii
474a84653b 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.
2011-08-15 20:47:25 +03:00
Stefan Monnier
934eacb93d * lisp/minibuffer.el (completion-pcm--merge-completions): Don't merge "a1b"
and "a2b" to "ab" for `prefix'.
2011-08-15 12:10:39 -04:00
Bastien Guerry
ce57c2fe30 Add org.texi and orgcard.tex for Org version 7.7. 2011-08-15 17:00:34 +02:00
Bastien Guerry
5cb0563318 Fix misformatted ChangeLog entries for Org. 2011-08-15 16:56:47 +02:00
Bastien Guerry
d99aebc0c3 lisp/org/ChangeLog: Fix the ChangeLog entry of Ethan Ligon. 2011-08-15 16:34:17 +02:00
Bastien Guerry
d4423e17ee lisp/org/ChangeLog: add "(tiny change)" where required.
Thanks to Glenn Morris for pointing out possible problems.
2011-08-15 16:32:07 +02:00
Glenn Morris
85949b6cb5 Auto-commit of loaddefs files. 2011-08-15 06:21:47 -04:00
Eli Zaretskii
3241331411 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.
2011-08-15 11:16:09 +03:00
Eli Zaretskii
9fd8be0026 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.
2011-08-15 09:44:48 +03:00
Paul Eggert
c881564470 Merge from trunk. 2011-08-14 22:30:45 -07:00
Chong Yidong
de148fee1a Minor fix to last change. 2011-08-14 14:13:35 -04:00
Chong Yidong
d024fb4ec9 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
2011-08-14 14:08:20 -04:00
Kenichi Handa
5cf2b69bdb 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.
2011-08-14 13:51:08 -04:00
Eli Zaretskii
daf17d00fb 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.
2011-08-14 14:10:19 +03:00
Jan Djärv
08e3161a51 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).
2011-08-14 12:39:38 +02:00
Glenn Morris
7417b37cce Auto-commit of generated files. 2011-08-14 06:19:49 -04:00
Andreas Schwab
a3720aa275 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.
2011-08-14 11:08:02 +02:00
Andreas Schwab
b5f0301637 Whitespace cleanup 2011-08-14 11:08:01 +02:00
Paul Eggert
70c60eb2f9 Merge from trunk. 2011-08-13 23:40:45 -07:00
Paul Eggert
a29eb766a6 * src/xdisp.c (compute_display_string_pos): Fix bzr merge glitch. 2011-08-13 23:04:44 -07:00
Paul Eggert
19d5c50cbb * xfaces.c (Qframe_set_background_mode): Now static.
* dispextern.h (Qframe_set_background_mode): Remove decl.
2011-08-13 22:28:42 -07:00
Paul Eggert
0a0d27fb45 * process.c (Fnetwork_interface_info): Declare local only if needed. 2011-08-13 22:23:51 -07:00
Paul Eggert
358e1dd2b2 Merge from trunk. 2011-08-13 22:11:36 -07:00
Jan Djärv
377538cbcf 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.
2011-08-13 12:48:03 +02:00
Andreas Schwab
1bca59fe75 * lisp/gnus/gnus-score.el (gnus-all-score-files): Use copy-sequence instead of
copy-list.
2011-08-13 10:55:53 +02:00
Juanma Barranquero
62f1ca498c lisp/startup.el (argi): Declare as global variable (bug#9275). 2011-08-12 22:45:45 +02:00
Sam Steingold
29dbb8f772 * 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.
2011-08-12 14:52:40 -04:00
Chong Yidong
1a834b22e8 Move etc/grammars to admin/grammars. 2011-08-12 12:33:28 -04:00
Chong Yidong
6166381edd 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
2011-08-12 12:24:44 -04:00
Chong Yidong
9ccaaa4be7 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.
2011-08-12 11:43:30 -04:00
Stefan Monnier
6cd18349b8 * 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
2011-08-12 11:32:39 -04:00
Stefan Monnier
a3dae87a1b * lisp/epa-file.el (epa-file-select-keys): Revert to nil default.
Fixes: debbugs:9280
2011-08-12 09:49:45 -04:00