#1 Can't set a breakpoint in narrowed buffer

Открыто
открыта 6 месяцев назад nico · комментариев: 2
nico прокомментировал 6 месяцев назад

I didn't try to reproduce the bug, but I think that

(indium-backend-add-breakpoint (indium-backend)
                                     buffer-file-name
                                     (1- (line-number-at-pos))
                                     (lambda (line id condition)
                                       (indium-breakpoint-added id ov))
                                     condition)

in indium-breakpoint-add can't work in narrowed buffers because line-number-at-pos return the narrowed line number. I submitted a patch to Emacs, but it hasn't been merged yet :-).


Issue migrated from Gitlab

  • Original author: @DamienCassou
  • Created: 2017-06-16T15:46:03.955Z
  • Updated: 2017-06-19T09:31:04.501Z
I didn't try to reproduce the bug, but I think that ```common-lisp (indium-backend-add-breakpoint (indium-backend) buffer-file-name (1- (line-number-at-pos)) (lambda (line id condition) (indium-breakpoint-added id ov)) condition) ``` in `indium-breakpoint-add` can't work in narrowed buffers because `line-number-at-pos` return the narrowed line number. I submitted a patch to Emacs, but it hasn't been merged yet :-). ----- #### Issue migrated from Gitlab - Original author: @DamienCassou - Created: 2017-06-16T15:46:03.955Z - Updated: 2017-06-19T09:31:04.501Z
nico прокомментировал 6 месяцев назад
Владелец

changed the description


Comment migrated from Gitlab

  • Original author: @DamienCassou
  • Created: 2017-06-16T15:47:40.717Z
  • Updated: 2017-06-16T15:47:40.717Z
changed the description ----- #### Comment migrated from Gitlab - Original author: @DamienCassou - Created: 2017-06-16T15:47:40.717Z - Updated: 2017-06-16T15:47:40.717Z
nico прокомментировал 6 месяцев назад
Владелец

It's been merged in Emacs master :rocket:


Comment migrated from Gitlab

  • Original author: @nico
  • Created: 2017-06-19T09:31:04.461Z
  • Updated: 2017-06-19T09:31:04.461Z
It's been merged in Emacs master :rocket: ----- #### Comment migrated from Gitlab - Original author: @nico - Created: 2017-06-19T09:31:04.461Z - Updated: 2017-06-19T09:31:04.461Z
Войдите, чтобы присоединиться к обсуждению.
Нет меток
Нет этапа
Нет назначенных лиц
1 участников
Срок выполнения

Срок выполнения не установлен.

Зависимости

В настоящее время эта задача не имеет зависимостей.

Загрузка…
Отмена
Сохранить
Пока нет содержимого.