Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9f36b9fd
Commit
9f36b9fd
authored
Mar 06, 2011
by
Paul Eggert
Browse files
* xdisp.c (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
avoids a gcc -Wuninitialized diagnostic.
parent
367c19e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
src/ChangeLog
src/ChangeLog
+2
-0
src/xdisp.c
src/xdisp.c
+5
-10
No files found.
src/ChangeLog
View file @
9f36b9fd
...
...
@@ -2,6 +2,8 @@
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Add a FIXME comment, since the code still doesn't look right.
(Fcurrent_bidi_paragraph_direction): Simplify slightly; this
avoids a gcc -Wuninitialized diagnostic.
current_column: Now returns EMACS_INT, fixing some iftc.
* bytecode.c (Fbyte_code): Don't cast current_column () to int.
src/xdisp.c
View file @
9f36b9fd
...
...
@@ -17912,16 +17912,13 @@ paragraphs, text begins at the right margin and is read from right to left.
See also `bidi-paragraph-direction'. */)
(Lisp_Object buffer)
{
struct buffer *buf;
struct buffer *old;
struct buffer *buf
= current_buffer
;
struct buffer *old
= buf
;
if (NILP (buffer))
buf = current_buffer;
else
if (! NILP (buffer))
{
CHECK_BUFFER (buffer);
buf = XBUFFER (buffer);
old = current_buffer;
}
if (NILP (BVAR (buf, bidi_display_reordering)))
...
...
@@ -17938,8 +17935,7 @@ See also `bidi-paragraph-direction'. */)
EMACS_INT bytepos = BUF_PT_BYTE (buf);
int c;
if (buf != current_buffer)
set_buffer_temp (buf);
set_buffer_temp (buf);
/* bidi_paragraph_init finds the base direction of the paragraph
by searching forward from paragraph start. We need the base
direction of the current or _previous_ paragraph, so we need
...
...
@@ -17967,8 +17963,7 @@ See also `bidi-paragraph-direction'. */)
itb.paragraph_dir = NEUTRAL_DIR;
bidi_paragraph_init (NEUTRAL_DIR, &itb, 1);
if (buf != current_buffer)
set_buffer_temp (old);
set_buffer_temp (old);
switch (itb.paragraph_dir)
{
case L2R:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment