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

102167 commits

Author SHA1 Message Date
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
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
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
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
Eli Zaretskii
08fff70c6e 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.
2011-08-12 14:19:44 +03:00
Daiki Ueno
9d5cb6312b 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.
2011-08-12 12:30:18 +09:00
Andrew Cohen
fb568e6327 nnimap.el (nnimap-transform-headers): BODYSTRUCTURE for messages of type MESSAGE and subtype RFC822 is slightly different from those of type TEXT. 2011-08-11 22:36:54 +00:00
Chong Yidong
3e26a4a28c 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.
2011-08-10 15:03:56 -04:00
Juri Linkov
ac8cf6e698 * 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).
2011-08-10 21:29:31 +03:00
Chong Yidong
7be1c708c5 Merge from emacs-23 branch 2011-08-09 18:13:11 -04:00
Chong Yidong
8d96c9a4e7 * hi-lock.el (hi-lock-unface-buffer): Fix interactive spec (Bug#7554). 2011-08-09 17:55:34 -04:00
Chong Yidong
ebb552ed38 Note in Lisp manual that mouse-face cannot change the text size.
* doc/lispref/text.texi (Special Properties):
* doc/lispref/display.texi (Overlay Properties): Note that mouse-face cannot
change the text size.

Fixes: debbugs:8530
2011-08-09 17:14:11 -04:00
Chong Yidong
839dde5716 * image-dired.el: Don't use find-file for temporary work.
(image-dired--with-db-file): New macro.
(image-dired-write-tags, image-dired-remove-tag)
(image-dired-create-gallery-lists, image-dired-write-comments)
(image-dired-get-comment, image-dired-mark-tagged-files)
(image-dired-list-tags, image-dired-gallery-generate): Use it.
(image-dired-gallery-generate): Use insert-file-contents.

Fixes: debbugs:7895
2011-08-08 14:21:32 -04:00
Eli Zaretskii
757664a454 Improve on previous change in xdisp.c. 2011-08-08 20:37:34 +03:00
Eli Zaretskii
97bb72a608 Speed up bidi redisplay with selective-display.
src/xdisp.c (forward_to_next_line_start): Allow to use the
 no-display-properties-and-no-overlays under bidi display.
2011-08-08 19:57:53 +03:00
Chong Yidong
51a714e101 Fix explanation about setting the time zone in Lisp manual.
* doc/lispref/os.texi (Time of Day): Remove set-time-zone-rule, and
recommend using setenv instead.
2011-08-08 12:06:34 -04:00
Chong Yidong
37e11a6319 Lisp code shouldn't use set-time-zone-rule except through setenv.
* time.el (display-time-world-list, display-time-world-display):
* time-stamp.el (time-stamp-string):
* vc/add-log.el (add-change-log-entry): Use setenv instead of
set-time-zone-rule.

* src/editfns.c (Fset_time_zone_rule): Document relationship with the
setenv function.

Fixes: debbugs:7337
2011-08-08 11:53:35 -04:00
Chong Yidong
d56176114c Don't lose extra font info when using the Fontconfig font cache.
* src/ftfont.c (ftfont_pattern_entity): Copy the extras argument to
the font entity extracted from the cache.

Fixes: debbugs:8109
2011-08-08 10:49:34 -04:00
Daiki Ueno
0b4946c419 Format GPG errors (bug#9255).
* epg.el (epg--status-KEYEXPIRED, epg--status-KEYREVOKED): Fix typo.
(epg-error-to-string, epg-errors-to-string): New function.
(epg-wait-for-completion): Reverse errors list.
(epg--check-error-for-decrypt, epg-sign-file, epg-sign-string)
(epg-encrypt-file, epg-encrypt-string, epg-export-keys-to-file)
(epg--import-keys-1, epg-receive-keys, epg-delete-keys)
(epg-sign-keys, epg-generate-key-from-file)
(epg-generate-key-from-string): Format errors by using
epg-errors-to-string (bug#9255).
(epg--status-INV_SGNR, epg--status-NO_SGNR): New status handler.
2011-08-08 16:11:25 +09:00
Chong Yidong
588728344d * composite.c (autocmp_chars): Don't reset point.
That is done by restore_point_unwind (Bug#5984).
2011-08-07 15:40:08 -04:00
Chong Yidong
98fdd2b837 * url-http.el (url-http-parse-headers): For HTTP 301/302/307, don't convert to a GET request.
Fixes: debbugs:701
2011-08-07 13:48:11 -04:00