• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/src/

Lines Matching +defs:val +defs:pos

218 skip_invisible (pos, next_boundary_p, to, window)
219 int pos;
228 XSETFASTINT (position, pos);
232 recenter_overlay_lists (current_buffer, pos);
246 if (XFASTINT (proplimit) > pos + 100 || XFASTINT (proplimit) >= to)
252 XSETFASTINT (proplimit, min (pos + 100, to));
262 if (end == pos + 100
265 while (pos < end && !CHAR_HEAD_P (POS_ADDR (end)))
280 return pos;
289 check_composition (pos, pos_byte, point, len, len_byte, width)
290 int pos, pos_byte, point;
297 if (! find_composition (pos, -1, &start, &end, &prop, Qnil)
298 || pos != start || point < end
301 if ((id = get_composition_id (pos, pos_byte, end - pos, prop, Qnil)) < 0)
803 Lisp_Object val;
808 XSETFASTINT (val, (int) position_indentation (PT_BYTE)); /* iftc */
810 return val;
850 int pos = BYTE_TO_CHAR (pos_byte);
851 pos = skip_invisible (pos, &next_boundary, ZV, Qnil);
852 pos_byte = CHAR_TO_BYTE (pos);
904 indented_beyond_p (pos, pos_byte, column)
905 int pos, pos_byte;
908 double val;
911 SET_PT_BOTH (pos, pos_byte);
915 val = position_indentation (PT_BYTE);
917 return val >= column; /* hmm, float comparison */
942 register int pos;
951 Lisp_Object val;
960 pos = PT;
968 end = pos;
969 pos = current_column_bol_cache;
970 pos_byte = CHAR_TO_BYTE (pos);
974 next_boundary = pos;
976 while (pos < end)
978 while (pos == next_boundary)
980 int prev = pos;
981 pos = skip_invisible (pos, &next_boundary, end, Qnil);
982 if (pos != prev)
983 pos_byte = CHAR_TO_BYTE (pos);
984 if (pos >= end)
998 if (check_composition (pos, pos_byte, Z, &len, &len_byte, &width))
1000 pos += len;
1089 pos++;
1094 SET_PT_BOTH (pos, pos_byte);
1127 XSETFASTINT (val, col);
1128 return val;
1210 register int pos;
1237 /* The next buffer pos where we should consult the width run cache. */
1289 pos = prev_pos = from;
1295 while (pos == next_boundary)
1297 int pos_here = pos;
1312 pos = prev_pos;
1332 int ovlen = overlay_strings (pos, win, &ovstr);
1338 if (pos >= to)
1345 newpos = skip_invisible (pos, &next_boundary, to, window);
1349 pos = min (to, newpos);
1350 pos_byte = CHAR_TO_BYTE (pos);
1356 pos = newpos;
1357 pos_byte = CHAR_TO_BYTE (pos);
1415 if (pos <= to)
1417 pos = find_before_next_newline (pos, to, 1);
1418 pos_byte = CHAR_TO_BYTE (pos);
1423 if (pos >= next_boundary)
1424 next_boundary = pos + 1;
1454 if (pos > to)
1457 pos = prev_pos;
1495 pos = prev_pos;
1503 if (pos == ZV) /* We cannot go beyond ZV. Stop here. */
1508 prev_pos = pos;
1514 if (current_buffer->width_run_cache && pos >= next_width_run)
1520 pos, &run_end);
1534 run_end_hpos = hpos + (run_end - pos) * common_width;
1540 run_end = pos + (tohpos - hpos) / common_width;
1541 run_end_hpos = hpos + (run_end - pos) * common_width;
1547 run_end = pos + (width - hpos) / common_width;
1548 run_end_hpos = hpos + (run_end - pos) * common_width;
1552 if (run_end > pos)
1554 if (pos != run_end)
1556 pos = run_end;
1557 pos_byte = CHAR_TO_BYTE (pos);
1576 if (check_composition (pos, pos_byte, to, &len, &len_byte, &width))
1578 pos += len;
1585 pos++, pos_byte++;
1592 if (pos - 1 == width_run_end
1594 width_run_end = pos;
1610 width_run_start = pos - 1;
1611 width_run_end = pos;
1656 && indented_beyond_p (pos, pos_byte,
1659 /* If (pos == to), we don't have to take care of
1661 if (pos < to)
1666 pos = find_before_next_newline (pos, to, 1);
1667 if (pos < to)
1668 pos++;
1669 pos_byte = CHAR_TO_BYTE (pos);
1671 while (pos < to
1672 && indented_beyond_p (pos, pos_byte,
1681 DEC_BOTH (pos, pos_byte);
1704 if (pos < to)
1706 pos = find_before_next_newline (pos, to, 1);
1707 pos_byte = CHAR_TO_BYTE (pos);
1712 if (pos > next_boundary)
1713 next_boundary = pos;
1753 val_compute_motion.bufpos = pos;
1820 struct position *pos;
1859 pos = compute_motion (XINT (from), XINT (XCDR (frompos)),
1877 XSETFASTINT (bufpos, pos->bufpos);
1878 XSETINT (hpos, pos->hpos);
1879 XSETINT (vpos, pos->vpos);
1880 XSETINT (prevhpos, pos->prevhpos);
1886 Fcons (pos->contin ? Qt : Qnil, Qnil)))));
1901 struct position pos;
1951 pos = *compute_motion (prevline, 0,
1965 vpos -= pos.vpos;
2008 pos = *compute_motion (prevline, 0,
2024 pos.hpos = lmargin + (from == BEG ? start_hpos : 0);
2025 pos.vpos = 0;
2026 pos.tab_offset = 0;
2029 return compute_motion (from, vpos, pos.hpos, did_motion,
2032 pos.tab_offset - (from == BEG ? start_hpos : 0),
2084 struct position pos;
2085 pos = *vmotion (PT, XINT (lines), w);
2086 SET_PT_BOTH (pos.bufpos, pos.bytepos);