aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2008-02-24 10:09:07 +0000
committerMiles Bader2008-02-24 10:09:07 +0000
commitb03f96dc5a6651d1dc84b81b2a15cad6908b9809 (patch)
tree699d727fdfb007a12a07d1e1f2e172617cc159ef /src
parent52bec650ae314402c242ce700bb09be42ef8ae55 (diff)
parent20ca5ee4f7d897d79416a6fdd084db1eabb392b0 (diff)
downloademacs-b03f96dc5a6651d1dc84b81b2a15cad6908b9809.tar.gz
emacs-b03f96dc5a6651d1dc84b81b2a15cad6908b9809.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/fileio.c24
-rw-r--r--src/intervals.h19
-rw-r--r--src/unexhp9k800.c2
-rw-r--r--src/w32.c2
-rw-r--r--src/w32fns.c5
6 files changed, 39 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cc82a6dbc98..29a4e7ba636 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
4 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
5
62008-02-18 Jason Rumney <jasonr@gnu.org>
7
8 * w32fns.c (Fw32_shell_execute): Encode parameters.
9
102008-02-09 Eli Zaretskii <eliz@gnu.org>
11
12 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13
142008-02-05 Juanma Barranquero <lekktu@gmail.com>
15
16 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17
12008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change) 182008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2 19
3 * xterm.c (x_set_offset): Don't change the gravity if 20 * xterm.c (x_set_offset): Don't change the gravity if
diff --git a/src/fileio.c b/src/fileio.c
index 525d2c889b1..e2d399f5a45 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -6619,19 +6619,25 @@ of file names regardless of the current language environment. */);
6619 6619
6620 DEFVAR_BOOL ("insert-default-directory", &insert_default_directory, 6620 DEFVAR_BOOL ("insert-default-directory", &insert_default_directory,
6621 doc: /* *Non-nil means when reading a filename start with default dir in minibuffer. 6621 doc: /* *Non-nil means when reading a filename start with default dir in minibuffer.
6622If the initial minibuffer contents are non-empty, you can usually 6622
6623request a default filename by typing RETURN without editing. For some 6623When the initial minibuffer contents show a name of a file or a directory,
6624commands, exiting with an empty minibuffer has a special meaning, 6624typing RETURN without editing the initial contents is equivalent to typing
6625such as making the current buffer visit no file in the case of 6625the default file name.
6626`set-visited-file-name'. 6626
6627If this variable is non-nil, the minibuffer contents are always 6627If this variable is non-nil, the minibuffer contents are always
6628initially non-empty and typing RETURN without editing will fetch the 6628initially non-empty, and typing RETURN without editing will fetch the
6629default name, if one is provided. Note however that this default name 6629default name, if one is provided. Note however that this default name
6630is not necessarily the name originally inserted in the minibuffer, if 6630is not necessarily the same as initial contents inserted in the minibuffer,
6631that is just the default directory. 6631if the initial contents is just the default directory.
6632
6632If this variable is nil, the minibuffer often starts out empty. In 6633If this variable is nil, the minibuffer often starts out empty. In
6633that case you may have to explicitly fetch the next history element to 6634that case you may have to explicitly fetch the next history element to
6634request the default name. */); 6635request the default name; typing RETURN without editing will leave
6636the minibuffer empty.
6637
6638For some commands, exiting with an empty minibuffer has a special meaning,
6639such as making the current buffer visit no file in the case of
6640`set-visited-file-name'. */);
6635 insert_default_directory = 1; 6641 insert_default_directory = 1;
6636 6642
6637 DEFVAR_BOOL ("vms-stmlf-recfm", &vms_stmlf_recfm, 6643 DEFVAR_BOOL ("vms-stmlf-recfm", &vms_stmlf_recfm,
diff --git a/src/intervals.h b/src/intervals.h
index c15611388f1..228c249f41b 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -75,24 +75,7 @@ struct interval
75/* Size of a pointer to an interval structure */ 75/* Size of a pointer to an interval structure */
76#define INTERVAL_PTR_SIZE (sizeof (struct interval *)) 76#define INTERVAL_PTR_SIZE (sizeof (struct interval *))
77 77
78/* True if an interval pointer is null, or is a Lisp_Buffer or
79 Lisp_String pointer (meaning it points to the owner of this
80 interval tree). */
81#ifdef NO_UNION_TYPE
82#define INT_LISPLIKE(i) (BUFFERP ((Lisp_Object)(i)) \
83 || STRINGP ((Lisp_Object)(i)))
84#else
85#define INT_LISPLIKE(i) (BUFFERP ((Lisp_Object){(EMACS_INT)(i)}) \
86 || STRINGP ((Lisp_Object){(EMACS_INT)(i)}))
87#endif
88
89#ifdef ENABLE_CHECKING
90#define NULL_INTERVAL_P(i) \
91 (CHECK (!INT_LISPLIKE (i), "non-interval"), (i) == NULL_INTERVAL)
92/* old #define NULL_INTERVAL_P(i) ((i) == NULL_INTERVAL || INT_LISPLIKE (i)) */
93#else
94#define NULL_INTERVAL_P(i) ((i) == NULL_INTERVAL) 78#define NULL_INTERVAL_P(i) ((i) == NULL_INTERVAL)
95#endif
96 79
97/* True if this interval has no right child. */ 80/* True if this interval has no right child. */
98#define NULL_RIGHT_CHILD(i) ((i)->right == NULL_INTERVAL) 81#define NULL_RIGHT_CHILD(i) ((i)->right == NULL_INTERVAL)
@@ -162,7 +145,7 @@ struct interval
162 casts to get around this, it will break some development work in 145 casts to get around this, it will break some development work in
163 progress. */ 146 progress. */
164#define SET_INTERVAL_PARENT(i,p) \ 147#define SET_INTERVAL_PARENT(i,p) \
165 (eassert (!INT_LISPLIKE (p)), (i)->up_obj = 0, (i)->up.interval = (p)) 148 ((i)->up_obj = 0, (i)->up.interval = (p))
166#define SET_INTERVAL_OBJECT(i,o) \ 149#define SET_INTERVAL_OBJECT(i,o) \
167 (eassert (BUFFERP (o) || STRINGP (o)), (i)->up_obj = 1, (i)->up.obj = (o)) 150 (eassert (BUFFERP (o) || STRINGP (o)), (i)->up_obj = 1, (i)->up.obj = (o))
168#define INTERVAL_PARENT(i) \ 151#define INTERVAL_PARENT(i) \
diff --git a/src/unexhp9k800.c b/src/unexhp9k800.c
index 495094029d6..96eb985f857 100644
--- a/src/unexhp9k800.c
+++ b/src/unexhp9k800.c
@@ -228,7 +228,7 @@ read_header (file, hdr, auxhdr)
228 if (hdr->a_magic != EXEC_MAGIC && hdr->a_magic != SHARE_MAGIC 228 if (hdr->a_magic != EXEC_MAGIC && hdr->a_magic != SHARE_MAGIC
229 && hdr->a_magic != DEMAND_MAGIC) 229 && hdr->a_magic != DEMAND_MAGIC)
230 { 230 {
231 fprintf (stderr, "a.out file doesn't have legal magic number\n"); 231 fprintf (stderr, "a.out file doesn't have valid magic number\n");
232 exit (1); 232 exit (1);
233 } 233 }
234 234
diff --git a/src/w32.c b/src/w32.c
index 15ecda69f55..3107af8f4a1 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -1701,7 +1701,7 @@ is_fat_volume (const char * name, const char ** pPath)
1701 return FALSE; 1701 return FALSE;
1702} 1702}
1703 1703
1704/* Map filename to a legal 8.3 name if necessary. */ 1704/* Map filename to a valid 8.3 name if necessary. */
1705const char * 1705const char *
1706map_w32_filename (const char * name, const char ** pPath) 1706map_w32_filename (const char * name, const char ** pPath)
1707{ 1707{
diff --git a/src/w32fns.c b/src/w32fns.c
index 062d36dc10f..838367fe399 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -8346,9 +8346,12 @@ an integer representing a ShowWindow flag:
8346 8346
8347 CHECK_STRING (document); 8347 CHECK_STRING (document);
8348 8348
8349 /* Encode filename and current directory. */ 8349 /* Encode filename, current directory and parameters. */
8350 current_dir = ENCODE_FILE (current_buffer->directory); 8350 current_dir = ENCODE_FILE (current_buffer->directory);
8351 document = ENCODE_FILE (document); 8351 document = ENCODE_FILE (document);
8352 if (STRINGP (parameters))
8353 parameters = ENCODE_SYSTEM (parameters);
8354
8352 if ((int) ShellExecute (NULL, 8355 if ((int) ShellExecute (NULL,
8353 (STRINGP (operation) ? 8356 (STRINGP (operation) ?
8354 SDATA (operation) : NULL), 8357 SDATA (operation) : NULL),